Stop button often doesn't stop the LLM: tokens keep generating unless the app hangs up

No-Peanut-6988 · reddit · 2026-10-20

Sorami measured what happens when a user presses stop in an AI app: the model only stops immediately if the app actually hangs up the connection. If it merely hides the output while staying connected, the LLM keeps writing in the background, burning GPU time nobody sees.

Findings from their lab setup:

The fix is simple: make sure your stop button and retry logic close the connection, not just hide output. Scope: self-hosted engines (vLLM, SGLang) plus two AI gateways; OpenAI's hosted service was not tested.

Original post →

More from coding & agent

coding & agent channel →