Skip to content

v1.1.0

Latest

Choose a tag to compare

@errhythm errhythm released this 28 Nov 19:16
8ba11dd

Auto-switch

  • The switch-away threshold can go as low as 40 (was 50). weeklyThreshold keeps its 50 floor.
  • When a 429 keeps the active account's usage from being read, auto-switch no longer trusts the frozen figure as "still below the line". It leaves after unhealthyTicks, and only for an account it measured in the same pass with room under its line. With none, it stays.
  • The account it left that way is not a return target, home included, until a refresh of it succeeds.
  • A candidate whose refresh grant the live login also holds is passed over.

Credentials and refresh

  • Refreshing an inactive account never spends a grant the live login also holds.
  • A refresh that was never sent is told apart from one whose delivery is unknown. A reply cut off mid-read counts as transient. Reply text stays out of the debug log.
  • Each refresh logs a line before the request and one for how it ended.
  • The live keychainOverflow pointer's slot and key carry across a switch.
  • ccswap add's org-mismatch refusal says how to fix it, whichever side is stale.

Settings

  • New usage.requestLog (off by default) logs one line per usage request.
  • Optional settings.local.json: it overrides settings.json, and once it exists every settings write goes to it.

Display

  • A usage window past its reset shows ? instead of its old percentage, in ccswap list, the TUI, the menu bar, the popover and the statusline.
  • A reading whose refresh failed is headed by its age, e.g. last read 3h ago (http-429).

Fixes

  • Turning the Claude statusline off restores the previous statusline even when settings.local.json was created after it was turned on.