paseo icon indicating copy to clipboard operation
paseo copied to clipboard

Bug: Codex stuck on </proposed_plan> tag in plan mode, cannot confirm to switch to default mode

Open sarices opened this issue 7 months ago • 6 comments

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

  1. Launch a Codex agent session via Paseo
  2. Use plan mode to have Codex generate a plan
  3. After the plan is presented, attempt to confirm/approve it to proceed to default (execution) mode
  4. Actual: The output only shows </proposed_plan> — no confirmation prompt appears, and the session is stuck
  5. 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.

sarices avatar Apr 30 '26 02:04 sarices

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

boudra avatar Apr 30 '26 03:04 boudra

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.

paseo-bot avatar Jul 30 '26 19:07 paseo-bot

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.

diego4-2 avatar Aug 31 '26 13:08 diego4-2

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.

paseo-bot[bot] avatar Sep 22 '26 15:09 paseo-bot[bot]

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.

paseo-bot[bot] avatar Oct 16 '26 00:10 paseo-bot[bot]

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.

paseo-bot[bot] avatar Nov 19 '26 07:11 paseo-bot[bot]