idle timeout for codegen

This commit is contained in:
Denton Social
2026-09-24 04:53:06 -05:00
parent 0a9b602ec7
commit e92b3e7228
5 changed files with 176 additions and 22 deletions
+6
View File
@@ -221,6 +221,12 @@ unit tests (24) + box integration tests (2).
backends) — do not drop one for the other. Echoing is console-only; the
returned content is identical either way. Integration tests already force
streaming; see it with `-s` on the box.
- `codegen.idle_warn` (default 60s) / `codegen.idle_timeout` (default 180s)
surface a silent stream: a wedged generation prints a warning at `idle_warn`
seconds with no tokens, then raises `CodegenError` (→ graceful stub) at
`idle_timeout` — instead of blocking on the 1200s total budget. A streaming
stall with zero output usually means the ollama ROCm runner wedged;
`sudo systemctl restart ollama` is the recovery.
### Code principles
- **No mocking.** The decision engine is always real SemIf; the LLM is always a