Skip to content

fix(agent-loop): prevent watchdog timeout during long async operations - #47

Merged
donfaquir merged 1 commit into
mainfrom
fix/20260709-heartbeat-bug-1
Jul 9, 2026
Merged

fix(agent-loop): prevent watchdog timeout during long async operations#47
donfaquir merged 1 commit into
mainfrom
fix/20260709-heartbeat-bug-1

Conversation

@donfaquir

Copy link
Copy Markdown
Owner

Root cause: tool result LLM summarization (~32s) and goal extraction (~33s) ran without emitting heartbeat events, exceeding the 30s frontend watchdog.

  • Add background heartbeat task (10s interval) for the entire agent loop lifetime, with Drop guard for automatic cleanup
  • Increase frontend watchdog timeout from 30s to 60s as safety margin

摘要

变更类型

  • 缺陷修复
  • 新功能或行为变更
  • 文档或元数据(LICENSE、CI 等)
  • 重构或性能(无行为变化)
  • 其他:

检查清单

  • 本地已运行 npm run build(若改动前端)
  • 本地已运行 cd src-tauri && cargo test(若改动 Rust)
  • 不包含无权再许可的第三方素材或机密信息
  • 已阅读并遵守 CONTRIBUTING.mdCODE_OF_CONDUCT.md

备注

Root cause: tool result LLM summarization (~32s) and goal extraction
(~33s) ran without emitting heartbeat events, exceeding the 30s
frontend watchdog.

- Add background heartbeat task (10s interval) for the entire agent
  loop lifetime, with Drop guard for automatic cleanup
- Increase frontend watchdog timeout from 30s to 60s as safety margin
@donfaquir
donfaquir merged commit 6f4f669 into main Jul 9, 2026
2 checks passed
@donfaquir
donfaquir deleted the fix/20260709-heartbeat-bug-1 branch July 9, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant