mirror of
https://github.com/openai/codex.git
synced 2026-11-05 20:10:33 +00:00
## Why MCP startup alone should not block `/fork`, and rejecting a fork while foreground work is pending should preserve the draft and its image attachments. ## What changed - Defer `/fork` draft consumption until dispatch validates the thread state, as for `/review`. - Allow `/fork` during MCP startup when no user turn or review is pending or running, and clear the composer after validation succeeds. - Preserve drafts and attachments when these commands are rejected in side conversations. ## Testing Extend regression coverage for `/fork` and `/review` draft preservation during MCP startup, successful fork dispatch and composer clearing, rejection during an active review, and attachment preservation in side conversations. GitOrigin-RevId: d152ba6659e4507d8750cb6bd3073d9f8b293538