Skip to content

fix: re-read Keychain on limit refresh and toggle the floating pet from the footer - #302

Merged
chattymin merged 1 commit into
chattymin:mainfrom
Borisserz:fix/stale-limit-token-and-pet-toggle
Sep 18, 2026
Merged

chattymin merged 1 commit into
chattymin:mainfrom
Borisserz:fix/stale-limit-token-and-pet-toggle

Conversation

@Borisserz

Copy link
Copy Markdown
Contributor

Summary

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Documentation
  • Other:

UI changes

Before After
Floating pet can be hidden from its menu, but turning it back on requires Settings. Footer (next to Settings / Quit, on every tab) has an eye icon. Shown: “Hide floating pet”. Hidden: “Show floating pet”. Same flag as the Settings checkbox.
Refresh limit token cache can leave official limits on the previous Claude account when that token has not expired. The same button re-reads Keychain and the account label / 5h / weekly bars follow the account now stored there.

Checklist

  • swift build and swift test pass locally
  • PR title and description are written in English
  • UI changes are described above (before/after — images optional)
  • No copyrighted assets, secrets, or private tooling references are committed (see CONTRIBUTING)
  • Tests were added or updated for this change

Closes #300
Closes #301

…om the footer

A still-valid cached Claude token hid an in-place account switch from the
Refresh button, because only a 401 cleared the cache. User refresh now skips
that cache. The popover footer can show the pet again after Hide, using the
same floatingPetEnabled flag as Settings.
@chattymin
chattymin merged commit 3272509 into chattymin:main Sep 18, 2026
2 checks passed
@chattymin

Copy link
Copy Markdown
Owner

Thank you for your contribution!

donky-ey pushed a commit to donky-ey/PokeDexBar that referenced this pull request Oct 15, 2026
…che (upstream chattymin#302)

A still-valid cached Claude token hid an in-place account switch from
the Refresh button, because only a 401 cleared the cache. User refresh
now passes bypassCache; the automatic poll keeps the cache and stays
out of the Keychain (asserted via the KeychainReader counter). The
popover footer can also show the floating pet again after Hide, using
the same floatingPetEnabled flag as Settings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants