Bug: Codex stuck on </proposed_plan> tag in plan mode, cannot confirm to switch to default mode
Bug Description
When using Codex agent in plan mode, sometimes after the plan is generated, the agent gets stuck and cannot confirm/transition back to default mode. Instead of showing a confirmation prompt or actionable UI, only the closing tag </proposed_plan> is displayed in the output, with no way to proceed.
Steps to Reproduce
- Launch a Codex agent session via Paseo
- Use plan mode to have Codex generate a plan
- After the plan is presented, attempt to confirm/approve it to proceed to default (execution) mode
- Actual: The output only shows
</proposed_plan>— no confirmation prompt appears, and the session is stuck - Expected: A confirmation prompt should appear, allowing the user to approve the plan and switch to default execution mode
Expected Behavior
Codex in plan mode should always present a clear confirmation step after generating a plan, allowing the user to approve and transition to default/execution mode.
Actual Behavior
Intermittently, the confirmation step is skipped or not rendered. Only the raw XML closing tag </proposed_plan> is shown, leaving the session in a stuck state with no actionable UI.
Environment
- Paseo version: latest (as of 2026-04-30)
- Agent: Codex
- Mode: Plan mode
Additional Context
This appears to be an intermittent issue — it does not happen every time plan mode is used. It may be related to how Paseo parses or renders Codex plan-mode output that contains XML tags.
hey will take a look when i get a chance, but a PR would be really helpful since you're able to replicate somewhat consistently
This is still plausible, but we cannot establish whether it reproduces on current Paseo or which event is missing from the intermittent failure.
Please reproduce once on the latest release and attach a trace-level daemon.log excerpt covering the failed plan turn, plus exact paseo --version and codex --version output. Include whether the host-level Append system prompt setting is configured, since #2231 tracks that narrower failure mode. The excerpt should include provider.codex.raw_event lines from turn/started through turn/completed; redact prompt text and secrets.
I’m seeing the same intermittent Plan-mode problem: after the plan is generated, the confirmation/approve step is missing most of the time and only appears occasionally. There is no actionable prompt to approve the plan and continue into execution, so the session appears stuck. Please consider this a current Windows desktop reproduction/use case.
Added your Windows desktop report to this issue, which stays open.
The plan mode confirmation step going missing is still not isolated to a reproducible path, and no fix is merged for it. Updates go on this issue.
Priority stays p2, with @diego4-2's report from Windows desktop counted. Both reports are from Codex plan mode, which does not establish a wider reach.
Updates go on this issue.
Thanks for the report. I'm closing this because it has been quiet for a month. If this still happens on v0.16.2, please open a new issue.