Skip to content
pleach
ReferenceChangelog

@pleach/react changelog

Release history for @pleach/react — site-docs entries that materially touched the @pleach/react surface, newest-first. Canonical runtime history lives upstream.

This page collects the site-content changelog entries that materially touched the @pleach/react docs surface or named a @pleach/react symbol. It is not the runtime changelog — the canonical record of @pleach/react runtime behavior lives in the upstream package CHANGELOG.md. @pleach/react isn't on npm yet, so there's no package page to link.

See the combined site changelog at /docs/changelog/combined for the chronological unified view across every SKU.

Unreleased

Fixed

  • Seven stale claims corrected against the current core source (2026-11-23). content/docs/core.mdx said each subpath ships as a self-contained bundle; the build now emits shared chunks, so two subpaths loaded in one process share the same classes. content/docs/auditable-call-row.mdx stopped at record version 48; it now reads 50. content/docs/base-tools.mdx showed a correct_fact key the fact tools now refuse. content/docs/checkpointing.mdx didn't say prune(threadId, 0) throws PruneZeroKeepLastError, or that a list cursor is a checkpoint id that returns strictly older rows. content/docs/adoption-paths.mdx called recordCall() before init() a no-op; it drops the row and warns once with OBSERVE_RECORD_BEFORE_INIT. content/docs/react.mdx now marks useVercelAISDKCompat, <VercelAISDKCompat> and useVercelChatContext deprecated. Tracks upstream b0fd27363e, 0a9996e461, f51ec78f7a, 7d476ce198, 5c2c332aea, 042b063677.

  • @pleach/react version and pinning advice (2026-11-16). react.mdx called the package 1.0; it is 0.1.0. The "pin via ^ on the major" line now matches the page's pin-exact advice.

  • This page no longer links an npm page that doesn't exist. The opener said @pleach/react's canonical runtime history also lived on npm and linked it, but the name isn't on the registry, so the link 404'd. The opener now says the package isn't on npm yet.

  • Fabrication detection no longer says the guard runs before the user sees the text. applyFabricationGuard rewrites a turn before it is persisted, and a streaming client receives the rewrite as a content.correction after the original deltas. The page now says that, and that a client using the answer hold never shows text a guard corrects before the turn completes.

Added

  • useRemoteTurn. New page for the browser hook over server-hosted turns, exported by @pleach/core/react and @pleach/react. It covers mounting createPleachTurnRoutes, re-attaching by turn id, approvals, Stop, and the server's limits, including the 15-minute detachedApprovalWindowMs. React now lists the hook, so @pleach/react reads five hooks rather than four.
  • React notes the optional id on text and reasoning parts. It comes from the partId on the deltas that built the part and works as a render key. See Stream events → Part ids.
  • settledParts on the React hooks. useHarness, useChat and useSessionMessageStream's TurnContext expose the settled message's parts, including the tool parts of the calls that started, since parts empties when the turn settles. The answer hold masks it like parts. React also documents that each useHarness send keeps its own turn state, and that createSession or resumeSession during a turn detaches that turn without stopping it: its pending approvals are released unanswered, recorded as a policy decision (client_detached), not as the user's, so it cannot stall the next send, and abort() must come before the switch to stop it. useHarness.resolveInterrupt now reaches the runtime, or the in-process bridge on a browser runtime.
  • Answer hold: holdAnswerUntilTurnComplete on useChat, useHarness and useSessionMessageStream (default off). It keeps the reply out of view until the turn ends, so text a guard corrects or resets is never shown first. After a Stop, a dropped stream or releaseAfterMs, the text shown may be the uncorrected partial. useSessionMessageStream gains onAnswerReleased(ctx). Documented in Fabrication detection § Holding the answer, React and Troubleshooting. collectStream needs no option.

Changed

  • useVercelAISDKCompat is deprecated (2026-11-16). It projects the AI SDK v4 useChat shape. building-chat-ui.mdx now points to useChat from @ai-sdk/react served by toUIMessageStreamResponse from @pleach/core/ai-sdk.

  • Sidebar reorder — Frontend integration becomes its own top-level group in the build → ship → internals walk.

  • Per-recipe deep-dive page additions — recipes naming @pleach/react + createPleachRoute now have dedicated walk-throughs at /docs/recipes/simple-chatbot and others. Each carries a quickstart, the runtime composition the recipe wires, a TypeScript config interface, common gotchas, and cross-links.

2026-06-08

Changed

  • Packages table corrected to real published version — @pleach/react 1.0.0 (was largely stale "Reserved · placeholder" framing).