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
- AI SDK harness 1.0.193 official release and implementation commits ↗github.com
- Slow-frame heartbeat fix and tests ↗github.com
- Host-tool error semantics and tests ↗github.com
- Claude Code bridge recovery implementation and tests ↗github.com
Revisions & corrections (1)
— Evidence-complete primary-source event with original bilingual summary and explicit limitations.