Skip to content

Commit b48ae19

Browse files
MaxLinCodeclaude
andcommitted
debug: add gate log before interpretWriteTurn call
Logs whether WRITE_INTERPRETING_TURN_TYPES check passes, to confirm whether the function is actually being reached. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1050b3d commit b48ae19

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)