Skip to content

Make talk delivery and interactive flow phases explicit - #278

Merged
DocksDocks merged 3 commits into
mainfrom
272-make-talk-delivery-and-interactive-flow-phases-explicit
Dec 1, 2026
Merged

DocksDocks merged 3 commits into
mainfrom
272-make-talk-delivery-and-interactive-flow-phases-explicit

Conversation

@DocksDocks

@DocksDocks DocksDocks commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Plan run: #272 Make talk delivery and interactive flow phases explicit

Pull request: #278. Checks: Passed all 10 jobs in run 46573646851. Reviewed head: d9ecc2fef9c891002e49e56a56509f2a41113387.

What changed

  • A confirmation cursor owns its entry list and offset. A planned queue flush owns its due time and cancellation handle.
  • An active ancestry row counts missed heartbeats. An ended row still routes descendants but no longer counts missed beats.
  • Each overlay tracks when it accepts input. The outgoing overlay keeps focus independently of its incoming replacement.
  • The real terminal smoke checks single-key cancellation and cancellation during the handoff to confirmation.

Decisions and corrections

  • A trailing bare Escape waits for the tokenizer. The paired-input test uses an encoded Escape press; the separate single-key test still uses bare Escape.

Delegated decisions

  • Keep the cursor and timer payloads local rather than adding flags that can disagree with them. Revert the delivery change to undo it. Research decision 1.
  • Keep the active sweep count separate from retained ancestry rather than merging it with registrations or ask settlement. Revert the ancestry change to undo it. Research decision 2.
  • Model each mount independently, because a held view can coexist with the incoming view. A global phase would discard one of them. Revert the overlay change to undo it. Research decision 3.
  • Use a private namespace for real terminal and message checks rather than touching live sessions. The namespace disappears on exit. Research decision 4.

Reviews

Plan review passed in round 3. Code review passed in round 3. No open findings.

Verification

  • A1: 472 focused tests passed across six files.
  • A2: types, scoped lint, formatting, generated files, 97 build tests and twelve sync snapshots passed. The snapshot bytes changed only at the twelve installed-bundle digests.
  • A3: both private end-to-end checks passed: 21 message checks and 15 terminal checks.

Limits and failures

  • The full local bun run check suite was not run. The deliberate omitted-key control failed at the expected step and removed its private registry.

Kept resources

After merge

Checklist

  • bun run check passes locally: not run in full.
  • bun run check:types passes.
  • Tested locally end to end: A1–A3.
  • Required Full CI: Passed all 10 jobs in run 46573646851.
  • Code review passed in round 3.

Closes #272

- Keep cursor offsets, queue timer deadlines, and sweep counts with their owners.
- Preserve held overlay focus and exercise buffered cancellation in a real terminal.
- Distinguish cancellation before and after confirmation in the real terminal and delayed-mount tests.
- Cover a shared transcript failure with two outstanding delivery watches.
@DocksDocks DocksDocks linked an issue Dec 1, 2026 that may be closed by this pull request
@DocksDocks
DocksDocks marked this pull request as ready for review December 1, 2026 04:09
@DocksDocks
DocksDocks merged commit cfdd906 into main Dec 1, 2026
10 checks passed
@DocksDocks
DocksDocks deleted the 272-make-talk-delivery-and-interactive-flow-phases-explicit branch December 1, 2026 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make talk delivery and interactive flow phases explicit

1 participant