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

Source links

Primary links, including exact changelog lines when available.