mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-07 03:00:29 +00:00
Fix stall watchdog killing agent during long LLM reasoning turns
Move emitter.touch() before the event filter in spawn_event_forwarder so streaming events (TextDelta, AssistantTextStart, etc.) also reset the watchdog timer. Previously these were filtered out, causing the 600s stall watchdog to fire during long generation turns with no tool calls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8d4fcba6e4
commit
02a10b2f8d
1 changed files with 3 additions and 0 deletions
|
|
@ -43,6 +43,9 @@ fn spawn_event_forwarder(
|
|||
let mut rx = session.subscribe();
|
||||
tokio::spawn(async move {
|
||||
while let Ok(event) = rx.recv().await {
|
||||
// Reset watchdog on every event, including streaming deltas
|
||||
emitter.touch();
|
||||
|
||||
// Track file changes from tool calls
|
||||
match &event.event {
|
||||
AgentEvent::ToolCallStarted {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue