Skip to content

deps: one copy of the TanStack AI stack on the 0.43 line, and migrate what moved #239

Closed

Description

@omridevk

What to build

The repo runs one copy of the TanStack AI stack, on the current release line, with every gate green.

Today it runs three copies of @tanstack/ai side by side. The cause is a version mismatch we introduced rather than being behind: we declare @tanstack/ai@^0.42.0 while pinning @tanstack/ai-code-mode@0.3.7, whose peer dependency is exactly 0.41.0. Two copies of that package in one graph is the same hazard this repo already documents for Ark/Solid and for the RPC client — shared constants and identity checks stop matching across the boundary, and nothing warns you.

The dependency half is done on conciv-init: the stack moves to the 0.43.0 line as one consistent set (ai 0.43.0, ai-code-mode 0.3.9, ai-isolate-node 0.1.48, ai-sandbox 0.3.0, ai-sandbox-local-process 0.2.1, claude-code and codex 0.3.0, opencode and acp 0.2.4, ai-mcp 0.2.6, ai-client 0.23.0, ai-solid 0.16.0), every peer satisfied exactly, and the lockfile now references a single version. The local-process patch — a one-line stdin EPIPE guard that upstream still does not carry — was regenerated against 0.2.1 through the package manager's own patch flow, because the file had been restructured and the old diff could not apply. Four transitive stack members were added to the release-age exclusion list with a dated comment and a note to drop them once they age out, matching the convention already there.

What remains is the source migration, and it is not cosmetic. The event-log types this repo imports no longer exist: RunEventLog and InMemoryRunEventLog were removed from the sandbox package, which now expects the separate persistence package's stores. Alongside that, tool handlers may now be synchronous, so a schema-less tool no longer satisfies the code-mode tool type; the event union narrowed such that a run-started shape no longer widens to the umbrella event type; and one subscribe call now takes a different argument shape.

Tests are not the gate here — typecheck and build are, because a version split shows up as a type mismatch long before it shows up as a failing assertion.

Acceptance criteria

  • One copy of every stack package in the graph; a check asserts the lockfile has no second version of the core package
  • Every peer dependency satisfied with no unmet-peer warning from the stack
  • Run-event logging moved onto whatever the current release provides, with durability behaviour unchanged from the user's point of view
  • Code-mode tool construction typechecks without loosening our own tool contract — a synchronous handler is awaited at our boundary, not passed through
  • The subscribe and event-emission call sites match the new signatures, with the existing streaming behaviour preserved
  • The local-process patch still applies and is verified present in the installed build, not merely referenced
  • typecheck, build, lint and format:check all green; the full test suite run and its results reported
  • The release-age exclusions carry a dated reason and a removal note

Blocked by

  • None — can start immediately.

Activity

  1. added
    ready-for-agent
    on Aug 4, 2026
  2. omridevk commented on Aug 4, 2026

    @omridevk
    ContributorAuthor

    Library references — read the resolved source under node_modules/.pnpm/, not the docs alone. Earlier drafts of the design took doc statements at face value and were wrong three times; every claim that depends on library behaviour now carries a version and a path. The canonical table is in the spec under "Libraries: the exact versions, and where to read them". Versions assume the 0.43-line upgrade in #239.

    For this ticket: @tanstack/ai@0.43.0 dist/esm/types.d.ts for the widened handler signature and the narrowed event union, @tanstack/ai-sandbox@0.3.0 for what replaced the removed run-event-log exports, @tanstack/ai-persistence@0.1.0 for the store shape the harness docs describe, and tanstack.com/ai/latest/docs/sandbox/harnesses plus /sandbox/journal for the durability opt-in this restructure is part of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions