gemini-cli - 💡(How to fix) Fix regression on update from 0.39.0 to 0.39.1 [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#25917Fetched 2026-04-25 06:22:25
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
labeled ×1

Code Example

Gemini CLI is not running in a trusted directory. To proceed, either use `--skip-trust`, set the `GEMINI_CLI_TRUST_WORKSPACE=true` environment variable, or trust this directory in interactive mode. For more details, see https://geminicli.com/docs/cli/trusted-folders/#headless-and-automated-environments

---

Tool \"github:pull_request_read.get\" not found. Did you mean \"run_shell_command\"?

---

> /about
# paste output here
RAW_BUFFERClick to expand / collapse

What happened?

after update it crashes (github action for review pr) with

Gemini CLI is not running in a trusted directory. To proceed, either use `--skip-trust`, set the `GEMINI_CLI_TRUST_WORKSPACE=true` environment variable, or trust this directory in interactive mode. For more details, see https://geminicli.com/docs/cli/trusted-folders/#headless-and-automated-environments

and if GEMINI_CLI_TRUST_WORKSPACE=true set, then it starts but can't find any mcp (github) with errors in logs like

Tool \"github:pull_request_read.get\" not found. Did you mean \"run_shell_command\"?

forcing back to 0.39.0 fixes issue

What did you expect to happen?

no errors

Client information

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

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

> /about
# paste output here
</details>

Login information

No response

Anything else we need to know?

No response

extent analysis

TL;DR

Setting the GEMINI_CLI_TRUST_WORKSPACE=true environment variable and ensuring the correct configuration for GitHub actions may resolve the issue.

Guidance

  • The error message suggests that the Gemini CLI is not running in a trusted directory, which can be resolved by setting the GEMINI_CLI_TRUST_WORKSPACE=true environment variable.
  • After setting the environment variable, the issue shifts to the tool "github:pull_request_read.get" not being found, indicating a potential configuration problem with GitHub actions.
  • Verify that the GitHub actions configuration is correct and compatible with the current version of Gemini CLI.
  • Consider checking the documentation for Gemini CLI and GitHub actions to ensure that all dependencies and configurations are up-to-date and correctly set up.

Example

No code snippet is provided as the issue seems to be related to configuration and environment variables rather than code.

Notes

The issue seems to be version-specific, as reverting to version 0.39.0 resolves the problem. However, without more information about the current version and configuration, it's difficult to provide a more detailed solution.

Recommendation

Apply workaround: Setting the GEMINI_CLI_TRUST_WORKSPACE=true environment variable and reviewing the GitHub actions configuration may provide a temporary solution until a more permanent fix is available.

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 regression on update from 0.39.0 to 0.39.1 [1 participants]