-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Agent silently drops context ("ghosts") immediately after approving a /plan #22266
Copy link
Copy link
Closed
Copy link
Labels
area/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent QualityIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Qualityarea/coreIssues related to User Interface, OS Support, Core FunctionalityIssues related to User Interface, OS Support, Core Functionalityworkstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreamsLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.⛔ Do not contribute. Internal roadmap item.
Metadata
Metadata
Assignees
Labels
area/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent QualityIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Qualityarea/coreIssues related to User Interface, OS Support, Core FunctionalityIssues related to User Interface, OS Support, Core Functionalityworkstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreamsLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.⛔ Do not contribute. Internal roadmap item.
Type
Fields
Give feedbackNo fields configured for Task.
Projects
Status
Closed
What happened?
When using the
/plancommand, 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
gemini-cli.> /plan.Make a tmux config file focusing on improving usability...).Plan approved: [file path]but immediately drops back to the empty>prompt.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
geminito enter the interactive CLI, then run the/aboutcommand.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: