Repository navigation
Run Plan mode on Codex in Codex's native plan collaboration mode (CF-3) - #385
Merged
Merged
Conversation
Val chose native plan mode on 2026-10-22 (docs/reviews/2026-10-22-cf3-plan-mode-decision.md). A Plan
turn on Codex now starts with `collaborationMode: { mode: "plan" }`, so Codex uses its own plan
instructions and offers its question tool by default, and the `PLAN MODE:` prefix is no longer sent.
The mode overrides the turn's model and effort, so its settings carry the model picked in Modex, or the
one Codex reported for the thread, and the picked effort. The sandbox stays read-only with `untrusted`
approvals.
Codex's proposed plan arrives as an experimental `plan` item, streamed by `item/plan/delta`, with no
final agent message. It becomes the turn's final assistant answer (`nativePhase: "plan"`), so every
client, journal and export shows it as Markdown with no new item kind. A Codex that refuses the mode
gets the prompt prefix instead, with a notice.
Red first: five of six new backend tests failed. New: test/codex-native-plan.test.ts and
e2e/codex-native-plan.spec.ts. Live: one Plan turn through the real backend, runner and broker asked
a question, took the answer, and ended with the plan as the answer.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
BunsDev
enabled auto-merge
October 22, 2026 23:57
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
4 tasks
This was referenced Oct 23, 2026
feat: live Codex captures, questions asked in a reply, and ending turns Codex never ends (#280)
#390
Merged
Open
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of CF-3 (#276). Implements Val's decision recorded in
docs/reviews/2026-10-22-cf3-plan-mode-decision.md: when Modex's Plan mode is on for a Codex turn, Modex now runs it in Codex's own plan mode.What changes
turn/startsendscollaborationMode: { mode: "plan", settings: { model, reasoning_effort, developer_instructions: null } }.thread/startorthread/resume.PLAN MODE:prefix.untrusted.planitem; Modex shows it as the final assistant message, markednativePhase: "plan".collaborationMode(JSON-RPC -32600/-32601/-32602 mentioning collaboration), Modex reruns the turn with the old prefix and shows: "This Codex does not offer its plan mode, so this Plan turn runs with Modex's plan instructions."Evidence
delivery: sent.test/codex-native-plan.test.ts, 6 tests written red first.e2e/codex-native-plan.spec.ts. It sends a Plan turn through the real backend, runner, IPC and UI against a scripted Codex.Tests
pnpm build: passed.pnpm teston the rebased head: 1,816 passed, 16 skipped.backend-health.test.jshung idle for two hours partway through, and I stopped it.pnpm test:e2e(before the rebase): 389 passed, 6 skipped, site 7 passed.Docs
human-requests.md: new "Plan mode on Codex" section.status.md: new unreleased entry; the rough edge is narrowed to "Codex asks questions on an ordinary turn only with a flag".task-context.md: clarifications updated.Still Val's
docs/reviews/2026-10-22-cf3-question-acceptance.md.🤖 Generated with Claude Code