Skip to content

Agent silently drops context ("ghosts") immediately after approving a /plan #22266

@singhc7

Description

@singhc7

What happened?

When using the /plan command, the agent successfully generates the markdown plan and prompts for approval. Upon approval, it registers the "Plan approved" event and saves the file. However, instead of transitioning into the execution phase, the agent silently drops its context loop and returns to the standard interactive prompt > without producing any code or error messages.

Steps to Reproduce

  1. Launch gemini-cli.
  2. Enter plan mode by typing > /plan.
  3. Provide a task prompt (e.g., Make a tmux config file focusing on improving usability...).
  4. Wait for the agent to generate the plan and approve it.
  5. Observe the output: the CLI outputs Plan approved: [file path] but immediately drops back to the empty > prompt.
Image

What did you expect to happen?

After the plan is approved and saved, the agent should automatically transition into the execution phase, following the steps outlined in the generated markdown plan to write the code.

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
│ About Gemini CLI                                                                                                                                                          │
│                                                                                                                                                                           │
│ CLI Version                                                0.33.1                                                                                                         │
│ Git Commit                                                 f59f9e931                                                                                                      │
│ Model                                                      Auto (Gemini 3)                                                                                                │
│ Sandbox                                                    no sandbox                                                                                                     │
│ OS                                                         linux                                                                                                          │
│ Auth Method                                                Logged in with Google (b######t@gmail.com)                                                                     │
│ Tier                                                       Gemini Code Assist in Google One AI Pro                                                                        │                                                                                                    

Login information

Google Account

Anything else we need to know?

Environment:

OS: Fedora Linux

CLI Version: v0.33.1

Workaround:

Currently, the generated plan is saved but the agent drops the context. To proceed, I have to manually feed the generated plan back into the prompt to force execution using:

@/path/to/generated/plan.md Implement the steps outlined in this plan.

Metadata

Metadata

Assignees

Labels

area/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Qualityarea/coreIssues related to User Interface, OS Support, Core Functionalityworkstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.

Type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions