Skip to content

fix(web): refresh composer auth token - #131

Merged
iamjr15 merged 1 commit into
mainfrom
fix/refresh-composer-auth-token
Aug 3, 2026
Merged

fix(web): refresh composer auth token#131
iamjr15 merged 1 commit into
mainfrom
fix/refresh-composer-auth-token

Conversation

@iamjr15

@iamjr15 iamjr15 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • request an uncached Clerk token when the home composer submits
  • remove the raw lastActiveToken shortcut that could reuse a 60-second JWT after expiry
  • let the request wait for Clerk instead of silently timing out token acquisition

Why

Production network evidence showed home-composer thread creation sending JWTs after their exp timestamp. The raw browser token shortcut bypassed Clerk's normal refresh behavior, causing Invalid or expired bearer token before an agent run could start.

Validation

  • pnpm turbo skills:build
  • pnpm turbo typecheck lint build --force (55/55 tasks)
  • pnpm architecture:check
  • pnpm deadcode
  • git diff --check

@iamjr15
iamjr15 merged commit 52ebc8a into main Aug 3, 2026
4 checks passed
@iamjr15
iamjr15 deleted the fix/refresh-composer-auth-token branch August 3, 2026 13:59
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