Skip to content

Cache Gemini CLI metadata for sandboxed refresh#85

Merged
cbusillo merged 1 commit into
mainfrom
fix/gemini-sandbox-metadata-access
May 16, 2026
Merged

Cache Gemini CLI metadata for sandboxed refresh#85
cbusillo merged 1 commit into
mainfrom
fix/gemini-sandbox-metadata-access

Conversation

@cbusillo
Copy link
Copy Markdown
Owner

Summary

  • Add a Gemini CLI metadata cache keyed separately from the OAuth credentials file.
  • Let Settings cache Gemini CLI OAuth client metadata from a user-selected Gemini CLI bundle folder or JS file.
  • Use cached metadata in the sandboxed app and refresh-agent connector path before attempting filesystem discovery.
  • Add tests for user-selected metadata parsing and sandbox cached metadata wiring.

Root Cause

The TestFlight app was on the expected build and Gemini was installed at the normal Homebrew path, but the app sandbox only had user-selected access to the Gemini OAuth credentials JSON. Gemini's OAuth client metadata lives in the CLI package bundle under Homebrew, so background refresh could not discover it without an explicit user-selected path or cached metadata.

Validation

  • Targeted Gemini/account/provider tests passed.
  • Full commit gate passed.
  • Whitespace diff check passed.
  • Canonical runtime baseline install and launch passed.

@cbusillo cbusillo merged commit de90a34 into main May 16, 2026
3 checks passed
@cbusillo cbusillo deleted the fix/gemini-sandbox-metadata-access branch May 16, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant