Skip to content

Commit 6113467

Browse files
authored
Merge pull request #79 from MaxLinCode/claude/interpret-logging
debug: add logging to interpretWriteTurn pipeline
2 parents a11cde1 + b48ae19 commit 6113467

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

apps/web/src/lib/server/turn-router.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,14 @@ export async function routeMessageTurn(
118118

119119
// Pipeline B: interpret write intent for write-capable turns only.
120120
const priorOperation = discourseState.pending_write_operation;
121-
const writeInterpretation = WRITE_INTERPRETING_TURN_TYPES.has(
121+
const shouldInterpretWrite = WRITE_INTERPRETING_TURN_TYPES.has(
122122
classification.turnType,
123-
)
123+
);
124+
console.info("interpret_write_turn_gate", {
125+
turnType: classification.turnType,
126+
shouldInterpretWrite,
127+
});
128+
const writeInterpretation = shouldInterpretWrite
124129
? await interpretWriteTurn({
125130
currentTurnText: input.normalizedText,
126131
turnType: classification.turnType,

0 commit comments

Comments
 (0)