fix: init re-auths instead of hard-failing on an expired stored token - #169
Merged
Conversation
Bumps google-cli-common v0.1.1 -> v0.1.2, picking up open-cli-collective/google-cli-common#1: 'gro init' now routes an invalid_grant (expired/revoked refresh token) into the re-auth flow instead of aborting with 'getting profile: ... Token has been expired or revoked', and skips the TTY confirm under --auth-code-stdin.
piekstra-dev
approved these changes
Aug 3, 2026
piekstra-dev
left a comment
There was a problem hiding this comment.
Automated PR Review
Reviewed commit: b3be3c7b4c6f
Profile: reviewer - Posting as: piekstra-dev
Summary
| Reviewer | Findings |
|---|---|
| go:implementation-tests | 0 |
Reviewer Coverage
| Reviewer | Status | Inspected | Skipped | Constraints |
|---|---|---|---|---|
| go:implementation-tests | complete_broad | go.mod, go.sum | unavailable | Diff is a version-only go.mod/go.sum bump with no local Go code changes to review. |
0 PR discussion threads considered. 0 summarized; 0 resolved.
Completed in 1m 21s | $0.59 | claude-sonnet-5 | cr 0.10.268
| Field | Value |
|---|---|
| Model | claude-sonnet-5 |
| Reviewers | go:implementation-tests |
| Engine | claude_cli · claude-sonnet-5 |
| Reviewed by | cr · piekstra-dev |
| Duration | 1m 21s wall · 1m 10s compute |
| Cost | $0.59 |
| Tokens | 22 in / 3.2k out |
Per-workstream usage
| Workstream | Model | In | Out | Cache read | Cache create | Cost | Duration |
|---|---|---|---|---|---|---|---|
| orchestrator-selection | claude-sonnet-5 | 6 | 1.4k | 0 | 54.6k | $0.35 | 19s |
| go:implementation-tests | claude-sonnet-5 | 10 | 1.3k | 113.1k | 13.4k | $0.14 | 43s |
| orchestrator-rollup | claude-sonnet-5 | 6 | 395 | 56.8k | 14.4k | $0.11 | 7s |
piekstra
added a commit
to open-cli-collective/google-readwrite
that referenced
this pull request
Aug 3, 2026
…#1) Bumps `google-cli-common` v0.1.1 → v0.1.2, picking up open-cli-collective/google-cli-common#1. Same fix as open-cli-collective/google-readonly#169 — `grw init` shares `initcmd` from the common module. An expired/revoked stored token (weekly for Testing-mode OAuth apps) previously aborted init with `oauth2: "invalid_grant" "Token has been expired or revoked."` instead of offering re-auth; v0.1.2 routes it into the re-auth flow and skips the TTY confirmation under `--auth-code-stdin`. `go build ./...` and `go test ./...` pass locally with the bump. https://claude.ai/code/session_018kd6nduhCb2p3RzVvbPnMF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps
google-cli-commonv0.1.1 → v0.1.2, picking up open-cli-collective/google-cli-common#1.gro initpreviously hard-failed when the stored token was expired/revoked (the weekly fate of Testing-mode OAuth apps):requiring a manual keychain delete before re-auth. With v0.1.2 the invalid_grant is recognized as an auth error and routed into the existing re-auth flow (confirm → clear token → fresh consent), and the confirmation prompt is skipped under
--auth-code-stdinwhere no TTY exists.Real-world validation: a locally patched gro built from this exact combination handled a production expired-token re-auth end to end on 2026-08-03.
go build ./...andgo test ./...pass locally with the bump.https://claude.ai/code/session_018kd6nduhCb2p3RzVvbPnMF