fix: replace @agentclientprotocol/sdk with readline-based JSON-RPC

The official TS SDK's ndJsonStream hangs indefinitely on prompt()
for sessions with 20+ messages (solve-issue planner). Root cause
appears to be a stream backpressure issue in the SDK's ReadableStream
adapter.

Switch back to readline-based line parsing which reliably receives
all JSON-RPC responses. Also handle session/request_permission
inline (auto-approve, yolo mode equivalent).

Ref #398
This commit is contained in:
2026-05-22 14:34:27 +00:00
parent e329d74ec0
commit 844f5438fe
2 changed files with 267 additions and 144 deletions
@@ -21,7 +21,6 @@
"test": "bun test"
},
"dependencies": {
"@agentclientprotocol/sdk": "^0.22.1",
"@uncaged/json-cas": "^0.4.0",
"@uncaged/workflow-agent-kit": "workspace:^"
},