FrameworksOfficial

AI SDK harness 1.0.193 fixes host-tool error semantics and hardens slow-link and Claude Code recovery

AI SDK harness 1.0.193 changes host tool exceptions from successful-looking results to tool-error events with UI error state. Sandbox heartbeat now counts inbound bytes as activity so large events on slow links are not repeatedly disconnected and replayed. After a failed Claude Code attach, the adapter stops the recorded bridge and descendants before respawning on the same port.

Why it matters

If a generative interface renders a failed tool as success, both the user and subsequent agent steps proceed from false state. Slow-link replay loops and duplicate bridges can also make recovery itself cause repeated execution, port conflicts, and opaque state.

A closer look

Host exceptions now emit one tool-error stream part while preserving isError, path redaction, and the UI's tool-output-error lifecycle. Heartbeat checks both completed events and bytesRead, allowing an in-flight large frame to remain alive. Claude Code recovery validates the positive PID, command line, and process start time from bridge-meta.json, sends TERM to the descendant tree, escalates to KILL after five seconds, and only then selects replay or rerun and starts a replacement bridge.

Who this is for

Teams maintaining AI SDK harnesses, Claude Code adapters, long-lived tool streams, error surfaces, or recoverable agent execution.

Original sources

Revisions & corrections (1)

— Evidence-complete primary-source event with original bilingual summary and explicit limitations.

Related events

Frameworks

AI SDK raises the Responses event limit for large generated images, fixing 'images arrived but the request failed'

On November 26, AI SDK added configurable maxEventSize handling and raised the per-event limit used by OpenAI and xAI Responses models from the 64 MiB default to 512 MiB. Because response.completed repeats every output item, several large base64 images could exceed the limit and fail the request after the images had already reached the client.