fix(engine): wire TaskStore into runtime AgentStore so heartbeat auto-claim works

The InProcessRuntime constructed its AgentStore with only `rootDir`, leaving
task-claim/checkout/release operations unconfigured. As a result, the
heartbeat auto-claim scan logged "TaskStore not configured for task-claim
operations" whenever a relevant todo was found. Pass the runtime's TaskStore
through to the AgentStore so claimTaskForAgent succeeds.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-05-06 08:01:03 -07:00
parent 1231db4a1d
commit 7ced77d412
3 changed files with 36 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
---
"@runfusion/fusion": patch
---
Wire `TaskStore` into the runtime's `AgentStore` so the heartbeat auto-claim
path can call `claimTaskForAgent` without warning
`TaskStore not configured for task-claim operations`. The `InProcessRuntime`
previously built its `AgentStore` with only `rootDir`, which left task-claim,
checkout, and release operations unconfigured even though the runtime had a
`TaskStore` available.