Repository navigation
Conversation
The AI add-on's chat hook called useChat without the required threadId,
so the generated sample needed manual fixing before it would run. Pass a
stable threadId to useChat.
Both base templates carried an empty "pnpm": {}, which made every
generated project emit a useless empty pnpm field (mergePackageJSON keys
off a truthy pnpm). Remove it from the React and Solid bases; add-ons
that contribute pnpm.onlyBuiltDependencies still merge correctly.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 55f3894 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Walkthrough
Merge Risk:
|
Two small fixes to scaffolded projects.
AI add-on chat sample missing
threadId@tanstack/ai-react'suseChatrequires athreadIdon every call — it's a required field onChatClientOptions(the conversation id used for the wire, DevTools, and persistence). The generated sample calleduseChat(chatOptions)with nothreadId, so the app wouldn't type-check / run until hand-fixed.The chat hook now passes a stable
threadId:A stable id is correct here since the demo chat has no persistence. The other AI demos (TTS, transcription, image, structured) use plain
fetchrather than the generation hooks, so they needed no change.Empty
pnpmkey in base templatesBoth base templates carried an empty
"pnpm": {}. BecausemergePackageJSONkeys offpackageJSON.pnpmbeing truthy, that empty object made every generated project emit a useless, invalid emptypnpmfield — even when no add-on neededonlyBuiltDependencies.Removed
"pnpm": {}from the React and Solid basepackage.jsonfiles. Add-ons that contributepnpm.onlyBuiltDependencies(cloudflare, netlify, prisma, sentry, drizzle) still merge correctly via the overlay path.Testing
package-json,create-app, andconditional-packagessuites pass🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Chores