Conversation
Contributor
Author
|
🤖
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 What changes
When an agent session has just ended, the transcript can already show
Session closedwhile the RunManager is still finishing teardown and still rejectsPOST /continuewith409 run is still active. Ask answers already handle that narrow transition with a bounded retry, but the main follow-up composer did not, so a user could type into a closed-but-resumable run and get stuck on that transient server response.This change routes the follow-up composer's Continue action through the same retry helper. The retry only applies to the exact teardown refusal, and it reuses the same prompt, pasted images, runner, model, and account options so the user's draft is not dropped.
📋 Scope
The change is limited to the web task-thread follow-up path in
follow-up-engine.tsxplus a regression test infollow-up-engine.test.tsx. It does not relax the backend active-run guard, change live-message delivery, or alter the ask-card behavior that already used this policy.🧪 Validation
npm run typecheckTMPDIR=/tmp TMP=/tmp npm test— 327 files, 6197 tests passed. The first run without overridingTMPDIRfailed because this Cezar task sets temp dirs inside the repository, making "outside a git repository" tests discover the parent checkout.TMPDIR=/tmp TMP=/tmp npm run test:unitTMPDIR=/tmp TMP=/tmp npm run buildTMPDIR=/tmp TMP=/tmp npm run test:packagefollow-up-engine.test.tsx,ask-answer.test.ts,typecheck:web,build:web.Manual QA is still useful because this is a user-facing cockpit recovery path: reproduce by sending a follow-up immediately after a session closes and confirming Continue retries into a reopened session.