Repository navigation
fix(pending): list no first message for a pane that ended during the last read - #4107
Conversation
…last read queueFirstMessage checked for an ended pane before reading the launched process's start, which is awaited when herdr does not show that process in front yet. A pane that ended during that read had its first message listed after all, held as pane_not_found, and nothing discards a first message once its pane is gone: the record stayed until the server restarted. The check now comes after the last await. Found by the review of #4106's head; nothing was typed. The changelog entry of #4106 also names the attach restart, which holds a queued message on its way as a page leaving does. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
|
Merged by the session that opened it, on the maintainer's word, the same way as #4106: squash-merged at the checked head At that head: the four required checks green on GitHub, CodeRabbit reviewed it with no actionable comments and no threads. No second reviewer ran on this head: the change is the one the Opus review of #4106 asked for, with its test. |
What
Follow-up to #4106, from the Opus review of its head that was still running when it merged. Two LOW findings, both reproduced by the reviewer; nothing was typed in either.
queueFirstMessagechecked for an ended pane before reading the launched process's start (processStartedAtAsync), which is awaited when herdr does not show that process in front yet. A pane that ended during that read had its message listed after all, held aspane_not_found.holdPendingPanehad already run with nothing to discard, so the record stayed until the server restarted, and the create answer saidheld: "pane_not_found". The check now comes after the last await, so the request is refused as fix(pending): hold a message whose page left mid-send or before it was listed #4106 said it would be.dispatchPendingchange holds a queued message on its way wheneverhold()marked it, whichholdPendingPanealso does on an attach restart. The end state is the same as before (held, nothing typed), one step sooner. No code change: the changelog entry now names it..claude/skills/verify-pending-lease/covered.blobsis recorded again for the changedpending.ts. The model is unchanged: it does not cover a pane that ends (listed under "Not covered" in the skill), and the change touches nothing else.Validation
bun run check fast: green (unit: 18,613 pass, 0 fail).server/core/pending-left-lease.test.tsholds the read of the launched process's start, ends the pane, and expects the request to be refused with nothing listed. It fails onmainand passes here.check full.🤖 Generated with Claude Code