laravel/telescope

Telescope breaks SSE stream

オープン

#1,717 opened on 2026/02/10

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)PHP (654 件のフォーク)user submission
help wanted

Repository metrics

Stars
 (5,187 個のスター)
PR merge metrics
 (平均マージ 7h 14m) (30d で 6 merged PRs)

説明

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.

コントリビューターガイド