A cancel outlives the page, and the hub remembers it for a request of that message still on its way #2678
All Vouch review confidence checks passed
Residual risk 0.34 = Change Risk (0.50) × (1 − Review Confidence (0.33)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 620 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 60% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.385
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #2678"
general
weight: 0.35
github-actions[bot]
Summary
Stacked on #2666 (
feat/send-experience). This branch contains that PR's commits, so the diff frommainshows both; what is new here is the one commit "A cancel outlives the page, and the hub remembers it for a request of that message still on its way". It is a pull request of its own because it is the one part that changes the hub.#2666 makes a send cancelled while its request is on the wire final on the device: the abort is remembered, and the reconciler asks the hub about it. Two gaps were left in that, and this closes them.
pagehide, andvisibilitychangeto hidden, which is how a phone leaves), the page now tells the hub of every cancel still unsettled: one request each, by local id, marked to outlive the page (keepalive) and not waited on. A row the hub holds is dropped where it stands. Nothing is settled by it; the ledger keeps its entries for the next opening.queued-state), the hub says so (cancelledBeforeArrivalLocalIds), and the device settles the cancel at once as cancelled, instead of asking for ten minutes.Docs: two lines in the Queue section of
docs/guide/composer.md.Verification
bun run typecheck: clean.bun run test:hub: 2308 passed.bun run test:shared: 635 passed.bun run test:web: 431 files, 5167 passed (+1 existingit.fails).bun run gen:fixtures: no diff.bun run --cwd docs docs:build: passes.pagehideand on hidden, for every unsettled cancel of every chat, out at once and marked to outlive the page, settling nothing; the probe that settles at once on the hub's answer; andlistUnsettledAbortedSends.Notes
{ ok: true }). So a page that replays a message cancelled on another client shows it as on its way until its next reconciliation with the hub, as for any row the hub does not know; before, that replay recreated the prompt and it was delivered. Telling that page at once would need the answer to say so, and is left for a follow-up.🤖 Generated with Claude Code — agent framework run through HAPI, powered by GLM
glm-5.4(Z.ai).