Skip to content

fix(harness): upgrade Agent SDK 0.1→0.2, add FakeHarness#50

Merged
terraboops merged 1 commit into
mainfrom
fix/sdk-upgrade-fake-harness
Mar 30, 2026
Merged

fix(harness): upgrade Agent SDK 0.1→0.2, add FakeHarness#50
terraboops merged 1 commit into
mainfrom
fix/sdk-upgrade-fake-harness

Conversation

@terraboops

Copy link
Copy Markdown
Owner

Summary

  • Upgrade @anthropic-ai/claude-agent-sdk from 0.1.55 to 0.2.87 — fixes chat hang caused by SDK/CLI protocol mismatch with newer Claude Code native binary
  • Add stderr capture to SDK subprocess so nono/claude errors are visible in debug mode (AUTONAV_DEBUG=1) instead of silently discarded
  • Add FakeHarness — deterministic test double implementing the Harness interface with scripted AgentEvent sequences, enabling E2E testing without subprocess spawning or API calls
  • Fix tool() handler signature for new SDK's CallToolResult type

Test plan

  • 15 new FakeHarness tests (single-turn, multi-turn, error, instrumentation, helpers integration)
  • Full test suite passes (121 tests, 0 regressions from SDK upgrade)
  • Build succeeds with no type errors
  • CI passes on ubuntu + macOS matrix

- Upgrade @anthropic-ai/claude-agent-sdk from 0.1.55 to 0.2.87
  (fixes chat hang caused by SDK/CLI protocol mismatch)
- Add stderr capture to SDK subprocess so errors are visible in
  debug mode instead of silently discarded
- Add FakeHarness — deterministic test double that yields scripted
  AgentEvent sequences without subprocess/API calls (15 tests)
- Fix tool() handler signature for new SDK's CallToolResult type
@terraboops terraboops merged commit ba1d975 into main Mar 30, 2026
5 checks passed
@terraboops terraboops deleted the fix/sdk-upgrade-fake-harness branch March 30, 2026 05:15
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