kimi-code/.changeset/agent-runtime-phase.md
haozhe.yang 19f90dff27 feat(agent-core): track agent live phase in a single runtime model field
- add an Agent-scope runtime domain that holds the whole live phase as one discriminated-union field (idle, running, streaming, tool_call, retrying, awaiting_approval, interrupted, ended)
- drive it from existing turn, step, delta, tool, retry, interrupt and approval events, edge-triggered with reference-equality dedup so delta bursts do not flood the wire log
- carry the phase on the existing agent.status.updated channel and add the AgentPhase type/schema to the protocol (backward compatible)
2026-07-08 15:02:47 +08:00

320 B

@moonshot-ai/agent-core-v2 @moonshot-ai/protocol
minor minor

Track the agent's live phase (idle, running, streaming, tool call, retrying, awaiting approval, interrupted, ended) as a single model field driven by the existing turn events, and carry it on the status update channel for downstream consumers.