gemini-cli - 💡(How to fix) Fix Plan mode sometimes gets mixed up between different sessions [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#26276Fetched 2026-05-01 05:52:52
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
labeled ×1

Code Example

About Gemini CLI│                                                                                                                                                                                            │
CLI Version                                                      0.40.0Git Commit                                                       3d5bdc052                                                                                                                 │
Model                                                            Auto (Gemini 3)Sandbox                                                          no sandbox                                                                                                                │
OS                                                               linux                                                                                                                     │
GCP Project                                                      gemini-cli-evaluation
RAW_BUFFERClick to expand / collapse

What happened?

In one session I put Gemini into plan mode and asked it to do something. In a completely separate session, the session appeared to be taken over by the plan from the other session.

Session A: <img width="779" height="723" alt="Image" src="https://github.com/user-attachments/assets/dc66fa3a-23a7-45e9-b8c7-4c6d56bb393c" />

Session B: <img width="779" height="425" alt="Image" src="https://github.com/user-attachments/assets/29939a00-42d0-4339-8885-c8385baa9a95" />

It may only happen when Gemini is also thinking in the non-planning session.

What did you expect to happen?

I expected the sessions to stay isolated from each other.

Client information

<details> <summary>Client Information</summary>

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

│ About Gemini CLI                                                                                                                                                                           │
│                                                                                                                                                                                            │
│ CLI Version                                                      0.40.0                                                                                                                    │
│ Git Commit                                                       3d5bdc052                                                                                                                 │
│ Model                                                            Auto (Gemini 3)                                                                                                           │
│ Sandbox                                                          no sandbox                                                                                                                │
│ OS                                                               linux                                                                                                                     │
│ GCP Project                                                      gemini-cli-evaluation
</details>

Login information

No response

Anything else we need to know?

No response

extent analysis

TL;DR

The issue may be resolved by ensuring session isolation in the Gemini CLI, potentially by using a sandbox or reviewing the plan mode implementation.

Guidance

  • Review the Gemini CLI documentation to understand how plan mode is intended to work across separate sessions.
  • Investigate the use of a sandbox to isolate sessions and prevent unintended interactions.
  • Check if there are any known issues or limitations with session isolation in the current version (0.40.0) of the Gemini CLI.
  • Consider testing the behavior in a controlled environment to reproduce and understand the issue better.

Example

No code snippet is provided as the issue does not include specific code references.

Notes

The provided information does not include details about the specific commands or actions taken in each session, which could be crucial for diagnosing the issue. Additionally, the lack of login information and other context might limit the ability to fully understand the root cause.

Recommendation

Apply workaround: Use a sandbox to isolate sessions until the root cause can be fully understood and addressed, as this might mitigate the issue by preventing sessions from interacting with each other.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

gemini-cli - 💡(How to fix) Fix Plan mode sometimes gets mixed up between different sessions [1 participants]