Skip to content

fix(coderd/x/chatd): handle truncated provider streams#25074

Merged
ethanndickson merged 2 commits into
mainfrom
ethan/fantasy-stream-truncation-errors
May 8, 2026
Merged

fix(coderd/x/chatd): handle truncated provider streams#25074
ethanndickson merged 2 commits into
mainfrom
ethan/fantasy-stream-truncation-errors

Conversation

@ethanndickson
Copy link
Copy Markdown
Member

@ethanndickson ethanndickson commented May 8, 2026

coder/fantasy now fails closed when Anthropic or OpenAI Responses streams close before their provider terminal events instead of yielding a successful finish.

This bumps the fantasy replacement to coder/fantasy#33 and teaches chat error classification to treat those failures as retryable timeout errors with explicit stream-closed messages.

Closes CODAGT-325

image

@ethanndickson ethanndickson changed the title fix: handle truncated provider streams fix(coderd/x/chatd): handle truncated provider streams May 8, 2026
@ethanndickson ethanndickson marked this pull request as ready for review May 8, 2026 05:29
@ethanndickson ethanndickson merged commit b6dbc56 into main May 8, 2026
36 of 39 checks passed
@ethanndickson ethanndickson deleted the ethan/fantasy-stream-truncation-errors branch May 8, 2026 05:52
@github-actions github-actions Bot locked and limited conversation to collaborators May 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants