tpmjs/apps/playground
Ajax Davis 9fc4339d52 fix: read env vars directly from localStorage to avoid React closure issue
The previous approach using useEnvVars() hook had a closure problem:
- envVars started as [] on first render
- buildEnvObject captured this empty array
- Even with function body, the transport memoized the old buildEnvObject

Solution: Read directly from localStorage inside the body function
- Bypasses React state entirely
- Gets fresh values on each request
- No closure issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 14:36:51 +10:00
..
src fix: read env vars directly from localStorage to avoid React closure issue 2025-12-04 14:36:51 +10:00
.env.local.example feat: implement playground app with AI SDK v6 tool execution 2025-12-04 02:51:02 +10:00
next-env.d.ts fix: use deployed /api/tools endpoint with client-side filtering and streamline git hooks 2025-12-04 13:43:19 +10:00
next.config.ts feat: add dynamic tool loading system with Railway executor 2025-12-04 08:25:53 +10:00
package.json fix: migrate playground to AI SDK v6 beta and resolve TypeScript errors 2025-12-04 13:15:21 +10:00
postcss.config.mjs feat: implement playground app with AI SDK v6 tool execution 2025-12-04 02:51:02 +10:00
tailwind.config.ts feat: implement playground app with AI SDK v6 tool execution 2025-12-04 02:51:02 +10:00
tsconfig.json feat: implement playground app with AI SDK v6 tool execution 2025-12-04 02:51:02 +10:00