Skip to content

Commit 306d0b1

Browse files
committed
docs(events): note that chat-reply is plan-mode only now
The chat-intercept that originally created this action is gone; plan-mode still uses it to render synthetic Q&A and the proposed plan into the transcript without involving pi-agent-core. Leaving the action name alone — renaming would touch the reducer plus every dispatcher — but documenting the actual purpose so the next reader isn't misled.
1 parent 4494d9f commit 306d0b1

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/agent/events.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ export function reducer(state: ChatState, action: Action): ChatState {
4040
}
4141

4242
case "chat-reply": {
43-
// Glue replied to a small-talk turn; we render it as a synthetic
44-
// assistant message but never feed it to pi-agent-core, so the
45-
// agent's actual context stays clean of meta-banter.
43+
// Synthetic assistant turn rendered into the transcript without
44+
// going through pi-agent-core — used by plan-mode for the Q&A
45+
// and the proposed-plan display. The chat-intercept that
46+
// originally drove this action is gone; the name stuck because
47+
// renaming would churn the reducer + every dispatcher.
4648
const message: AgentMessage = {
4749
role: "assistant",
4850
content: [{ type: "text", text: action.text }],

0 commit comments

Comments
 (0)