Repository navigation
fix(pending): close the small gaps the reviews of #4106 left listed - #4109
Conversation
- A first message that nobody will type on its own was listed as queued and then, in a second frame, as held. PendingInputs.enqueue takes the reason and lists it held at once. A page that leaves as it is told of that first listing is still asked about after it, and held. - A queue request typed at once could be queued without a check: when omp's start ran out before the wait's first poll, the wait's last process read came after its last check, and the pending_wait that followed queued the message for a page that had left, or past its deadline. The wait's own check (lease, discard, deadline) is made once more after the wait. Nothing was typed; the row said it waited. - A chat message sent at once that is queued after all behind a starting omp took its lease in the pane's lane: a page that left the pane and came back while the frame waited got a new one, and the message was sent on its own later. The lease is now the one taken as the frame comes. The verify-pending-lease skill drops the assumption and the "not covered" lines these were, and says of a held copy's resend that it is a present user's own send, by design. AGENTS.md: one line of #4108 rewrapped. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
|
Merged through Merged by the session that opened it, as AGENTS.md now says. Reviews of this head: CodeRabbit, no actionable comments; Codex |
What
The small gaps that the reviews of #4106 found and that PR listed for later, each with a test that fails without its fix. Nothing was typed into a terminal in any of them except the third.
PendingInputs.enqueuetakes the reason and lists the message held at once.pending_waitthat followed queued the message for a page that had left, or past its deadline. The wait's own check (lease, discard, deadline) is made once more after the wait.The verify-pending-lease skill drops the assumption and the "not covered" lines these were (its model is unchanged), and says of a held copy's resend (
resend_id) that it is a present user's own send underauthorizeSocket, by design. AGENTS.md: one line of #4108 rewrapped.Validation
bun run check fast: green.bun test server/pending-input.contract.test.ts server/opencode-first-message.contract.test.tsagainst the isolated test herdr: 134 pass, 0 fail (run before the last two small fixes below; the unit tests ran after them).server/core/pending-left-lease.test.ts(two),server/core/pending-omp-start.test.ts(three cases).check full, browser regressions (no UI change).Review
Codex
gpt-6.2-astra, read-only, on the commit before this push: CLEAR, two mediums and one low, all three taken:Submitstands for: its text says which immediate sends it covers.🤖 Generated with Claude Code