Skip to content

[prompting] updated plan mode prompt#29301

Merged
rhan-oai merged 1 commit into
mainfrom
rhan/plan-mode-prompt
Jun 21, 2026
Merged

[prompting] updated plan mode prompt#29301
rhan-oai merged 1 commit into
mainfrom
rhan/plan-mode-prompt

Conversation

@rhan-oai

Copy link
Copy Markdown
Contributor

Update plan mode prompt to render the implementation plan to the user on relevant follow-ups, such that the user can exit out of plan mode to implement rather than manually switch of plan mode.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f06de8becd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Only produce at most one `<proposed_plan>` block per turn, and only when you are presenting a complete spec.

If the user stays in Plan mode and asks for revisions after a prior `<proposed_plan>`, any new `<proposed_plan>` must be a complete replacement.
If the user stays in Plan mode and asks for revisions after a prior `<proposed_plan>`, any new `<proposed_plan>` must be a complete replacement. If the user indicates that the prior plan is not acceptable but does not provide enough information to produce a complete replacement, address the concern and continue planning without producing a `<proposed_plan>` block. If the follow-up neither requires changes nor calls the plan into question (e.g. clarifying question), answer it before the block, then reproduce the prior `<proposed_plan>` unchanged.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add an integration test for plan follow-ups

This changes Plan Mode behavior after an existing <proposed_plan> by requiring clarifying/non-revision follow-ups to re-emit the prior plan, but the commit only updates the prompt template. Because this is a user-facing agent-logic change, it needs an integration test, for example under core/suite, that exercises a prior proposed plan followed by a clarifying question and verifies the plan item is re-emitted; otherwise prompt regressions or parser/UI mismatches won’t be caught.

AGENTS.md reference: AGENTS.md:L113-L119

Useful? React with 👍 / 👎.

@rhan-oai
rhan-oai merged commit 6bfc58a into main Jun 21, 2026
31 checks passed
@rhan-oai
rhan-oai deleted the rhan/plan-mode-prompt branch June 21, 2026 20:35
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants