gemini-cli - 💡(How to fix) Fix sometimes it doesn't know how to use exit_plan_mode [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#25047Fetched 2026-04-10 03:44:57
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

Code Example

Shell exit_plan_mode (Exiting Plan Mode.)
/usr/bin/bash: line 2: exit_plan_mode: command not found

---

> /about
# paste output here
About Gemini CLI│                                                                                                                                                                 │
CLI Version                                             0.37.0Git Commit                                              352bbe149                                                                                               │
Model                                                   gemini-3-flash-preview                                                                                  │
Sandbox                                                 no sandbox                                                                                              │
OS                                                      linux                                                                                                   │
Auth Method                                             Signed in with Google (kurokirasama@gmail.com)Tier                                                    Gemini Code Assist in Google One AI Pro
RAW_BUFFERClick to expand / collapse

What happened?

Sometimes gemini-cli doesnt know how to exit plan mode and try different things, for instance:

Shell exit_plan_mode (Exiting Plan Mode.)
/usr/bin/bash: line 2: exit_plan_mode: command not found

What did you expect to happen?

exiit plan mode silently just as it enters it

Client information

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

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

> /about
# paste output here
About Gemini CLI                                                                                                                                                │
│                                                                                                                                                                 │
│ CLI Version                                             0.37.0                                                                                                  │
│ Git Commit                                              352bbe149                                                                                               │
│ Model                                                   gemini-3-flash-preview                                                                                  │
│ Sandbox                                                 no sandbox                                                                                              │
│ OS                                                      linux                                                                                                   │
│ Auth Method                                             Signed in with Google ([email protected])                                                          │
│ Tier                                                    Gemini Code Assist in Google One AI Pro                                                                 │
</details>

Login information

google account

Anything else we need to know?

No response

extent analysis

TL;DR

The issue can be resolved by ensuring the exit_plan_mode command is properly configured or aliased in the shell.

Guidance

  • Verify that the exit_plan_mode command is available in the system's PATH or is correctly aliased in the shell configuration.
  • Check the gemini-cli documentation to see if there are specific instructions for configuring the exit_plan_mode command.
  • If the issue persists, try using a different method to exit plan mode, such as a keyboard shortcut or a different command, if available.
  • Review the shell configuration files (e.g., .bashrc, .bash_profile) to ensure that there are no conflicting aliases or commands that may be causing the issue.

Notes

The exact solution may depend on the specific shell and system configuration being used. The issue may be related to a misconfiguration or a missing alias in the shell.

Recommendation

Apply workaround: Try using a different method to exit plan mode or reconfigure the shell to properly recognize the exit_plan_mode command, as the issue seems to be related to shell configuration rather than a version-specific problem with gemini-cli.

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