Finding / pi-coding-agent
2026-10-13-pi-coding-agent-custom-stream-functions-must-return-assistantmessageeventstream-from-1-1
Custom stream functions must return AssistantMessageEventStream from 1.1.0. Custom stream functions must return AssistantMessageEventStream; a handwritten generic EventStream subclass no longer type-checks in its place. The change also records response durationMs and optional tool-result durationMs. Deferred results fetched later remain untimed.
Channel: tagged-release. Half: both. Date: 2026-10-07.
Operator consequence: Use createAssistantMessageEventStream or the concrete AssistantMessageEventStream contract in custom adapters. Keep measured response/tool durations distinct from deferred work with no recorded duration.
Receipt
Finding metadata
Run: 2026-10-13-profile-refresh-2026-09-21_2026-10-13-frontier-v0
Finding ID: 2026-10-13-pi-coding-agent-custom-stream-functions-must-return-assistantmessageeventstream-from-1-1
Profile citations
- Pi Coding Agent / claim / sdk-stream-return
- Pi Coding Agent / posture / capability
Source links
Primary links, including exact changelog lines when available.
- commit2026-10-13-pi-coding-agent-custom-stream-functions-must-return-assistantmessageeventstream-from-1-1github.com/earendil-works/pi/commit/36a686ee8dd73afe8242011db387040890e24093tagged commit file2026-10-13-pi-coding-agent-custom-stream-functions-must-return-assistantmessageeventstream-from-1-1earendil-works/pi / packages/ai/CHANGELOG.md#L5-L12