YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: don't return userId for non-subscribers in validateSubscriptionWithId
Louis Beaumont9908ca231b47
diff --git a/packages/ai-gateway/src/utils/auth.ts b/packages/ai-gateway/src/utils/auth.tsindex 3b1ae4b05..6b48281bc 100644--- a/packages/ai-gateway/src/utils/auth.ts+++ b/packages/ai-gateway/src/utils/auth.ts@@ -235,7 +235,7 @@ async function validateSubscriptionWithId(env: Env, token: string): Promise<{ isconsole.error('Error checking Clerk user subscription:', error);}// Not subscribed - don't auto-grant, return false so it falls through- return { isValid: false, userId: token };+ return { isValid: false };}return { isValid: false };