Repository navigation
fix: explicitly end Plan mode when switching to Code mode - #10270
yuvrajangadsingh wants to merge 1 commit into
Conversation
When switching from Plan to Code mode, the Code mode template now explicitly ends Plan mode. This addresses the issue where the model would continue following Plan mode instructions because Plan mode states it persists 'until a developer message explicitly ends it.' Fixes openai#10185
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
We've updated our contribution guidelines to indicate that we're no longer accepting unsolicited code contributions. All code contributions are by invitation only. To read more about why we've taken this step, please refer to this announcement. |
|
@yuvrajangadsingh we can continue the discussion in the issue comments, but in the session rollout posted in #10185, the issue looked like plan mode developer instructions being sent at wrong times, not just the code mode prompt being too subtle. |
Summary
Fixes #10185
When switching from Plan to Code mode, the Code mode template now explicitly ends Plan mode.
Root Cause
The Plan mode template (
plan.md) states:But the Code mode template (
code.md) only said:This wasn't an explicit "end" to Plan mode, causing the model to continue following Plan mode instructions even after switching.
Changes
Updated
code.mdto explicitly end Plan mode:Testing
Thread ID from issue:
019c0aed-2138-7b32-acf5-f3fb174f84f3