Anonymous - 2026-04-23

Originally posted by: kumaakh

Technical direction:

  1. Document the manual step in skills/fleet/onboarding.md (Gemini OAuth section): add an explicit step — 'After copying OAuth credentials to the remote member, SSH in and run gemini -p hello interactively once to accept the trust/consent prompt. All subsequent headless calls will work after this.' This is the immediate fix.

  2. Detect the hang: in src/tools/execute-prompt.ts, if the member is Gemini and produces no stdout within a configurable timeout (e.g. 30s from start), surface a specific diagnostic: 'Gemini member may be waiting for interactive trust prompt — SSH to the member and run gemini -p hello interactively once.'

  3. Pre-seed trust: investigate ~/.gemini/ for any config file that pre-accepts consent (e.g. a rusted: true field in settings.json). If found, add to the OAuth credentials copy step in provision_llm_auth.

  4. Refresh token: the 1-hour OAuth token expiry is a separate operational pain. Investigate whether gemini auth refresh exists or whether the OAuth flow in provision_llm_auth can be updated to request offline access (which includes a refresh token).