TanStackOSS
    ai
    example(ts-react-chat): durable tool-approval interrupt in persistent chat Adds a `sendEmail` tool with `needsApproval: true` (shared isomorphic definition in lib/persistent-chat-tools so the server implements it and the client binds the approval). The run pauses on an interrupt; the pane renders an approve/reject box; the server forwards `resume`/`parentRunId` into the detached chat() so the paused call continues on approval. withPersistence persists the interrupt, so it is durable: verified in a browser that a reload mid-approval restores the pending decision, approving then resumes (tool runs, model finishes), and a later reload reconstructs the full tool-call + result + reply.
    nx run-many --targets=build --exclude=examples/**,testing/**
Succeeded
CI Pipeline Execution
Linux
4 CPU cores
read-write access token used
506e1ff9984
98%

Cache hits

53 of 54 tasks used cache.

Get faster results

Learn how to enable distribution.

Atomizer enabled

53 groups of tasks optimized.

© 2026 - Nx Cloud

Terms of ServicePrivacy PolicyChangelogStatusDocsContact Nx CloudPricingCompany@NxDevTools