Repository navigation
Tell you when a paired server's restart interrupted your chats, and resume them from one dialog #25676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
brennanb2025
wants to merge
50
commits into
main
Choose a base branch
from
brennanb2025/rsc-resume-reconnect
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Tell you when a paired server's restart interrupted your chats, and resume them from one dialog #25676
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
560a88a
feat(native-chat): show each interrupted chat's workspace as its read…
brennanb2025 b956288
test(native-chat): name the nesting helper for what it returns
brennanb2025 a27b59e
fix(native-chat): resume dialog cards show no status
brennanb2025 0163c9c
fix(sidebar): a read-only card is inert and shows no live state, what…
brennanb2025 fd3cbbe
fix(native-chat): nest and indent the resume dialog's child workspace…
brennanb2025 ead9ca8
fix(native-chat): the resume dialog places every workspace even if li…
brennanb2025 0736622
fix(native-chat): keep "Don't ask again" above the resume dialog's bu…
brennanb2025 b05eaab
test(sidebar): import the card statically in the read-only contract test
brennanb2025 756fa06
fix(sidebar): legacy lineage children step in as far without a status…
brennanb2025 50351c1
fix(native-chat): nest resume dialog children by the sidebar's own ro…
brennanb2025 186bbf2
test(sidebar): pin child-workspace indent with and without a status lane
brennanb2025 ff1b786
fix(sidebar): a read-only card's child workspaces step in as the side…
brennanb2025 7a92bde
Merge origin/main into brennanb2025/resume-modal-sidebar-cards
brennanb2025 5e73d7e
test(sidebar): a read-only card never carries main's multi-selected m…
brennanb2025 d92d318
fix(sidebar): preserve quiet read-only card geometry
brennanb2025 cf86c0b
fix(native-chat): match resume cards to sidebar rows
brennanb2025 f0004d0
fix(sidebar): preserve passive SSH identity on read-only cards
brennanb2025 404de10
fix(native-chat): keep resume focus and folder host identity
brennanb2025 1140cca
fix(native-chat): remove resume dialog list border
brennanb2025 07ad990
fix(sidebar): keep passive SSH pills static
brennanb2025 dc8cc8b
fix(native-chat): align resume card vertical spacing
brennanb2025 4b21e08
fix(native-chat): preserve cache-only card header spacing
brennanb2025 35d9d07
Merge remote-tracking branch 'origin/main' into brennanb2025/resume-m…
brennanb2025 c2e4d93
fix(native-chat): lay the resume dialog out as a checkbox-column list
brennanb2025 9e4f9b7
Merge remote-tracking branch 'origin/main' into brennanb2025/resume-m…
brennanb2025 2405257
fix(native-chat): name SSH hosts by their saved label in the resume d…
brennanb2025 f762e68
Merge remote-tracking branch 'origin/main' into brennanb2025/resume-m…
brennanb2025 b108fbb
fix(native-chat): group the resume list in bands and let a project se…
brennanb2025 4b92273
Merge remote-tracking branch 'origin/main' into brennanb2025/resume-m…
brennanb2025 73d1874
fix(native-chat): no project row for workspaces the resume list canno…
brennanb2025 8deb3a9
fix(native-chat): lay the resume list out as nested workspace boxes
brennanb2025 a560331
Merge remote-tracking branch 'origin/main' into brennanb2025/resume-m…
brennanb2025 ad09bff
feat(native-chat): resume interrupted chats on every machine: reconne…
brennanb2025 3445654
fix(native-chat): a resume dialog request always has something to dra…
brennanb2025 2aebf53
fix(native-chat): show the resume list as a tree
brennanb2025 6c316fe
Merge remote-tracking branch 'origin/main' into brennanb2025/resume-m…
brennanb2025 2bdcd7c
fix(native-chat): judge "the resume dialog is on screen" when asked, …
brennanb2025 0175ddf
refactor(native-chat): read each resume chat through one key helper
brennanb2025 25cefbc
fix(native-chat): make the resume tree's keys work from its Tab stop …
brennanb2025 10478ae
Merge #25652 6c316fe9c0c (the resume tree; carries main 7c88ab7dd55) …
brennanb2025 6bcab27
fix(native-chat): look up a machine node's host by the plain string i…
brennanb2025 ded5c15
Merge #25652 25cefbc5db1 (one key helper; tree keys from its Tab stop…
brennanb2025 996e884
fix(native-chat): a machine's opened/closed choice belongs to the lis…
brennanb2025 9b6b7f7
Merge origin/main a4854ac1e96 into brennanb2025/rsc-resume-reconnect …
brennanb2025 863e138
refactor(native-chat): keep the paired restart-offer capability besid…
brennanb2025 9bcde43
Merge origin/main e3639ef8d69 into brennanb2025/rsc-resume-reconnect
brennanb2025 530e41d
Merge origin/main cf5dda642d9 into brennanb2025/rsc-resume-reconnect
brennanb2025 5927e5d
Merge origin/main 5462b5bd7ac into brennanb2025/rsc-resume-reconnect
brennanb2025 d86e4ca
fix(native-chat): keep per-machine resume runs consistent with the di…
brennanb2025 60aa16f
fix(native-chat): name a resumed chat's origin from the row the dialo…
brennanb2025 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import { readNodeFileWithinLimit } from '../../shared/node-bounded-file-reader' | ||
| import { parseState, type RecoveryCapsuleState } from './agent-session-recovery-capsule-entries' | ||
|
|
||
| export const MAX_RECOVERY_CAPSULE_BYTES = 4 * 1024 * 1024 | ||
|
|
||
| /** The capsule as stored; a missing file is an empty one. Callers hold the file's lock. */ | ||
| export async function readRecoveryCapsuleState(filePath: string): Promise<RecoveryCapsuleState> { | ||
| let raw: string | ||
| try { | ||
| raw = (await readNodeFileWithinLimit(filePath, MAX_RECOVERY_CAPSULE_BYTES)).buffer.toString( | ||
| 'utf8' | ||
| ) | ||
| } catch (error) { | ||
| if (error instanceof Error && 'code' in error && error.code === 'ENOENT') { | ||
| return { entries: [], failed: [] } | ||
| } | ||
| throw error | ||
| } | ||
| return parseState(raw) | ||
| } |
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: stablyai/orca
Length of output: 28142
🏁 Script executed:
Repository: stablyai/orca
Length of output: 9646
🏁 Script executed:
Repository: stablyai/orca
Length of output: 20722
Clear teardown witnesses during listed dismissal.
If
dismissListedruns before a queued witness record, the witness remains inconfirmedand can be recorded after the listed offer is removed. Clear the applicable witnesses before delegating the dismissal.🐛 Suggested fix
📝 Committable suggestion