core/agent: fix Phase A streaming await bug and polish

Do not await async generators for raw SSE; close stream on cancel;
merge tool calls without relying only on finish_reason; quieter tool
output; /status slash command.
This commit is contained in:
2026-07-14 22:22:14 +08:00
parent 1b582e82d3
commit e063efda20
12 changed files with 118 additions and 83 deletions
+2 -1
View File
@@ -30,10 +30,11 @@ class ChatAgent:
max_rounds: int
temperature: float | None
on_limit: LimitContinueHook | None
stream: bool
messages: list[AnyChatMessage]
pending_retry_text: str | None
def __init__( # noqa: PLR0913
def __init__(
self,
client: ChatClient,
*,