fix: enable T3 Connect in the T3 Code web frontend #6
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/t3code-connect-jwt-template"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
After #5, T3 Code still showed no T3 Connect section under Settings > Connections.
The web frontend gates every T3 Connect surface on
hasCloudPublicConfig(), which needs three build-time values:VITE_CLERK_PUBLISHABLE_KEY,VITE_T3CODE_RELAY_URLandVITE_CLERK_JWT_TEMPLATE. llm-agents setsT3CODE_RELAY_URL,T3CODE_CLERK_PUBLISHABLE_KEYandT3CODE_CLERK_CLI_OAUTH_CLIENT_ID, but notT3CODE_CLERK_JWT_TEMPLATE, so the built bundle hadclerkJwtTemplate: ""and the whole section was hidden.Fix
Add
T3CODE_CLERK_JWT_TEMPLATE = "t3-relay"to thet3code-unwrappedoverride'senv.t3-relayis the production value from upstream's.env.example, which states these are the same public identifiers baked into official release builds.Testing
nix flake checkpasses.clerkJwtTemplate:ky(`t3-relay`). The server and desktop main process do not read the template.Worth reporting upstream to numtide/llm-agents.nix together with the URL handler issue from #5.
🤖 Generated with Claude Code