fix(engine): a stalled database can no longer hang a turn on 'Thinking' (develop) #95

Merged
james.maes merged 1 commits from fix/turn-watchdog-never-hangs-develop into develop 2026-11-09 16:07:07 +00:00
Owner

Same change as PR 94 on release/0.1 (TurnEngine.java is identical on both branches). Generated with Claude Code

Same change as PR 94 on release/0.1 (TurnEngine.java is identical on both branches). Generated with Claude Code
james.maes added 1 commit 2026-11-09 15:55:03 +00:00
fix(engine): a stalled database can no longer hang a turn on 'Thinking'
maven / build (push) Successful in 5m23s
build / maven (push) Successful in 5m23s
0c32c43f8c
The watchdog ran the deadline logic after two database reads and heartbeat() was synchronized on the monitor that finish() needs, so one blocked database call stopped the deadline, the force-finalize and the final message.end. The deadline now runs first with no database access, housekeeping runs on a bounded abandonable worker, finish() has a guard that ends the stream with an error event, and every phase logs at INFO.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
james.maes merged commit f8e3122672 into develop 2026-11-09 16:07:07 +00:00
Sign in to join this conversation.