-
Notifications
You must be signed in to change notification settings - Fork 13.6k
/clear command fails to update plan/task directories for the new session #25500
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 Qualitystatus/need-triageIssues that need to be triaged by the triage automation.Issues that need to be triaged by the triage automation.workstream-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
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 Qualitystatus/need-triageIssues that need to be triaged by the triage automation.Issues that need to be triaged by the triage automation.workstream-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
Type
Fields
Give feedbackNo fields configured for Task.
Projects
Status
Closed
Summary:
Executing the
/clearcommand in Gemini CLI resets the conversation and generates a new session ID. While theConfigobject is updated with this new ID, the internalStorageinstance remains tied to the initial session ID because it is set at construction and cannot be modified. As a result, the agent's system prompt and planning/tracking tools continue to use the file paths from the previous session, leading to "Plan Mode" pointing to the wrong directory.Steps to Reproduce:
/clear.