Skip to content

A failed answer is logged with its code and message - #1189

Merged
WaylandYang merged 2 commits into
deeplethe:devfrom
gedaiu:fix/log-answer-failures
Oct 11, 2026
Merged

WaylandYang merged 2 commits into
deeplethe:devfrom
gedaiu:fix/log-answer-failures

Conversation

@gedaiu

@gedaiu gedaiu commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

What happened

Debugging #1183 against a production install: every failed answer reached the browser as an error frame and the server logged nothing about it, so the only way to learn why a chat failed was to ask the person to open developer tools and copy the frame. Ingestion failures, by contrast, are in the log.

What changed

chat_generation::run logs one warn per failed answer: the conversation id, the code the UI keys its wording on, and the message. Nothing else changes; the frame is still sent as before.

cargo fmt --check, cargo clippy --all-targets -- -D warnings, cargo test -p utopia-server pass (601).

The error frame was the only copy: the browser saw why an answer failed
and the server kept nothing, so a failure in production could only be
read by asking the person to open their developer tools. One warn line
per failed answer, with the conversation, the code the UI keys its
wording on, and the sentence the endpoint said.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Bogdan Szabo <bogdan@re-cinq.com>
@gedaiu
gedaiu force-pushed the fix/log-answer-failures branch from 96e7c44 to d90b340 Compare October 10, 2026 20:28

@WaylandYang WaylandYang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this. A failed answer left nothing in the server log, and one warn with the conversation, the code and the endpoint's message is the right size of fix. It already paid for itself in #1190. Merging now. Thanks again.

@WaylandYang
WaylandYang merged commit cdc6000 into deeplethe:dev Oct 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants