Skip to content

fix(core): continue interrupted responses - #40576

Merged
rekram1-node merged 3 commits into
v2from
partial-continuation
Aug 6, 2026
Merged

rekram1-node merged 3 commits into
v2from
partial-continuation

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • preserve output-bearing attempts when a provider response ends unexpectedly
  • settle the failed assistant and its tools before scheduling continuation
  • append a durable, UI-hidden synthetic user message asking the model to continue without repeating completed content
  • write continuation output to a new assistant message while sharing the existing five-attempt retry budget
  • retain transparent same-message retries for incomplete streams that produced no output

Testing

  • bun typecheck in packages/core
  • bun test test/session-runner.test.ts in packages/core (142 pass)
  • focused continuation matrix covering text, reasoning, settled tools, projection replay, and retry exhaustion

@rekram1-node
rekram1-node merged commit a38d442 into v2 Aug 6, 2026
8 checks passed
@rekram1-node
rekram1-node deleted the partial-continuation branch August 6, 2026 05:04
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
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.

1 participant