Skip to content

grill run: keep the sign-in lock when the renewed token could not be read - #92

Merged
Frotty merged 1 commit into
masterfrom
battlenet-unknown-token-keeps-lock
Nov 18, 2026
Merged

Frotty merged 1 commit into
masterfrom
battlenet-unknown-token-keeps-lock

Conversation

@Frotty

@Frotty Frotty commented Nov 18, 2026

Copy link
Copy Markdown
Member

Problem

After a renewal, grill run holds the Battle.net sign-in lock until the launched client replaces EDITOR_TOKEN. If the sign-in watcher (#91) cannot start, grill falls back to reading the token from its own registry view.

That fallback read the renewed token once and kept null if the read failed. Its check, readBinary(...) != token, then counted the next successful read as a sign-in. The lock was released as the game started, so another Run Map or grill run renewal could replace the token before this client read it. Before #91 the token was never null, because grill wrote it itself.

Change

Validation

  • ./gradlew test: 157 tests, 0 failures, 2 skipped.
  • The new test theFallbackKeepsTheLockWhileTheRenewedTokenIsUnknownOrUnchanged fails when an unknown token is treated as a sign-in.
  • Not done: a live grill run with the watcher unable to start.

…read

If the sign-in watcher could not start and grill's read of the renewed
EDITOR_TOKEN failed, the fallback check took the next successful read for a
sign-in and released the lock, so another renewal could replace the token
before this client read it. An unknown token now holds the lock until the
timeout. The same fix as Run Map's in wurstscript/WurstScript#1631.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T09:31:50.961982Z 3ee1841 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Frotty
Frotty merged commit c70f86a into master Nov 18, 2026
1 check 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