Gemini CLI patch fixes headless mode falsely reporting untrusted folders as trusted
burny_tech · x · 2026-09-28
PR #29528 in gemini-cli fixes a split-brain bug where useFolderTrust in headless mode always reported onTrustChange(true) even for untrusted workspaces (#29031).
- Root cause: PR #18407 (Feb 2026) bypassed trust checks in headless mode and hardcoded onTrustChange(true); PR #25814 (April 2026) later introduced workspace trust enforcement but never updated the hook, leaving stale logic.
- Fix: the hook now propagates the actual resolved trust value (true/false/undefined) and suppresses the trust dialog in headless mode instead of falsely asserting trust.
- Ships tests covering all three trust states; no new eslint-disable rules.
More from coding & agent
- Google Research open-sources PaperOrchestra, a multi-agent framework for writing AI papers — google-research · 2026-11-16
- ffmpeg-skill gives coding agents local video editing via 42 FFmpeg tools and MCP — kajisho5 · 2026-11-16
- Agents Now Reply to Slack Messages on Their Own, Resolving a Prod Incident Ghost-to-Ghost — iamrobotbear · 2026-11-16
- Engineer's Interview Prep Method: Use Claude to Find Which Answers Undersell Your AI Work — brandon_galang · 2026-11-16
- DeepSeek open-sources its app frontend "chat-demo", already at 3.9k stars — NielsRogge · 2026-11-16
- lemire: AI's real impact on coding is expanding the engineer's 'cognitive radius', not speed — lemire · 2026-11-16