mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
pi-ai's AssistantMessageEventStream sets AssistantMessage.durationMs with a monotonic clock for every API implementation. The agent loop and the durable tool task set ToolResultMessage.durationMs around execute(). Durable task records carry startedAt/endedAt stamped by the Session. The coding agent's bash renderer shows Took from the recorded duration, also after a reload. closes #10549 |
||
|---|---|---|
| .. | ||
| utils | ||
| agent-loop.test.ts | ||
| agent.test.ts | ||
| e2e.test.ts | ||
| proxy.test.ts | ||