ctx7@0.5.8

neuml/txtaictx7@0.5.8Aug 11, 2026by github-actions[bot]

AI Summary

A patch release fixing authentication handling to prevent silent fallbacks to anonymous requests and forcing re-logins when OAuth tokens expire. It also fixes an issue where refresh tokens were being dropped.

Key Highlights

  • Fixed commands falling back to anonymous requests when stored OAuth tokens expire.
  • Improved token refresh logic to avoid forcing full interactive re-login.
  • Fixed refresh_token being dropped when the server omits it from the response.

Full Release Notes

### Patch Changes

- 91dea9f: Fix `ctx7 library`, `ctx7 docs` and `ctx7 skills suggest` silently falling back to anonymous requests when the stored OAuth token expires, which surfaced misleading quota errors for authenticated users. `ctx7 generate` no longer forces a full interactive re-login when the token can be refreshed instead. All four commands now go through `getValidAccessToken()`, which refreshes expired credentials.

  A successful refresh also keeps the stored `refresh_token` when the server omits one from the response, as permitted by RFC 6749 §6. Previously the response was written verbatim, so the refresh token was dropped and the user was silently logged out at the next expiry.