Skip to content

release: autter 2.2.1 — stop refreshing a dead login token - #75

Merged
sagnik11 merged 1 commit into
mainfrom
autter/release-2.2.1
Oct 18, 2026
Merged

sagnik11 merged 1 commit into
mainfrom
autter/release-2.2.1

Conversation

@sagnik11

@sagnik11 sagnik11 commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Releases #74 (CE-20). Merging this bumps the version to 2.2.1: tag-release.yml tags v2.2.1 on the merge commit and dispatches release.yml, which builds the binaries and publishes @autter/cli to npm.

Changes

  • Cargo.toml, Cargo.lock: autter 2.2.0 → 2.2.1 (lockfile checked with cargo metadata --locked)
  • npm/package.json: 2.2.0 → 2.2.1 (release.yml also stamps the tag's version)
  • CHANGELOG.md: [2.2.1] entry for the dead-token fix

Why

About 5 installs (CLI 1.6.9–2.2.0) keep refreshing a refresh token the server has refused, every daemon tick, so those developers stay logged out and their AI-authorship data never arrives. The server side (autter-monorepo #513) already makes the refusal terminal and cheap; these installs stop only once they run a CLI with #74.

After release

  • Installs pick it up through autter upgrade or the background update check; affected users then run autter login once, which the new CLI tells them to do.
  • Server check: the #513 Logs Insights query (stats count(*) by tokenHashPrefix, cliVersion, installId) should show refusals only from versions below 2.2.1.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

### Fixed
- A refused refresh token (invalid_grant / login_required) is recorded and no longer retried until `autter login` stores new credentials (#74).
- One notice per refusal instead of a warning every daemon tick.
- Stored credentials are replaced only if they still hold the refresh token that was sent.
- OAuth errors keep error, error_code and login_required.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sagnik11
sagnik11 merged commit 344bc7f into main Oct 18, 2026
3 of 4 checks passed
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