Skip to content

Discard incomplete streaming replies - #1497

Open
mikemikimike wants to merge 3 commits into
Agent-Field:devfrom
mikemikimike:codex/issue-1467-truncated-stream
Open

mikemikimike wants to merge 3 commits into
Agent-Field:devfrom
mikemikimike:codex/issue-1467-truncated-stream

Conversation

@mikemikimike

@mikemikimike mikemikimike commented Sep 25, 2026 •

Copy link
Copy Markdown

Fixes #1467

Issue: #1467

Streams that end without a finish reason or [DONE] marker are discarded and retried, so partial replies are not retained in conversation history. Either explicit completion signal remains sufficient.

Tests: go test -count=1 -p 1 -timeout 15m ./internal/provider; go test -count=1 -run 'TestATruncatedProviderReplyIsNotSettledByTheSession|TestAnIncompleteReplyIsAskedAgainWithoutKeepingItsText|TestRepeatedIncompleteRepliesSayWhatWasDropped' ./internal/session; go test ./internal/manual/; go test -run Manual ./internal/tui3/ ./internal/session/.

@CLAassistant

CLAassistant commented Sep 25, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@santoshkumarradha

Copy link
Copy Markdown
Member

Hey, thanks for the PR. Could you sign the CLA when you get a chance so we can review it?

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.

A truncated streamed reply is accepted as a complete answer

3 participants