{"record":{"id":"92abcb82ac6a36f6","repo":"sipeed/picoclaw","slug":"not-logged-in-to-google-antigravity-run-picoclaw","errorCode":null,"errorMessage":"not logged in to Google Antigravity.\nrun: picoclaw auth login --provider google-antigravity","messagePattern":"not logged in to Google Antigravity\\.\nrun: picoclaw auth login --provider google-antigravity","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/picoclaw/internal/auth/helpers.go","lineNumber":439,"sourceCode":"\n\t\tif provider == \"anthropic\" && cred.AuthMethod == \"oauth\" {\n\t\t\tusage, err := auth.FetchAnthropicUsage(cred.AccessToken)\n\t\t\tif err != nil {\n\t\t\t\tfmt.Printf(\"    Usage: unavailable (%v)\\n\", err)\n\t\t\t} else {\n\t\t\t\tfmt.Printf(\"    Usage (5h):  %.1f%%\\n\", usage.FiveHourUtilization*100)\n\t\t\t\tfmt.Printf(\"    Usage (7d):  %.1f%%\\n\", usage.SevenDayUtilization*100)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn nil\n}\n\nfunc authModelsCmd() error {\n\tcred, err := auth.GetCredential(\"google-antigravity\")\n\tif err != nil || cred == nil {\n\t\treturn fmt.Errorf(\n\t\t\t\"not logged in to Google Antigravity.\\nrun: picoclaw auth login --provider google-antigravity\",\n\t\t)\n\t}\n\n\t// Refresh token if needed\n\tif cred.NeedsRefresh() && cred.RefreshToken != \"\" {\n\t\toauthCfg := auth.GoogleAntigravityOAuthConfig()\n\t\trefreshed, refreshErr := auth.RefreshAccessToken(cred, oauthCfg)\n\t\tif refreshErr == nil {\n\t\t\tcred = refreshed\n\t\t\t_ = auth.SetCredential(\"google-antigravity\", cred)\n\t\t}\n\t}\n\n\tprojectID := cred.ProjectID\n\tif projectID == \"\" {\n\t\treturn fmt.Errorf(\"no project id stored. Try logging in again\")\n\t}","sourceCodeStart":421,"sourceCodeEnd":457,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/cmd/picoclaw/internal/auth/helpers.go#L421-L457","documentation":"Error \"not logged in to Google Antigravity.\nrun: picoclaw auth login --provider google-antigravity\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at cmd/picoclaw/internal/auth/helpers.go:439 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}