Skip to content

Migrate the AI assistant to TanStack AI - #2662

Open
Mbeaulne wants to merge 1 commit into
masterfrom
add_tanstack_ai_for_our_agent
Open

Migrate the AI assistant to TanStack AI#2662
Mbeaulne wants to merge 1 commit into
masterfrom
add_tanstack_ai_for_our_agent

Conversation

@Mbeaulne

@Mbeaulne Mbeaulne commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Description

Migrates the active Tangle AI assistant runtime to TanStack AI while preserving the existing chat UI and editor tool bridge.

  • Drives agent turns with TanStack AI's chat() and consumes native AG-UI events through the headless ChatClient.
  • Defines shared editor and run-view tools with toolDefinition(), including client-side execution for browser-owned graph operations.
  • Adds approval interrupts for graph mutations and pipeline submission, with clear approved and rejected states for batched changes.
  • Keeps Run View read-only and bounds the agent loop by model iterations and total tool calls.
  • Preserves interactive task, input, and output links in change summaries so users can focus the corresponding canvas entity.
  • Handles stateless Responses API reasoning state across tool continuations.

The configured provider remains user-controlled; this does not add a hosted gateway, persistence layer, MCP integration, sandbox, or media/realtime surface.

Type of Change

  • Bug fix
  • New feature
  • Improvement
  • Cleanup/Refactor
  • Breaking change
  • Documentation update

Validation

  • pnpm run typecheck
  • pnpm run knip
  • pnpm run lint
  • Targeted Vitest coverage for the TanStack agent, tool definitions, approval UI, and agent thread
  • pnpm run build

Screenshots (if applicable)

Old:
image

NEW:
image
image
image

Test Instructions

  1. Configure an AI provider and model in AI Configuration.
  2. Open a pipeline and ask the assistant to inspect or validate it; read-only tools should run without approval.
  3. Ask the assistant to rename an entity or fix a validation issue.
  4. Confirm each proposed graph mutation requires approval before it changes the pipeline.
  5. Approve one proposed change and reject another; approved actions should appear green and rejected actions red while the batch is pending.
  6. Complete the approval batch and confirm only approved changes are applied.
  7. Confirm the final change summary renders tasks, inputs, and outputs as interactive chips that focus the corresponding canvas entity.
  8. Open Run View and confirm status and debugging requests remain read-only.

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

@github-actions

github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: add_tanstack_ai_for_our_agent/052ee9b

@Mbeaulne Mbeaulne changed the title Adds tanstack AI package as our AI interface Migrate the AI assistant to TanStack AI Aug 24, 2026
@Mbeaulne
Mbeaulne force-pushed the add_tanstack_ai_for_our_agent branch from d07f794 to 052ee9b Compare August 25, 2026 12:17
@Mbeaulne
Mbeaulne marked this pull request as ready for review August 25, 2026 12:20
@Mbeaulne
Mbeaulne requested a review from a team as a code owner August 25, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant