Repository navigation
fix(desktop): settle live turns after sidecar crashes - #2574
Merged
Merged
Conversation
The durable abort can recover a partial reply while the renderer still believes the session is running. Publish the classified failure after recovery and before releasing the turn, so the transcript and queue observe a single outcome. Fixes vastsa#2570
The host skips active-branch saves until a revision exists. Seed the first revision through the normal RPC so the smoke case can verify growing live references and restoring both branches.
A queued prompt writes to Host directly and can pass a crash card that is still in the outbox. Wait for the Host append, spool failures under the original turn, and recheck live ownership before publishing.
# Conflicts: # scripts/e2e-smoke.mjs
When the user pressed Stop and the sidecar then died before agent_end, finishTurn still attached the classified crash error: the transcript got an AGENT_SIDECAR_* card, the turn result looked failed, and Agent Host recorded the crash code on what was a deliberate stop. The abort lock taken before the cancel request already records that intent, so a locked turn now settles as a plain abort. The crash card also carries its turnId in the live projection, matching the persisted row, so transcript grouping is the same before and after reload. Refs vastsa#2570
Owner
|
Landing fixes pushed on top of your branch (no force-push):
Verified on |
4 tasks done
zergfff
added a commit
to zergfff/PI-Desktop-fork
that referenced
this pull request
Nov 30, 2026
Ported from vastsa/PI-Desktop v0.24.0-beta.7 (bug fixes only; the release's features were left for a later rebase): vastsa#2625 quarantine rejected outbox appends instead of retrying them forever vastsa#2574 settle live turns and tool rows when the sidecar dies mid-stream vastsa#2578 native Pi turns stay stoppable after a reload vastsa#2634 the task badge mirrors work that is still running vastsa#2639 let Arabic and Hebrew paragraphs choose their own side vastsa#2640 stop a renderer crash loop with one GPU-less relaunch, then a dialog vastsa#2642 reject differing spellings of one tool argument vastsa#2655 compaction summaries open on demand in the transcript
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.
Summary
Restore the partial reply before sending a classified sidecar-crash error to the affected session. The foreground and background transcripts settle their running tool rows and keep the localized error after reload. Agent Host records an interrupted turn and releases the queue, while stale crash cleanup leaves a successor turn alone.
The protocol smoke suite initially failed on both the candidate and the base with
revision not found. The separate test commit seeds the first revision through the same host RPC the fixture expects, so the existing round-trip assertions run against valid state.Validation
6b492f2baon649c3456apnpm test:e2epassed 23 checks with two optional live-provider checks skippedpnpm test:e2e:supervisionandpnpm test:e2e:transcriptpassedCloses #2570