Skip to content

1.37.1: ask the server again after a sign-in and a sign-out - #3

Merged
jeany55 merged 1 commit into
mainfrom
casts-after-sign-in
Oct 16, 2026
Merged

jeany55 merged 1 commit into
mainfrom
casts-after-sign-in

Conversation

@jeany55

@jeany55 jeany55 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

The Account window's Replay casts line could say "Off · Not offered to this account for now." to a signed-in admin.

Why: the plugin reads the cast recipe's enabled from /v1/info in connect(), and only asks once (the dialog connects only while it has no answer yet). If the first answer came while signed out — the Account window opened before signing in — it was a guest's answer, and the server's enabled: false stuck after the sign-in. signIn() and refresh() updated the balance but never asked /v1/info again. A sign-out had the opposite problem: an "On" line stayed.

Change:

  • after a sign-in, connect() (re-read /v1/info) before refresh()
  • after a sign-out, connect() again as a guest
  • 1.37.1

Aftermath's Cast button was not affected: it asks /v1/info itself with the session.

Tests: a new account-manager test (guest answer → sign in → On → sign out → Off) fails without the change and passes with it. The AI-offer test's fake server now ends its session on logout like the real one does; with the new re-ask after a sign-out, the old fake kept answering as the admin. npm test 248 passed, npm run typecheck clean.

After merging: tag v1.37.1 and bump the pin in scm-js.

🤖 Generated with Claude Code

The Account window's Replay casts line (and anything else /v1/info says
per caller) was learned once, from the first answer. When that answer
came before signing in, it was a guest's, and an admin kept seeing
"Off · Not offered to this account for now." until the page reloaded.
A sign-in now re-reads /v1/info before refreshing the account, and a
sign-out asks again as a guest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jeany55
jeany55 merged commit 5e84737 into main Oct 16, 2026
1 check passed
@jeany55
jeany55 deleted the casts-after-sign-in branch October 16, 2026 04:15
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