Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions home/openclaw/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,27 @@ in
main = {
name = "OpenClaw (laptop node)";
};
# ACP-runtime agent (#2229 mechanism 1): this agent's turns run
# in the OpenCode harness over acpx, so OpenClaw can dispatch
# work to OpenCode as a standing capability, not only from
# chat-channel sessions. OpenCode's own default model is the
# workhorse route (opencode-route/workhorse); a run can set the
# route explicitly. Mode "oneshot" = one fresh ACP session per
# task. Heartbeat cadence off: dispatch is explicit, this agent
# must never wake itself into OpenCode hourly.
opencode-acp = {
name = "OpenCode (ACP harness)";
heartbeat.every = "0m";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve heartbeat enrollment for the main agent

Adding this per-agent heartbeat block also disables the existing hourly heartbeat for main. In the pinned OpenClaw version, resolveHeartbeatAgentIds selects only agents with an explicit heartbeat block whenever any exist; main has none, so only opencode-acp is selected, and its 0m cadence disables execution. This silently stops the monitoring checks in workspace/HEARTBEAT.md despite agents.defaults.heartbeat.every = "1h". Explicitly enroll main as well so disabling the ACP agent does not disable monitoring. See the upstream enrollment logic.

Useful? React with 👍 / 👎.

runtime = {
type = "acp";
acp = {
agent = "opencode";
backend = "acpx";
mode = "oneshot";
cwd = homeDir;
};
};
};
};
};

Expand Down
Loading