2 Commits

Author SHA1 Message Date
ZQR1101
24e26b1b67 feat(subagent): speak ACP as a client so compliant agents plug in
Adds AcpBackend to the subagent registry: DeepTutor spawns an ACP-speaking
agent and drives initialize -> session/new|session/load -> session/prompt over
newline-delimited JSON-RPC, mapping session/update notifications onto the
existing text / reasoning / tool events. A new ACP-speaking agent then needs a
config line, not a connector.

Frames are pumped in bounded chunks rather than StreamReader.readline(), which
gives up on any line past 64 KiB and would truncate a whole tool result -- the
same limit process.py already works around for the native JSONL backends.
Elicitations are answered with `decline`, because approving a remote agent's
request for input is not this code's call to make.

Rebuilt on current dev; supersedes #1272.
2026-11-09 11:12:57 +08:00
dajiaohuang
41bac2f274 fix(subagent): retain long subprocess output lines 2026-10-08 12:35:37 +08:00