Skip to content

fix(desktop): show why a prompt was not sent and retry in place - #16

Merged
kitlangton merged 1 commit into
mainfrom
outbox-recovery
Nov 8, 2026
Merged

kitlangton merged 1 commit into
mainfrom
outbox-recovery

Conversation

@kitlangton

Copy link
Copy Markdown
Collaborator

A rejected prompt keeps its words and a Retry button together. Pressing Enter on the untouched restored draft is also a retry of that bubble, not a second message. Connection trouble appears in the session header rather than a toast.

🔍 Origin: follow-up to the durable outbox, comparing recovery with the iOS client.

❌ Before: A server error could be labeled as a lost connection, Retry was hidden in a menu, and an offline follow-up could lose its Pending status as soon as a busy session accepted it.

✅ After: A lost reply says Checking delivery. Confirmed absence shows Not sent and a plain reason. A rejection offers Retry. Admission to a busy session is Pending until delivery; a late acknowledgment cannot move it backward.

- restore text; Enter creates another independently retryable message
+ restore text; Enter or Retry reuses the original request and ID
- accepted into busy inbox → remove pending marker
+ accepted into busy inbox → keep pending until delivered
Recovery test Result
Server drops before saving; app also restarts Receipt missing → resend, one stored message
Server drops after saving; app also restarts Receipt present → no resend, one stored message
Timeout, connection reset, 4xx or 5xx Bubble retained, reason visible, no failure toast for automatic recovery
Rejected restored draft or busy follow-up Retry preserves ID; acceptance and delivery have distinct states

👀 Read: the loopback restart test exercises both sides of admission. Only a confirmed absence permits another POST. Shell commands are not replayed by this change.

Checks run

cargo test --locked -p opencode-desktop -- send_failed:: reconnect::tests new_session::tests session_stall_tests queue::order_tests queue::edges_tests: 46 passed. Captured and inspected the rejected-message fixture headlessly.

@kitlangton
kitlangton merged commit 09d8102 into main Nov 8, 2026
2 checks passed
@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into main. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode-rune/desktop/dev/macos-arm64-dmg.

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 branch was previously deployed

1 inactive deployment
release — 089e221c Deployed Nov 8, 2026 by kitlangton via sign-macos #33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant