Skip to content

Release 0.2.0-next.5: auth fail-safe + regression test - #3

Merged
max-bader merged 1 commit into
mainfrom
claude/sdk-auth-failsafe-release
Jul 16, 2026
Merged

max-bader merged 1 commit into
mainfrom
claude/sdk-auth-failsafe-release

Conversation

@max-bader

Copy link
Copy Markdown
Contributor

What

Cuts the next (canary) release that ships the onAuthStateChange fail-safe fix, and adds a regression test for it.

  • Bump 0.1.10.2.0-next.5 (publishes to the next dist-tag on release).
  • Regression test: a rejecting /users/me session check must still fire SIGNED_OUT.
  • Changelog entry.

Why

The code fix (add .catch(() => callback("SIGNED_OUT", null)) in onAuthStateChange) already landed on main in #2 — but main is still at 0.1.1, so it hasn't been published to the next channel that sdk-canary apps actually pull. Until a next release is cut, the fix reaches no app.

Background: without the .catch, when the initial /users/me fetch rejects (cross-origin/network failure — e.g. the sandbox-preview context Cloudflare screenshots run in), the state callback never fired, BoolAuthProvider.loading never cleared, and <AuthGate> rendered null forever. The app hung on a blank page — which is what made project-card thumbnails capture an empty background regardless of screenshot delay.

After merge

Cut the release to publish to next:

gh release create v0.2.0-next.5 --prerelease --title v0.2.0-next.5

The publish workflow derives the dist-tag from the prerelease version (0.2.0-next.5next). Then sdk-canary apps pick it up on their next sandbox boot, and re-capturing a project (screenshot lab) should show the sign-in screen instead of a blank card.

Test plan

🤖 Generated with Claude Code

The onAuthStateChange getUser-rejection fix already landed on main (#2), but
main is still at 0.1.1 so it hasn't shipped to the `next` (canary) channel
that sdk-canary apps pull. Bump to 0.2.0-next.5 to cut that release, add a
regression test that a rejecting /users/me session check still fires
SIGNED_OUT (rather than hanging <AuthGate> on a blank screen — the cause of
the empty project-card screenshots), and record it in the changelog.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@max-bader
max-bader merged commit e9c6f1b into main Jul 16, 2026
3 checks passed
@max-bader
max-bader deleted the claude/sdk-auth-failsafe-release branch July 16, 2026 14:46
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