Repository navigation
fix(desktop): keep unsent prompts across restarts - #15
Merged
Merged
Conversation
This was referenced Nov 8, 2026
kitlangton
added a commit
that referenced
this pull request
Nov 10, 2026
…s with them, not above them (t1361, t1501) (#73) Since the outbox admits one prompt at a time (#15), a steer sent while another was in flight showed as its bubble in the timeline, above the steers the server would deliver first; when they landed it jumped below them ([p1 p4 p5 p2 p3]). It now waits in the inbox behind them, as a fresh send after a stop does (#347).
Hona
added a commit
that referenced
this pull request
Nov 11, 2026
… start edge, as Desktop's aside's do. The side region's slot clipped the card's elevation (outside its box) at its start, so the 0.5 pt ring and its shadow were missing down the card's left side; a clip 4 pt wider on that side lets them show while the region is open or sliding, and none once it rests shut. At 1x the card's start edge now reads #f9 #f8 #e6 | #ff in light and #8 #7 #15 | #16 in dark, Desktop's #f9 #f8 #e6 | #ff and #8 #7 #16 | #16, where it read #fa #fa #fa | #ff.
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.
Sending a prompt no longer depends on the connection surviving the next frame. Enter saves the prompt and shows its bubble. A timeout checks whether it arrived; a rejection keeps the words editable.
🔍 Origin: reported messages disappearing while the desktop app reconnected.
sequenceDiagram participant App participant Disk participant Server App->>Disk: Save prompt and ID before clearing composer App->>Server: Admit prompt under that ID opt Reply lost or app restarted App->>Server: Check inbox, then exact message Server-->>App: Present, absent, or unknown App->>Server: Resend only if absent, with original ID endThe server accepted a POST and closed the socket before replying in the restart test. The reopened app checked its receipt and did not POST again. Focus and network-change signals interrupted a sleeping retry in under 1 ms on loopback. These are mock timings, not measurements of the reported outage.
↩️ Undo: an older build cannot read the new outbox. Let pending messages finish before downgrading.
👀 Read:
apps/desktop/src/send_failed/outbox.rsstores the original request, including attachments and delivery mode. Ordinary prompts reuse their admission ID. Worktree creation and rewind are not blindly replayed after an ambiguous result. Shell and slash commands are not offline prompt admissions.Checks run
cargo test --locked -p opencode-desktop -- send_failed:: new_session::tests reconnect::tests: 34 passed. A separate busy-steer rejection test passed for seven 4xx responses.cargo check --locked -p session-view --examplespassed.