github assistant-ui/assistant-ui @assistant-ui/react@0.14.6

Patch Changes

  • #4023 94548fa - docs: add React JSDoc and deprecation notices for primitive and tool APIs (@AVGVSTVS96)

  • #3513 8b6fc88 - fix: guard navigator.clipboard availability and swallow write rejections in ActionBarPrimitive.Copy. Previously, copy clicks in SSR, non-HTTPS contexts, or older browsers without the Clipboard API threw a ReferenceError, and permission-denied rejections surfaced as unhandled promise rejections. The web copyToClipboard implementation in @assistant-ui/react now early-rejects when the API is unavailable, and useActionBarCopy in @assistant-ui/core silently absorbs the rejection so the rest of the UI is unaffected. (@JustAnOkapi)

  • #4040 b481ec5 - fix: useExternalStoreRuntime no longer leaves phantom assistant siblings when the external store swaps a message id between syncs (e.g. AI SDK v6 useChat replacing a client-generated id with a server-provided id mid-stream, surfacing as BranchPicker showing 2/2 on a turn the user never branched). The messages-array sync path now diffs against the previous sync and removes ids that disappeared, matching the messageRepository path's snapshot semantics. Closes #4037. (@okisdev)

  • #4063 8f0dbb8 - fix thread initialization timing race which caused scrollToBottomOnInitialize to fail in useLocalRuntime (@AVGVSTVS96)

  • #3958 7a8bf26 - refactor: hoist MessagePartPrimitiveInProgress to @assistant-ui/core/react so @assistant-ui/react, @assistant-ui/react-ink, and other distributions can share the same implementation. @assistant-ui/react's MessagePartPrimitive.InProgress is unchanged for callers; it now re-exports from core. (@ShobhitPatra)

  • #4050 693922b - fix(x-buildutils): include local types/ in typeRoots so x-buildutils itself can resolve its ambient browser-process types (@Yonom)

    feat(react): re-export Unstable_DirectiveFormatter, Unstable_DirectiveSegment, Unstable_TriggerItem, and unstable_defaultDirectiveFormatter from @assistant-ui/core so downstream packages don't need to depend on @assistant-ui/core directly

  • Updated dependencies [845c7c1, db721df, 94548fa, 94548fa, 94548fa, 8b6fc88, 179895f, 7a8bf26, 3b2bbce]:

    • assistant-cloud@0.1.28
    • @assistant-ui/store@0.2.11
    • assistant-stream@0.3.15
    • @assistant-ui/core@0.2.3

Don't miss a new assistant-ui release

NewReleases is sending notifications on new releases.