Repository navigation
feat: update TanStack DB and AI bindings - #1066
jonkwheeler wants to merge 29 commits into
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Autofix Details
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Unguarded chat UI render props
- Guarded Messages, Message, Part, Interrupts, Interrupt, ChatInput, and ToolApproval with isChildrenBlock so compiled template children render instead of being invoked as render props.
Or push these changes by commenting:
@cursor push f490490aa5
Preview (f490490aa5)
diff --git a/.changeset/chat-ui-children-block.md b/.changeset/chat-ui-children-block.md
new file mode 100644
--- /dev/null
+++ b/.changeset/chat-ui-children-block.md
@@ -1,0 +1,5 @@
+---
+"@octanejs/tanstack-ai": patch
+---
+
+Skip compiled `.tsrx` children-blocks when chat UI widgets decide between a render-prop child and ordinary template children.
diff --git a/packages/tanstack-ai/src/chat-ui/chat-input.tsrx b/packages/tanstack-ai/src/chat-ui/chat-input.tsrx
--- a/packages/tanstack-ai/src/chat-ui/chat-input.tsrx
+++ b/packages/tanstack-ai/src/chat-ui/chat-input.tsrx
@@ -1,4 +1,4 @@
-import { useRef, useState } from 'octane';
+import { isChildrenBlock, useRef, useState } from 'octane';
import { useChatContext } from './chat.tsrx';
import type { OctaneNode, RefObject } from 'octane';
@@ -90,7 +90,9 @@
// Render prop pattern
if (children) {
return <>
- {children(renderProps)}
+ {typeof children === 'function' && !isChildrenBlock(children)
+ ? children(renderProps)
+ : children}
</>;
}
diff --git a/packages/tanstack-ai/src/chat-ui/create-ui.tsrx b/packages/tanstack-ai/src/chat-ui/create-ui.tsrx
--- a/packages/tanstack-ai/src/chat-ui/create-ui.tsrx
+++ b/packages/tanstack-ai/src/chat-ui/create-ui.tsrx
@@ -1,6 +1,6 @@
// Bundlers replace this local declaration's guarded development check.
declare const process: { env: { NODE_ENV?: string } };
-import { createContext, memo, useContext } from 'octane';
+import { createContext, isChildrenBlock, memo, useContext } from 'octane';
import type { ComponentProps, ComponentType, Context, OctaneNode } from 'octane';
import {
automaticPartsForMessage,
@@ -469,9 +469,13 @@
const chat = useChatContext();
const messages = readMessages(chat);
const interrupts = readInterrupts(chat);
- if (children) return <>
- {children(messages)}
- </>;
+ if (children) {
+ return <>
+ {typeof children === 'function' && !isChildrenBlock(children)
+ ? children(messages)
+ : children}
+ </>;
+ }
return <>
{messages.map(
(message) =>
@@ -523,9 +527,13 @@
interrupts,
inlineToolNames: names,
});
- if (children) return <>
- {children(selected.parts)}
- </>;
+ if (children) {
+ return <>
+ {typeof children === 'function' && !isChildrenBlock(children)
+ ? children(selected.parts)
+ : children}
+ </>;
+ }
return <MessageRenderContext.Provider value={{ message, interrupts, inlineToolNames: names }}>
<MessageComponent message={message} Parts={Parts} />
</MessageRenderContext.Provider>;
@@ -629,7 +637,11 @@
}).parts[0];
if (!selected) return null;
return <PartContext.Provider value={selected}>
- {children ? (children(mixPart(selected))) : <SelectedPartInner selected={selected} />}
+ {children
+ ? (typeof children === 'function' && !isChildrenBlock(children)
+ ? children(mixPart(selected))
+ : children)
+ : <SelectedPartInner selected={selected} />}
</PartContext.Provider>;
}
@@ -646,9 +658,13 @@
interrupts: readInterrupts(chat),
inlineToolNames,
});
- if (children) return <>
- {children(selected.interrupts)}
- </>;
+ if (children) {
+ return <>
+ {typeof children === 'function' && !isChildrenBlock(children)
+ ? children(selected.interrupts)
+ : children}
+ </>;
+ }
return <>
{selected.interrupts.map(
(interrupt) => <Interrupt key={interrupt.id} interrupt={interrupt} />,
@@ -686,7 +702,11 @@
children?: (mixed: ChatUIInterrupt & InterruptMixins<TOptions>) => OctaneNode;
}) {
return <InterruptContext.Provider value={interrupt}>
- {children ? (children(mixInterrupt(interrupt))) : <InterruptInner interrupt={interrupt} />}
+ {children
+ ? (typeof children === 'function' && !isChildrenBlock(children)
+ ? children(mixInterrupt(interrupt))
+ : children)
+ : <InterruptInner interrupt={interrupt} />}
</InterruptContext.Provider>;
},
);
diff --git a/packages/tanstack-ai/src/chat-ui/tool-approval.tsrx b/packages/tanstack-ai/src/chat-ui/tool-approval.tsrx
--- a/packages/tanstack-ai/src/chat-ui/tool-approval.tsrx
+++ b/packages/tanstack-ai/src/chat-ui/tool-approval.tsrx
@@ -1,5 +1,5 @@
+import { isChildrenBlock, type OctaneNode } from 'octane';
import { useChatContext } from './chat.tsrx';
-import type { OctaneNode } from 'octane';
export interface ToolApprovalProps {
/** Tool call ID */
@@ -91,7 +91,9 @@
// Render prop pattern
if (children) {
return <>
- {children(renderProps)}
+ {typeof children === 'function' && !isChildrenBlock(children)
+ ? children(renderProps)
+ : children}
</>;
}
diff --git a/packages/tanstack-ai/tests/_fixtures/chat-ui-children.tsrx b/packages/tanstack-ai/tests/_fixtures/chat-ui-children.tsrx
new file mode 100644
--- /dev/null
+++ b/packages/tanstack-ai/tests/_fixtures/chat-ui-children.tsrx
@@ -1,0 +1,87 @@
+// @ts-nocheck
+import { Chat, ChatInput, ToolApproval, createChatUI } from '@octanejs/tanstack-ai/ui';
+
+const options = { connection: { connect: async function* () {} } };
+function Message({ Parts }) @{ <article><Parts /></article> }
+function Layout({ Messages, Interrupts }) @{
+ <>
+ <Messages />
+ <Interrupts />
+ </>
+}
+function Text({ part }) @{ <span>{part.content as string}</span> }
+const UI = createChatUI(options, {
+ components: { layout: Layout, message: Message },
+ partsComponents: { text: Text, fallback: () => null },
+ interruptsComponents: { generic: { fallback: ({ interrupt }) => <i>{interrupt.reason as string}</i> } },
+});
+
+const message = { id: 'm1', role: 'assistant', parts: [{ type: 'text', content: 'Hello' }] };
+const interrupt = { kind: 'generic', id: 'i1', reason: 'choose' };
+const chat = {
+ messages: [message],
+ interrupts: [interrupt],
+ queue: [],
+ cancelQueued() {},
+};
+
+export function ChatUIChildren() @{
+ <main>
+ <UI.Provider chat={chat}>
+ <UI.Messages>
+ <span id="messages-template">messages-template</span>
+ </UI.Messages>
+ <UI.Messages>
+ {(messages) => <output id="messages-callback">{String(messages.length)}</output>}
+ </UI.Messages>
+ <UI.Message message={message}>
+ <span id="message-template">message-template</span>
+ </UI.Message>
+ <UI.Message message={message}>
+ {(parts) => <output id="message-callback">{String(parts.length)}</output>}
+ </UI.Message>
+ <UI.Part part={message.parts[0]}>
+ <span id="part-template">part-template</span>
+ </UI.Part>
+ <UI.Part part={message.parts[0]}>
+ {(part) => <output id="part-callback">{part.key as string}</output>}
+ </UI.Part>
+ <UI.Interrupts>
+ <span id="interrupts-template">interrupts-template</span>
+ </UI.Interrupts>
+ <UI.Interrupts>
+ {(items) => <output id="interrupts-callback">{String(items.length)}</output>}
+ </UI.Interrupts>
+ <UI.Interrupt interrupt={interrupt}>
+ <span id="interrupt-template">interrupt-template</span>
+ </UI.Interrupt>
+ <UI.Interrupt interrupt={interrupt}>
+ {(item) => <output id="interrupt-callback">{item.reason as string}</output>}
+ </UI.Interrupt>
+ </UI.Provider>
+ <Chat connection={options.connection}>
+ <ChatInput>
+ <span id="input-template">input-template</span>
+ </ChatInput>
+ <ChatInput>
+ {(props) => <output id="input-callback">{props.disabled ? 'busy' : 'ready'}</output>}
+ </ChatInput>
+ <ToolApproval
+ toolCallId="c1"
+ toolName="buy"
+ input={{ n: 1 }}
+ approval={{ id: 'a1', needsApproval: true }}
+ >
+ <span id="approval-template">approval-template</span>
+ </ToolApproval>
+ <ToolApproval
+ toolCallId="c2"
+ toolName="sell"
+ input={{ n: 2 }}
+ approval={{ id: 'a2', needsApproval: true }}
+ >
+ {(props) => <output id="approval-callback">{props.toolName as string}</output>}
+ </ToolApproval>
+ </Chat>
+ </main>
+}
diff --git a/packages/tanstack-ai/tests/conformance/chat-ui-children.test.ts b/packages/tanstack-ai/tests/conformance/chat-ui-children.test.ts
new file mode 100644
--- /dev/null
+++ b/packages/tanstack-ai/tests/conformance/chat-ui-children.test.ts
@@ -1,0 +1,27 @@
+import { afterEach, expect, it } from 'vitest';
+import { mount } from '../../../octane/tests/_helpers';
+import { ChatUIChildren } from '../_fixtures/chat-ui-children.tsrx';
+
+afterEach(() => document.body.replaceChildren());
+
+it('chat UI widgets render template children and call render props', () => {
+ const result = mount(ChatUIChildren);
+ try {
+ expect(result.find('#messages-template').textContent).toBe('messages-template');
+ expect(result.find('#messages-callback').textContent).toBe('1');
+ expect(result.find('#message-template').textContent).toBe('message-template');
+ expect(result.find('#message-callback').textContent).toBe('1');
+ expect(result.find('#part-template').textContent).toBe('part-template');
+ expect(result.find('#part-callback').textContent).toBe('text');
+ expect(result.find('#interrupts-template').textContent).toBe('interrupts-template');
+ expect(result.find('#interrupts-callback').textContent).toBe('1');
+ expect(result.find('#interrupt-template').textContent).toBe('interrupt-template');
+ expect(result.find('#interrupt-callback').textContent).toBe('choose');
+ expect(result.find('#input-template').textContent).toBe('input-template');
+ expect(result.find('#input-callback').textContent).toBe('ready');
+ expect(result.find('#approval-template').textContent).toBe('approval-template');
+ expect(result.find('#approval-callback').textContent).toBe('sell');
+ } finally {
+ result.unmount();
+ }
+});You can send follow-ups to the cloud agent here.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
This comment has been minimized.
This comment has been minimized.
* fix: update Pacer, Query, Table and Virtual bindings * fix: preserve compiled Subscribe children and align Query peers * fix: include TanStack package licenses and provenance * fix: run binding stack CI with complete parity ownership * fix: align binding parity audits with expanded test coverage
- Guard chat UI render-prop children with isChildrenBlock so compiled .tsrx children-blocks render as template children instead of being invoked as render props (Messages, Message, Part, Interrupts, Interrupt, ChatInput, ToolApproval) - Add chat-ui-children conformance test and changeset
Addressed in 86b31bb: guarded all seven render-prop call sites — |
Resolve the run-pristine runner registry and pinned-public-types merge: run-pristine.mjs keeps both sides' runner entries, and pinned-public-types.test.mjs unions the fixture signatures (adjacent/ opaque + versioned/opaqueMember/packageName modes) so both suites' tests keep passing. Manifests rehashed for the merged tree via pnpm sync plus a run-pristine.mjs evidence-pin refresh.
* perf: reuse nested explicit child key prefixes (#1060) * perf: stabilize remaining runtime object shapes (#1067) * perf: reduce remaining DOM and event overhead (#1068) * perf: reduce remaining DOM and event overhead * test: cover parser text hosts and sync benchmark catalog * fix: update TanStack Router and SSR Query bindings * fix: register Router parity checks and migrate example SSR redirects * fix: update Mantine, Window, and compatibility bindings (#1074) * chore: verify react-is 19.3 and repair binding audit intake * fix: preserve configured upstream test discovery boundaries * perf: reduce effect and scheduler bookkeeping (#1070) * fix: update Window direction handling and compatibility evidence * fix: preserve error boundary reset refs and hydration * test: retain pinned error boundary declaration artifact * fix: use live reset from native error fallback * perf: reduce repeated hook bookkeeping (#1076) * perf: reduce repeated hook bookkeeping * test: follow shared helpers in Lynx compatibility evidence * fix: update Mantine Hooks compatibility to 9.6.1 --------- Co-authored-by: domgan-oai <[email protected]> * fix: update UI integration bindings (#1075) * chore: verify react-is 19.3 and repair binding audit intake * fix: preserve configured upstream test discovery boundaries * fix: preserve Electron 44 clipboard promise results * fix: preserve color channels when changing picker opacity * fix: register Colorful parity lanes and preserve Playwright selectors * fix: discover complete binding test inventories * chore: refresh Sanity loader dependency baseline * fix: follow shared binding test configurations * fix: update Thinking Orbs with verified engine imports * test: preload the Thinking Orbs differential oracle * perf: reduce effect and scheduler bookkeeping (#1070) * fix: update Resizable Panels with complete parity coverage * fix: route required Resizable Panels browser tests through parity CI * fix: update Window direction handling and compatibility evidence * fix: preserve error boundary reset refs and hydration * test: retain pinned error boundary declaration artifact * fix: use live reset from native error fallback * perf: reduce repeated hook bookkeeping (#1076) * perf: reduce repeated hook bookkeeping * test: follow shared helpers in Lynx compatibility evidence * fix: update Mantine Hooks compatibility to 9.6.1 * perf: split SSR escape pre-scan by string length (#1073) * perf: reduce SSR bookkeeping cost (empty snapshots, scoped counters, dev checks) (#1077) * perf: share empty SSR replay snapshots and allocate hook maps lazily Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * perf: flatten SSR frame scoped counters and hoist dev-mode checks Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * feat(jotai): migrate bindings to Jotai 3 (#1062) * feat(jotai): migrate bindings to Jotai 3 * test(jotai): register hydration and pristine CI ownership * perf: reduce compiler output allocation work (#1078) * perf: reduce compiler output allocation work * fix: register compiler output benchmark with MCP server * fix: preserve root transaction rollback and reduce journal work (#1079) * fix: invalidate stale retained Provider output (#1080) * fix: update Motion bindings to 13.2 with scoped props and native host fixes * fix: register Motion parity cases and refresh shared evidence hashes * fix: preserve descriptor ownership and reduce renderer work (#1081) * test: make motion parity checks reproducible in CI * fix: update Alien Signals binding to 0.4.0 Add selectors, deferred snapshots, phase effects, batching and trigger APIs. Reuse alien-signals 3.2.1 while retaining functional setters and cancelled scope ownership. Refresh the immutable upstream suite, full strict public contracts, SSR/hydration evidence and packed browser consumers. Isolate pristine Bun types from workspace build plugins and repair the verification defects exposed by the new upstream declarations and suite. * test: separate Alien Signals parity projects * fix: update Intersection Observer to 11.0.1 * fix(hook-form): update compatibility binding to 7.88.0 * test(hook-form): prepare clean typechecks and isolate parity projects * fix: update MobX bindings for MobX 7 * fix: preserve deferred JSX props and MobX CI coverage * fix: preserve context and render body ownership (#1082) * fix: preserve context and render body ownership * fix: validate lazy ownership through memo bailouts * perf: resolve renderer-region owner with one chain-top lookup (#1085) Context reads that resolve to a context default called rendererRegionOwnerForBlock on every read, and it did a guaranteed-miss WeakMap.get at every ancestor: bindRendererRegionOwner rejects any block that is not a top-level root, so only chain tops can be keys. Climb to the top directly and do one lookup; a module counter collapses the common no-owner case to a single integer test. Generated with [Devin](https://devin.ai) Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * Version Packages (#1058) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: complete remaining Strong compiler checks (#1083) * feat: complete remaining Strong compiler checks * fix: preserve Strong inference and mutation semantics * test: align mapped list fixture with Strong policy * fix: harden Strong declaration caching and editor analysis Review fixes for the automatic declaration cache and the new analyzers: - Reuse the parsed module for renderer-region analysis in the template policy and trusted-HTML check. The second strict parse threw out of `compileToVolarMappings` on shapes the tolerant editor parser accepts, and the TypeScript plugin then dropped every Strong diagnostic for the file. Restore the three base fixtures that had been rewritten around it. - Keep template `@for` row declarations out of the cache: the analysis does not model row bindings, so they were cached with empty inputs and rendered stale after item updates. - Count hooks executed inside nested functions when judging a candidate, so `compute(() => useContext(Ctx))` is not frozen on its first value. - Track class declarations as late bindings so a cache input never reads a class before its declaration runs. - Recognise cleanup returned by an expression-bodied effect callback. - Keep state provenance on values that mix props and state, and leave hook-named JSX builders with unknown arguments. - Treat authored dependency entries whose root is imported or module-invariant as redundant instead of conflicting. - Accept the `octane/strong` pragma as explicit ownership in slotHooks, forward plain-module Strong hints through the bundler, and keep a line-comment pragma readable when swapping to Strong JSX types. Every change carries a regression test that fails without it. Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix: address Strong compiler review and preserve hook ownership * docs: refresh Strong audit against release main --------- Co-authored-by: Dominic Gannaway <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]> * perf: reduce universal renderer materialization and preparation work (#1086) * perf: reduce universal renderer materialization and preparation work * fix: preserve own-key semantics in retained feature scans * chore: release universal benchmark tooling with runtime changes * fix: align universal benchmark order in MCP schema * perf: reuse SSR replay snapshots and streaming subscriptions (#1088) * perf: investigate remaining client hot paths (#1090) * perf: finish remaining runtime audit investigations (#1092) * perf: skip context-dependency scans when no provider has committed (#1091) Every memo/implicit bailout re-scanned the block's context dependency maps even when no Context.$$version had moved — per-survivor bookkeeping that was pure cost on context-quiescent renders. Stamp each block with the shared context epoch (Symbol.for'd cell so duplicated module copies share it at which its dep entries are known current; bailouts and context-propagation refreshes now skip both scans while the epoch is unmoved. provideContext and universal-renderer commits bump the epoch beside the version; renderResolved bumps it at entry so external bumpers (react-hosted mirrors, which publish then commit through root.render) can never be masked by the fast path. Stale merges poison the stamp so pending consumer refreshes are never skipped. Generated with [Devin](https://devin.ai) EOF ) Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(website): refresh published benchmark results (#1089) * feat(i18next): update binding to react-i18next 17.0.14 Tracks react-i18next 17.0.14 (v17.0.14, 5f8c5f9) while preserving the complete existing Octane surface and documented divergences. Source changes from the upstream delta: useTranslation keys its wrapper cache on language/resolvedLanguage/languages and warns SUSPENDED_WHILE_LOADING; IcuTransWithoutContext falls back to i18nKey || defaultTranslation; TransWithoutContext uses HTML.parse allowedTags, unwraps a top-level Octane Fragment passed through children, and carries the updated missing-i18n warning wording. Adds the pinned upstream tree and artifact (124 files, MIT), provenance, source ledger, closure and baseline audit artifacts, pristine/adapted parity lanes covering 495 React and 458 Octane specs plus 314 type registrations across fourteen programs, public-entry type assertions for all three subpaths, and refreshed status/UPSTREAM metadata. Extends react-parity/react-port tooling for multi-program type suites and records the jest-dom vitest-instance inline fix in the pristine config. Regenerates lockfile and manifest evidence hashes. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * merge: resolve manifest ownership against branch evidence Restore branch-side react-parity manifests (their lanes claim the testExecution entries this branch adds) and refresh lockfileSha256 for the merged lockfile. Keeps catalog resolution react-resizable-panels 4.12.4 + ripple 0.3.128. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix: discriminate scoped-read replay by source kind after merge replayScopedContextReads arrived on main typed Map<Context, number> while this branch widened scoped captures to ScopedReads (Context | StoreInst). Replaying store keys through recordContextDependency was unsound: stores carry snapshots, not $$version, and have no block context-dependency channel. Discriminate with $$version presence — contexts still record block deps; both kinds propagate to the enclosing resolver's capture. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test: give Vite-SSR hydration specs CI headroom The parity-shard failures on this head were 5s timeouts in three hydration specs that boot a Vite SSR server per case — pass in <1.5s idle, ~4s under local load, and over 5s in a 246-lane CI shard. Same signature as the load flakes already observed on main. Adds per-test 30s timeouts to the authored specs and a 15s project timeout to the tanstack-query adapted suite (matching tanstack-router's config), rehashing the affected manifests. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(tanstack-ai): raise ai-ui-hydration timeout for shard load The dedicated hydration lane boots a fresh Vite SSR server through renderHydrationFixture; under full-shard CI contention the 5s default timed out (same class as the earlier tanstack-table/router/query fixes). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test: raise infra timeouts hit under CI shard load cli analyze tests spawn the CLI per case and mantine-hooks browser navigation waits on a fresh-page networkidle from a busy Vite dev server; both hit the 5s default under full-shard contention. The describe-level 30s budget and a 30s goto timeout keep the deliberate per-interaction deadlines while giving infrastructure room. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test: raise base vitest testTimeout to 30s for shard load Hydration, browser, and CLI lanes boot per-test infrastructure whose cold start can exceed the 5s default under full-shard CI contention; successive runs have rotated through different victims (tanstack-query, table, router, ai, virtual, mantine-hooks, cli analyze). A base 30s covers the slowest observed cold start while per-project overrides keep their larger budgets. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(octane-evals): regenerate user-app corpus manifest after merge The main merge resolved manifest.jsonl to a side whose graderDigest no longer matched the merged grader files; the corpus staleness check flags it. Regenerated via generate-user-app-corpus.mjs; --check passes. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: domgan-oai <[email protected]> Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Dominic Gannaway <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]> Co-authored-by: Dominic Gannaway <[email protected]> --------- Co-authored-by: domgan-oai <[email protected]> Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Dominic Gannaway <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]> Co-authored-by: Dominic Gannaway <[email protected]>
…tanstack-router-db-ai-20260912
…github.com:octanejs/octane into jon/update-bindings-tanstack-router-db-ai-20260912
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON. A cloud agent has been kicked off to fix the reported issue. You can view the agent here.
Reviewed by Cursor Bugbot for commit cebce09. Configure here.
…to jon/update-bindings-tanstack-router-db-ai-20260912 Resolve hostComponent element-creation conflict by composing staged-DOM document views (ViewTransition) with namespace-aware host creation (SVG/foreignObject runtime adapters). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…to jon/update-bindings-tanstack-router-db-ai-20260912 # Conflicts: # packages/alien-signals/audit/react-parity.json # packages/draggable/audit/react-parity.json # packages/livestore/audit/react-parity.json # packages/monaco-editor/audit/react-parity.json # packages/solana-kit/audit/react-parity.json # packages/tanstack-store/audit/react-parity.json # packages/zag/audit/react-parity.json
The merge of the updated base resolved pnpm-workspace.yaml to main's
mobx 6.16.1 pin, but the MobX 7 binding update (named export surface:
actionBound, flowBound, observableRef, compareDefault, ...) requires
7.0.3 for `export * from 'mobx'` to satisfy the public-api type test.
Also classify deoptChildNamespace's getAttribute('encoding') read in the
staged-DOM audit — it inspects the committed destination parent, which
has no projected counterpart.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
…rface The merged lockfile re-resolved ^13.2.0 to motion/motion-dom 13.3.0, but the pristine lane materializes [email protected] and its suite reads motion-dom internals (MotionValue events) that 13.3.0 restructured. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The SSR/hydration test renders a real hydration fixture; under parity-shard load it crossed the 5s default twice. Other SSR-bearing lanes already use testTimeout: 30_000. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…dence set [email protected] declares motion-dom ^13.2.0 and motion-utils ^13.0.0; fresh resolution floated both to 13.3.x, whose MotionValue internals and published type surface diverged from the authenticated 13.2.0 upstream the pristine runtime and contract-type lanes execute against. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
page.goto inherited the 5s default meant for element interactions; under parity-shard load the vite dev server took longer to answer than that. Navigation gets 45s (matching the mantine browser lane); interaction timeout stays at 5s. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Project entries in test.projects do not inherit the root testTimeout, so lanes carrying hydration, conformance, and browser tests added on this stack were still running at the 5s vitest default and kept timing out under parity-shard contention (tanstack-pacer, now mobx conformance). Apply the repo's existing per-lane convention — 30s testTimeout/hookTimeout for jsdom hydration and conformance lanes, 60s for browser lanes — to every lane hosting tests this stack added, including hook-form-browser whose 45s navigation budget would otherwise still die under a 5s test cap.
Materialized upstream test trees under tests/upstream/ are regenerated in place by concurrent materialization, so a file enumerated by readdirSync can be removed before realpathSync validates it. Treat a vanished file as absent rather than crashing the capability inventory and package test gate.
The parity audit counts tests skipped by a timed-out beforeAll as non-passing, and these lanes still ran at Vitest's 5s default. Apply the same 30s test and hook budgets to the 25 remaining react-parity lanes that host hydration or SSR test files.
|
READY FOR REVIEW |
|
This PR is stale, please re-create PR given the new repo agent constraints and rules. |


Summary
Update the DB binding to
@tanstack/[email protected]and the AI binding to@tanstack/[email protected]. DB gains the current provider, hydration, and live-query contracts. AI gains persistence, interrupts, typed chat UI, BYOK, WebMCP, and native MCP Apps rendering.This PR is stacked on #1065 and is the sixth grouped PR in the binding-update campaign. Router and SSR Query follow in the next group; the campaign remains limited to ten PRs.
Why
The previous bindings omitted released APIs. The DB update also exposed a runtime subscription gap: a store could change synchronously during subscription without notifying, leaving the component at its earlier snapshot.
Changes
Validation
CI portability repair: strict DB public types, the Redact audit generator and tests, parity metadata validation, formatting, and final synchronization pass after correcting three machine-local type import paths and one renamed regression reference. Current-head CI passes: 29 successful checks and one expected skip.
Passed full
pnpm typecheck, repository formatting, and frozen-lockfile installation.Passed all 124 package tarballs and consumers, including 53 strict TSRX binding programs in Node and browser environments. Existing unrelated strict-consumer exceptions are unchanged.
DB: 124 native cases; all 161 original upstream cases and 160 adapted cases (the sole exclusion is React StrictMode replay); ten required parity lanes; public/source/packed types and 396 public export contracts.
AI: all 235 original and 235 adapted registrations, all 25 original/adapted type cases, 123 export contracts, thirteen required parity lanes, and native UI/MCP/browser lifecycle evidence. The final dependency graph and machine verification passed with the authored host's neutral SDK dependencies included.
Passed 70 targeted external-store runtime cases and matched the baseline production external-store workload counts.
Passed 55 public-type audit tests, 90 graph/intake tests, and the additional CLI dependency-edge regression.
Full Node 24
pnpm test --maxWorkers=4: 64,934 passed, three initial failures, 3,426 pending, and four todo. All three failures passed on isolated recheck: the Alien Signals pristine suite after restoring its missing Bun binary, and both Base UI browser cases unchanged (five matching cases passed).Final
pnpm sync, full formatting/typecheck, frozen installation, and selected audit freshness report passed. DB and AI both passed machine verification. The combined CI parity configuration passed 407 DB/AI tests, all 23 required DB/AI lanes passed again, and 88 CI registration/contract tests passed after correcting duplicate lane project registration. The repository parity audit also passed. CI passes on the repaired head.Risk / follow-ups
The AI migration uses
threadIdand queues concurrent messages by default; usequeue: 'drop'to retain drop behavior. Its matched production chat fixture grows from 79,443 to 99,388 gzip bytes with the new client. Replacing a transport applies before the next explicit idle send/append/reload so it cannot cancel an active stream or hydration resume.Provenance
agent-authored)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Medium Risk
Touches core
useSyncExternalStoretiming plus broad binding upgrades (DB live queries, AI chat transport, router SSR redirect handling), though changes are mostly compatibility ports with heavy parity coverage described in the PR.Overview
This PR ships a grouped binding-update campaign (stacked on prior work): headline upgrades to
@octanejs/tanstack-db(@tanstack/[email protected]/@tanstack/[email protected]) and@octanejs/tanstack-ai(@tanstack/[email protected]), plus many sibling patch bumps captured in new changesets (forms, router, motion, MobX, Electron clipboard, i18next, and others).Core
octaneruntime changes tied to the DB refresh include re-reading external-store snapshots aftersubscribeso synchronous initialization without a notification still reaches mounted/hydrated UI, removing the DB adapter’s deferred initial-notification workaround. Other core notes in the release set cover SVG/MathML host namespaces, Suspense/external-store memo behavior, and MobX observable tracking for JSX created inside callbacks.TanStack AI expands to the current adapter surface (persistence, interrupts, typed chat UI, BYOK, WebMCP, native MCP Apps rendering) with a small chat-UI fix to ignore compiled
.tsrxchildren-blocks when choosing render-prop vs template children. TanStack Start / Router alignment is reflected in the Hacker News example, which follows server redirects viarouter._serverResultinstead of legacy redirect state.Repo hygiene:
.prettierignoreexcludes more TanStack helper paths;docs/bindings-status.mdand package indexes record new upstream pins and evidence dates; the Redact audit doc renames one external-store test reference.Reviewed by Cursor Bugbot for commit 63c8816. Bugbot is set up for automated code reviews on this repo. Configure here.