Repository navigation
fix(inbox): a Send always ends, clears on the answer, and is safe to retry - #2459
Closed
backnotprop wants to merge 3 commits into
Closed
backnotprop wants to merge 3 commits into
backnotprop wants to merge 3 commits into
Conversation
…retry A request dropped on the way, with no reset and no answer, held Send dim for good: nothing in its chain had a time limit. Every step now has one; a timeout shows a line near Send and gives Send back with the draft and the key kept, and the next Send reads the thread first. Send clears on the reply's answer, not after the re-reads. The list is one read at a time, and gzipped through the tailnet listener. Keys and unsaved words survive a reload on the device.
Its pick chain and fresh reads get the same limits, and a write that timed out says it may have gone.
backnotprop
marked this pull request as draft
November 1, 2026 16:51
This was referenced Nov 1, 2026
Owner
Author
|
Replaced by #4158, which merged the same goal (a Send always ends, and a retry reuses its key so a reply is not stored twice) on current main, after two independent reads. |
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.
Why
The owner, on a phone: Send turns dim after pressing and never sends, until a refresh. No write in the Send chain had a time limit, so a request dropped on the way (no reset, no answer) held Send for good. The owner's real list is 396 kB and answers in 18 ms, so the list is a smaller factor: a slow link was slow, not stuck.
What changed
sendKeys.ts,unsavedWords.ts).No new setting, shortcut or visible state. The guide is
docs/agent-guides/inbox-messages.md("A Send always ends").Tests
Bun 1.4.4 CI lanes: dom-1 to dom-4 and unit-1 to unit-3 pass. The heavy lanes were not run, because they drive real agent processes.
Playwright on Bun 1.3.14, compiled binary:
inbox-send-stall-webkit.spec.ts(new, 11 scenarios) passes, including a connection that dies silently mid-request through a TCP relay, with the reply landed or not. That scenario fails on the unfixed binary.Shaped link, real list size (407 kB), seconds to Send cleared, before then after:
Most list reads open at once went from 10 to 1.
What remains