fix(chapter-13): time-limit stalled LLM streams

↗ view on GitHub · Amal · 2026-05-24 · 54dcdf77

Chapter: 13 - Bounded external calls.

Plain-English map:
Add a three-minute timeout around LLM server-sent-event streams so a stalled
provider call cannot hold a connection open forever.

Why it matters:
External services can hang. Without a timeout, one stuck call can consume
server resources until something outside the app kills it.

Principle:
Every external dependency call should have a clear time boundary.

Precedent borrowed:
Upstream PR #112.

Upstream base: willchen96/mike@d39f580.
Original local commit: 8992d98.
Repository amal66/mike
Author Amal <mamalanand3@gmail.com>
Authored
Parents 7c1b463b
Stats 1 file changed , +20 , -1
Part of Bounded and resilient LLM provider calls

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-54dcdf77.md from inside the repo you want the change in.

⬇ Download capture-commit-54dcdf77.md