8 months ago
c14b375Defer the strict-mode SLO throw until after run_meta.json and artifacts_index.json are written so downstream readers (readRunSummary, portal) see the failure. Record the error in both strict_slo_failure.txt and the run_meta error field. Guard all controller.enqueue() calls in the SSE runs stream against the closed flag and wrap in try/catch to prevent unhandled rejections when the client disconnects during an async snapshot fetch. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Parent9c1ff3b