We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9ede728 + 1050b3d commit a11cde1Copy full SHA for a11cde1
1 file changed
apps/web/src/lib/server/interpret-write-turn.ts
@@ -18,11 +18,19 @@ export async function interpretWriteTurn(
18
const parsed = rawWriteInterpretationSchema.safeParse(raw);
19
20
if (!parsed.success) {
21
+ console.error("interpret_write_turn_parse_failed", {
22
+ zodError: parsed.error.format(),
23
+ rawOutput: raw,
24
+ });
25
return fallbackInterpretation(input);
26
}
27
28
return normalizeRawWriteInterpretation(parsed.data, input.currentTurnText);
- } catch {
29
+ } catch (err) {
30
+ console.error("interpret_write_turn_error", {
31
+ error: err instanceof Error ? err.message : String(err),
32
+ stack: err instanceof Error ? err.stack : undefined,
33
34
35
36
0 commit comments