Repository navigation
feat(chat): add a setting to hold queued messages for Send now - #836
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 1 minute. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to This adds an opt-out setting that holds queued messages until Send now is used, and older bridges keep the previous queue behavior. No merge-blocking risk is evident from the supplied changes. Pre-merge checks |
|
Review finding (Codex, pre-merge): a message held with automatic sending off is restored in a second tab from storage as a held copy and offered Send now, which sends it as a new submission while the first tab's server-owned record stays and can be sent again. The bridge's pending input is connection-owned, so the second tab cannot act on or see the first tab's record; rather than a protocol change, the copy's row now says "Held message — review and send" (as a refused hold does) instead of "Waits for Send now", which is kept for a hold this connection owns. The status wording moves into pendingStatus() with a unit test. Co-Authored-By: Claude Fable 5.1 <[email protected]>
# Conflicts: # CHANGELOG.md
…ry check Co-Authored-By: Claude Fable 5.1 <[email protected]>
## Change Release 0.4.8, from main at ca6db6e (20 PRs since v0.4.7: the 0.4.7 mobile walk-through fixes, two contributor PRs and the revived #793). - `package.json` and `herdr-plugin.toml`: 0.4.8. - CHANGELOG: `[Unreleased]` becomes `[0.4.8] - 2026-10-12`, with the compare links. Twelve entries that had no PR link get theirs (#835 #837 #838 #840 #842 #843 #844+#848 #845 #847 #849 #851 #852). A Maintenance line says the remote-PC runtime is now version 27. - `release-summaries.json`: 0.4.8 in en/ko/ja/zh/tr (3 new, 6 improved, 8 fixed). The Turkish lines are not checked by a native speaker. - `REMOTE_BUNDLE_VERSION` 26 -> 27: #836 adds the `pending-hold` server feature and #787 serves precompressed assets, so `remote-v27` is published before the app release. Every PR merged since v0.4.7 is linked in the section: #787 #788 #793 #835 #836 #837 #838 #839 #840 #841 #842 #843 #844 #845 #846 #847 #848 #849 #851 #852. ## Validation - `bun scripts/release-notes.ts 0.4.8` renders the summaries and the full changelog (116 lines). - `bun run check fast`: generated types, typecheck, build and 2800+ unit tests pass. ## Release After this merges and its CI on `main` passes: push `remote-v27`, wait for its release, then run the Release workflow with `0.4.8`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5.1 <[email protected]>
Summary
Adds a Composer setting, Send queued messages automatically (on by default). When it is off, a chat message sent while the agent works is kept by the bridge as a held pending message. It shows under the message box with Send now and is never sent by the turn's end.
How
shared/protocol.ts:submitacceptsdelivery: "hold", gated by a newpending-holdserver feature.server/pending-input.ts:enqueue(..., held)stores the message in the existingheldstate. Automatic delivery (next) only takesqueued, so only an explicit steer (Send now) sends it. The lease, identity and blocked-prompt checks on Send now are unchanged.server/index.ts: treatsholdlikequeuefor validation and receipts (now fingerprinted with the delivery). Unlikequeue, a hold that arrives after the turn ended is still kept as held, never typed.autoSendQueuedsetting.PaneTerminalsendsholdinstead ofqueuewhen it is off.HerdrSocket.submitdecides after the capability snapshot: a bridge withoutpending-holdgetsqueue, so the user can still send to an older PC (noted in the changelog). A held row without an error reads "Waits for Send now".pending-holdand keeps every hold message asheld.Tests
server/pending-input.test.ts: a held message is never offered to automatic delivery; an explicit claim takes it.server/pending-input.contract.test.ts: a held message survives the turn's end (nothing typed), then Send now types it; a hold arriving after the turn ended is kept, not typed.src/lib/ws.test.ts:holdgoes topending-holdbridges,queueto older ones, and a Send before the snapshot still holds.bun run typecheck,bun run test:unitandbun run check run bun test ./server/pending-input.contract.test.ts(43 pass) are green locally.Review
Codex gpt-6.1-sol xhigh adversarial review found two P1s (a hold arriving after the turn was typed at once; a Send before the capability snapshot fell back to queue). Both are fixed in e6a8cf7 with tests.