Add support for Gemini CLI OAuth authorization flow to enable Gemini Code Assist
provisioning for accounts that lack the license. This includes:
- New `authorizeGeminiCli()` and `exchangeGeminiCli()` functions for OAuth flow
- Gemini CLI public client credentials (client_id, client_secret, scopes)
- Verification type classification system to distinguish between different error types:
- "gemini-cli": subscription/license required
- "api-enable": Cloud Code Private API not enabled
- "google-account": standard Google account verification
- "unknown": unclassified errors
- Smart verification that automatically triggers Gemini CLI OAuth when needed
- Enhanced toast messages and UI badges showing specific verification requirements
- Account verification metadata tracking (verificationRequiredType field)
- Backfill logic for accounts flagged before this field existed
The verification type is now propagated through the entire auth flow, enabling
targeted remediation paths for different error conditions.
BREAKING CHANGE: `markAccountVerificationRequired()` now accepts optional
`verificationType` parameter to classify verification requirements
- Updated Gemini CLI headers to match expected formats and behaviors
- Removed Linux support and adjusted fingerprint generation accordingly
- Cleaned up unused functions and constants
- Enhanced tests to validate new header behaviors
Previously, when config existed at legacy %APPDATA%\opencode path,
the plugin would read from there but never move it - leaving the
config permanently misaligned with the standard ~/.config/opencode path.
Now the plugin auto-migrates:
1. Attempts rename() first (atomic, same filesystem)
2. Falls back to copy()+delete() for cross-filesystem scenarios
3. Only uses legacy path as fallback if migration fails
This aligns config location across all platforms after first use.
- Update User-Agent versions from blocked range (1.10.8-1.11.5) to working range (1.14.0-1.15.8)
- Align with ANTIGRAVITY_VERSIONS in src/plugin/fingerprint.ts
- Bump package version to 1.4.1
Changes:
- Upgraded to Zod v4 and adjusted schema generation for compatibility
- Fixed keep_thinking=true failing without debug mode (signature validation)
- Fixed tool calls failing for tools with no parameters (default args to {})
- Aligned auth headers with official Gemini CLI to reduce account issues
- Fixed quiet_mode not suppressing all toast notifications
- Enhanced issue template configuration with troubleshooting and existing issues links.
- Removed old feature request markdown and replaced it with a new YAML template for better structure.
- Updated README to include a comprehensive troubleshooting section and clarified configuration paths.
- Added detailed troubleshooting steps for common issues, including rate limits and OAuth callback problems.
- Incremented version to 1.2.9-beta.10 in package.json.