fix(daemon): register autospawned agent in store for task routing #253

Merged
clawdie merged 1 commit from fix/autospawn-agent-registration into main 2026-06-28 01:07:09 +02:00
Owner

After autospawn spawns zot, the agent was never registered in the
local SQLite store. The scheduler only routes tasks to registered
agents — so every task stayed stuck in 'queued' forever.

This commit adds a store.register_agent() call right after the spawn
succeeds, before the bootstrap RPC prompt. The agent is registered
with [shell, freebsd, code] capabilities and the current hostname.

Uses try_lock() to avoid blocking the daemon on store contention.

After autospawn spawns zot, the agent was never registered in the local SQLite store. The scheduler only routes tasks to registered agents — so every task stayed stuck in 'queued' forever. This commit adds a store.register_agent() call right after the spawn succeeds, before the bootstrap RPC prompt. The agent is registered with [shell, freebsd, code] capabilities and the current hostname. Uses try_lock() to avoid blocking the daemon on store contention.
clawdie added 1 commit 2026-06-28 01:06:37 +02:00
fix(daemon): register autospawned agent in store for task routing
Some checks are pending
CI / rust (pull_request) Waiting to run
CI / markdown (pull_request) Waiting to run
CI / port (pull_request) Waiting to run
CI / agent-jail-pkgs (pull_request) Waiting to run
4f3f9f1a4a
After autospawn spawns zot, the agent was never registered in the
local SQLite store. The scheduler only routes tasks to registered
agents — so every task stayed stuck in 'queued' forever.

This commit adds a store.register_agent() call right after the spawn
succeeds, before the bootstrap RPC prompt. The agent is registered
with [shell, freebsd, code] capabilities and the current hostname.

Uses try_lock() to avoid blocking the daemon on store contention.
clawdie merged commit 56af070b6e into main 2026-06-28 01:07:09 +02:00
clawdie deleted branch fix/autospawn-agent-registration 2026-06-28 01:07:15 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: clawdie/colibri#253
No description provided.