已合并
fix(acp): propagate prompt errors and transport termination #165
guantw创建于 1 天前
fix(acp): propagate prompt errors and transport termination #165
已合并
Pull Request已成功合入, 合并人@SWangHash
(感谢 guantw 的贡献)1 天前 合入了pull request,合并节点 SHA:7732e7b3a355879cfbf8d11f37c9d7afe432d5e7
Summary
Propagate ACP prompt errors and transport termination to the active turn so a failed request no longer leaves BitFun waiting indefinitely. Preserve partial output, final replies, cancellation, and same-session retries.
Type and Areas
Type: Bug fix and regression coverage.
Areas: ACP client request lifecycle and transport handling.
Motivation / Impact
The ACP SDK queues successful prompt stop reasons but can leave the session update reader waiting when a prompt fails or agent output closes. Track the prompt response independently and process transport termination after queued frames, allowing the existing turn-failure path to report the error.
Verification
Reviewer Notes
The transport-closure marker is injected only into the client incoming queue; it is never sent to the agent. The ACP wire protocol and normal end_turn behavior remain unchanged. No external agent code or configuration is included.
Checklist