Repository navigation
fix(gemini): trust workspace for headless gemini-cli (exit 55) - #151
Merged
Merged
Conversation
gemini-cli 0.60+ exits 55 (FatalUntrustedWorkspaceError) when folder trust is on and the Actions checkout is not in trustedFolders.json. -y auto-approves tools but does not bypass that gate. Set GEMINI_CLI_TRUST_WORKSPACE=true by default (ExtraEnv can override) and include a short CLI output tail in engine errors so bot comments show the real failure next time. Unblocks Sync #1/#2 and code#147 dogfood after Vertex preflight.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Codecov patch flagged the empty-output branch of the exit-55 error formatting. Exercise a non-zero exit with no stdout/stderr.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@google/gemini-cli@0.60.0defaults folder trust on. Headless Aixgo runs in a fresh Actions checkout hitFatalUntrustedWorkspaceError→ exit 55.-ydoes not bypass trust.GEMINI_CLI_TRUST_WORKSPACE=trueunlessExtraEnvalready sets itEvidence
Blocked: engine error: gemini -p: exit status 55~4s after preflightgemini-3.5-flash) did not change the failureTest plan
make check@maintemporarily): clearax:blocked, re-ax:goon Sync docs: add README, Apache-2.0 license, and project policies #1/build: SimplyCubed Code foundation (gate-first Go core) #2