[Bug] /goal keeps hitting every 2-3 seconds #1598
Replies: 3 comments 1 reply
|
Investigating, thanks for the report. |
|
Confirmed: Prime Agent 0.7.4 has a goal continuation bug. The reported 2–3 seconds are model latency, not a polling interval. Root cause in Prime Agent 0.7.4The agent loop calls The 0.7.4 goal check does not treat live RLM descendants as active work. A parent can correctly start a child and end its turn to wait. Prime then starts another full-context model turn at once. That turn often reports that it is still waiting, ends, and starts the cycle again. This also explains why the loop appeared after each Python call. The hook does not run after the cell itself. It runs after the model receives the cell result and ends its next response. #1610 fixes this exact case and is now merged. It defers goal continuation while any RLM descendant remains unsettled. It admits one continuation after the last descendant settles. The latest release is still 0.7.4, so the fix is not in the installed release yet. Comparison with other installed clientsI traced the installed builds and matching source for each client.
Claude uses a small evaluator instead of trusting a completion marker. It also knows when background tasks still run. Its default deferred check-in is 30 minutes. AGY uses a deterministic sentinel contract and a five-point completion audit. Its state has Codex has the most detailed durable lifecycle. Its states include One AGY detail explains a help mismatch. The main design difference for this bug is background-work gating. Claude already defers while background tasks run. Prime 0.7.4 continued as soon as the parent became idle, even when its children were still working. PR #1610 adds that missing gate. |
|
@snimu looks like you already handled it, this can be closed. |
Uh oh!
There was an error while loading. Please reload this page.
Affected area
Coding agent and CLI
What happened?
Output:
Steps to reproduce
prime-agentExpected behavior
It shouldn't hit every 3 seconds, it's really expensive like that and the agent just got the message already anyway.
It looks like it's not really a timing thing, it's more like it's spamming /goal between every python command.
Prime Agent version
0.7.4
Environment
macOS Tahoe 26.6
Additional context
No response
All reactions