Replies: 1 comment
|
This looks like something current main already fixes. There's an implemented Aug 15 replay-state fix for exactly Since you're on rc.5, I'd first retry the affected session with a build containing that fix. If the previously poisoned session can continue there, it should confirm this is the same bug. If current main still fails, then your interrupted-stream case may expose a second path worth isolating. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This has been written by AI.
Summary
When an assistant turn fails or is interrupted mid-stream, the session appears to persist a partial assistant message. Afterwards, every attempt to continue the conversation fails with:
The conversation becomes permanently unrecoverable — retrying "continue" reproduces the same error every time. Starting a new session is the only workaround.
Steps to reproduce (observed)
INVALID_REPLAY_STATE; repeating step 2 keeps failing identically.Expected: A failed/interrupted turn should not commit an incomplete assistant message; the partial turn should be rolled back so the session stays replayable and the user can retry.
Actual: The partial assistant content is retained, so the stored block count no longer matches the assistant content, and the
llm-pi-aiadapter rejects every subsequent replay.Possible direction: Commit the assistant turn atomically only on successful completion (or discard partial content during error handling), so replay-state validation never sees a mismatch.
Environment: adapter
@deepseek-ai/dsh-llm-pi-ai, dsh0.1.0-rc.5. Observed on a downstream build — happy to help narrow it down if it doesn't reproduce on a clean checkout.All reactions