Skip to content

fix(agent): keep tool admission checks out of history replay - #6905

Merged
M4n5ter merged 1 commit into
rust-previewfrom
codex/replay-rejected-external-tool
Nov 14, 2026
Merged

M4n5ter merged 1 commit into
rust-previewfrom
codex/replay-rejected-external-tool

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 14, 2026

Copy link
Copy Markdown
Member

Summary

A rejected external tool call could leave an existing conversation stuck reconnecting. Calls rejected before execution no longer require cleanup. Reading conversation history no longer re-runs the checks for starting new tool work; those checks still run before new work is admitted. Existing conversation data needs no migration.

Verification

  • All seven maka-agent-state tests passed, including a rejected call followed by another tool and a check that failed cleanup still blocks new tool admission.
  • Replayed all 253 events from an affected Antigravity run and recovered its recorded cancellation.

AI use

  • Generative tooling made a substantive contribution

OpenAI Codex implemented and verified the fix.

Checklist

  • Tests cover the change and fail without it
  • Formatting and the affected tests pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above

@M4n5ter
M4n5ter merged commit f40ff04 into rust-preview Nov 14, 2026
8 of 9 checks passed
@M4n5ter
M4n5ter deleted the codex/replay-rejected-external-tool branch November 14, 2026 12:11
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