Skip to content

Recover queued messages when the target agent closes - #911

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-7667-message-recovery
Sep 11, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-7667-message-recovery

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • A queued or steered message rejected with AgentClosedError is restored to the editable prompt (or deferred behind an operator draft) instead of being silently lost
  • Drained delivery settles through a typed result that corrects the transcript row to [not delivered] or [delivery uncertain] and states the recovery location
  • Recovery never auto-resends to a rebuilt successor; delivery targets one captured agent identity with dedup-safe single settlement

Verification

  • bun run typecheck passes; bun run lint passes (0 warnings, 0 errors); bun run build passes
  • bun test src/tui/ passes (2207 pass, 0 fail); focused delivery suites pass (92 pass, 0 fail)
  • Full bun run check test phase shows only environmental failures unrelated to this change (git-fixture sandbox timeouts, read-only /build-dir EROFS in assemble-runtime tests)

Fixes CL-7667

A queued or steered message that hits a closed agent is restored to the prompt instead of being lost. Delivery settles through a typed result so the transcript row is corrected and the operator sees where the message went.
@linear-code

linear-code Bot commented Sep 11, 2026

Copy link
Copy Markdown

CL-7667

@TheGreatAxios
TheGreatAxios merged commit bc844cd into main Sep 11, 2026
9 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-7667-message-recovery branch September 11, 2026 06:37
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.

1 participant