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'.
This commit is contained in:
parent
35fefefdc7
commit
94e5d76b5b
|
|
@ -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("<system-proc-background>\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</system-proc-background>", pid, cmdDesc)
|
||||
result = fmt.Sprintf("<system-proc-background>\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</system-proc-background>", pid, cmdDesc)
|
||||
// Notify proc.start via callback
|
||||
if ag.onProcStart != nil {
|
||||
ag.onProcStart(ag.id, pid, call.Name, cmdDesc)
|
||||
|
|
|
|||
Loading…
Reference in New Issue