laravel/telescope

Telescope breaks SSE stream

开放

#1,717 创建于 2026年2月10日

 (3 条评论) (0 个反应) (0 位负责人)PHP (654 个派生)user submission
help wanted

仓库指标

星标
 (5,187 个星标)
PR 合并指标
 (平均合并 7小时 14分钟) (30 天内合并 6 个 PR)

描述

Telescope's ClientRequestWatcher calls $response->body() on every HTTP response, which fully consumes non-seekable SSE stream bodies before Prism can read them.

This breaks the stream capability.

My current workaround to overcome this, add this before you instantiate the Agent:

if (class_exists(Telescope::class)) {
    Telescope::stopRecording();
}

Note: of course this will disable all telescope logging and monitoring for the agent requests.

贡献者指南