From 94e5d76b5b126cdd45dd661a1c476ef4243dea4c Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Thu, 8 Oct 2026 18:48:58 +0200 Subject: [PATCH] agent: clarify in system-proc-background tag that output requires idle The tag text now explicitly says output is injected when the agent is IDLE (not making tool calls), not just 'when available'. --- cmd/olliesrv/internal/agent/dispatch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/olliesrv/internal/agent/dispatch.go b/cmd/olliesrv/internal/agent/dispatch.go index 6c21c86..f8ea57d 100644 --- a/cmd/olliesrv/internal/agent/dispatch.go +++ b/cmd/olliesrv/internal/agent/dispatch.go @@ -251,7 +251,7 @@ func (ag *Agent) execOne(ctx context.Context, call backend.ToolCall) (toolResult result = fmt.Sprintf("error: background exec: %v", err) isErr = true } else { - result = fmt.Sprintf("\nid=%d cmd=%q\nProcess running in background. Do NOT sleep, poll, or wait. Continue with other work — output will be injected automatically when available.\n", pid, cmdDesc) + result = fmt.Sprintf("\nid=%d cmd=%q\nProcess running in background. Do NOT sleep, poll, or wait. Continue with other work — output will be injected automatically when the agent is IDLE (not making tool calls).\n", pid, cmdDesc) // Notify proc.start via callback if ag.onProcStart != nil { ag.onProcStart(ag.id, pid, call.Name, cmdDesc)