Skip to content

fix(agent): continue conversations after a native agent exits - #6893

Merged
M4n5ter merged 1 commit into
rust-previewfrom
codex/external-agent-interruption
Nov 14, 2026
Merged

M4n5ter merged 1 commit into
rust-previewfrom
codex/external-agent-interruption

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 14, 2026

Copy link
Copy Markdown
Member

Summary

After a Host restart, a native agent process can exit before sending its final reply. Maka now ends the interrupted turn once the original process has exited and lets the next message continue in the same conversation. It preserves the partial output and does not resubmit the previous prompt. Already failed conversations can accept new messages once the original process exits and Maka-owned operations settle.

A rejected send now says the message was not sent and keeps it available for retry.

Verification

  • macOS Host restart with an Antigravity ACP fixture. The original process was killed without a final reply. The next prompt completed in the same ACP session. The captured streams show one submission per prompt.
  • Native agent lifecycle suite (4 tests), successor admission after late cleanup, send receipt tests (4 tests), and just typecheck passed locally.

AI use

  • Generative tooling made a substantive contribution

Tool(s) and scope: OpenAI Codex implemented and verified the change.

Checklist

  • Tests cover the change and fail without it
  • Format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above

@M4n5ter
M4n5ter merged commit 536c78d into rust-preview Nov 14, 2026
6 of 9 checks passed
@M4n5ter
M4n5ter deleted the codex/external-agent-interruption branch November 14, 2026 04:23
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