From e100c52154e01b030ce92b37b543e739fe78fb8a Mon Sep 17 00:00:00 2001 From: Tianyi Cui <53024+tianyicui@users.noreply.github.com> Date: Fri, 3 Jul 2026 00:06:39 +0800 Subject: [PATCH] docs(agent): drop agent/stream-chunk from the two package READMEs Codex convergence caught stale prose the doc-sync gate does not scan: the dsh-agent README still listed `agent/stream-chunk` as an emit and the dsh-agent-loop README still told UI plugins to listen on it. A plugin author following either would silently get no chunks. Point both at the `session/event` `assistant/chunk` feed (the agent-loop UI line also names the `agent/*` control events a UI still uses). --- packages/core/agent-loop/README.md | 2 +- packages/core/agent/README.md | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/agent-loop/README.md b/packages/core/agent-loop/README.md index 1cf6028f98..60b8a5d779 100644 --- a/packages/core/agent-loop/README.md +++ b/packages/core/agent-loop/README.md @@ -88,4 +88,4 @@ Everything that goes beyond "call the model, run the tools, repeat" belongs to p - Sandbox, permission, plan mode: `tools/pre-execute` (deny/ask gate), `tools/post-execute` - Sub-agents: implemented outside the loop as `ctx.subagents` providers; in-process providers use `ctx.agents.create()` and owned `AgentHandle` teardown, while child streaming/progress and background/poll collection remain deferred. - Persistence: `session/event` + `session/flush` -- UI: `agent/stream-chunk` + `agent/*` events +- UI: `session/event` (assistant token stream, boundaries, tool activity) + `agent/*` control events (`agent/status`, `agent/created`/`agent/disposed`) diff --git a/packages/core/agent/README.md b/packages/core/agent/README.md index 105014ca77..1e7dfc2a00 100644 --- a/packages/core/agent/README.md +++ b/packages/core/agent/README.md @@ -52,7 +52,6 @@ Tool interception is the `tools/pre-execute` / `tools/post-execute` pair in [`ds #### Streaming + tool (emit) -- `agent/stream-chunk` — raw chunk from the model (token-level UI/log feed) - `agent/steering` — steering content injected mid-turn - `agent/error` — step/turn error