Conversation
zxch3n
added this pull request to stack #713
September 14, 2026 17:07
Model: gpt-6-astra
zxch3n
force-pushed
the
feat/attachment-submit-recovery
branch
from
September 16, 2026 03:55
3c773ce to
70e9736
Compare
zxch3n
force-pushed
the
feat/attachment-submit-recovery
branch
from
September 16, 2026 04:01
70e9736 to
7a50f62
Compare
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.
Problem / pressure
A lost write receipt can leave a message authored but invite a duplicate append. Route, account and app teardown also need a durable owner for messages that have not reached their target transport.
Summary
Stack 3/4, based on #707. Introduce account/workspace-scoped IndexedDB submission records, separate per-session submission and delivery locks, and recovery controls. The existing writers prepare history or queue operations on a temporary fork; exact bytes are saved before live import. Recovery replays those bytes and merges the original replica baseline. The saved source is the window that actually prepares the operations, including cross-window takeover. Explicit target synchronization publishes imported operations. Guide uncertainty reconciles the original turn without another offer.
Electron asks before draining renderer work and stopping the CLI. Browser navigation, logout and cache/reset paths retain unresolved messages. Transfer timing remains unchanged; complete attachment drafts follow in layer 4.
Visual explanation
Before / after
Test plan
TMPDIR=/private/tmp NODE_ENV=test pnpm checkpasses completely (components: 479 files / 3,671 tests).pnpm formatandpnpm run docs checkcompleted; docs report zero errors. Packaged desktop/mobile acceptance is still outstanding.Context handoff
Instructions for reviewing agents
Authoring context