Repository navigation
fix(chat-recovery): resume card retry keeps earlier results, sends once, mixed line fits - #50855
Merged
orca-remote-automation[bot] merged 6 commits intoNov 27, 2026
Merged
Conversation
… mixed line fits A retry replaces the run, so chats earlier runs resumed are carried in resumedBefore and stay in the report. A chat an in-flight action is already resuming is filtered out before any await, so a double activation sends once. The resumed-plus-needs-you line uses a bare count so both stay whole at 328px.
…rlier successes back Any continue while an action is in flight sends nothing, so a second Retry or an overlapping row action cannot orphan the first. Earlier successes ride on the in-flight run and rejoin its entries when it settles, so visibility, the status bar and release see an ordinary run. A row being resumed again hides its previous failure reason.
…reasons dropped at the view A dismissal and a resume never overlap: whichever starts second sends nothing. Rows that are resuming or resumed no longer carry the last attempt's failure.
The host already started those chats, so the in-flight gate never drops it.
…f overlapping Action ownership moves into a small turn module: continue and dismiss own the occurrence one at a time, and a launch action the host already took waits for the owner to settle, then carries its results forward.
orca-remote-automation
Bot
requested a review
from brennanb2025
as a code owner
November 27, 2026 12:26
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.
ELI5
Follow-up to the one-line resume card (#50804). Retrying a failed agent no longer makes the agents that already resumed disappear from the card. A double click can't send the same resume twice. The "resumed + needs you" line fits at the narrowest width in every language.
What Changed
Checked against how comparable products handle this.
Linked Issue
N/A (maintainer follow-up to #50804)
Visual Proof
Component fixtures, 328px toast, light and dark.
Testing
native-chat-restart-occurrence.test.tsdrives the real store with only host IO mocked. It covers a repeated or overlapping activation sending once, a dismissal and a resume never overlapping, the host's launch action waiting its turn (including when another action takes the turn at the handoff, and on dispose), and earlier successes surviving a retry.native-chat-resume-run.test.tscovers the run hand-off and settle fold.pnpm check:changedpasses;pnpm tc:webpasses.Performance
None measurable. A few array filters over the toast's rows (tens at most) per action, and one promise per resume/dismiss action. Nothing runs on a timer or in a hot path.