Agent step log arrives only when the stage ends #1850

Closed
opened 2026-11-10 08:06:59 +00:00 by sam · 1 comment
Owner

During an agent.run stage the task Log tab shows nothing, so the operator can't tell whether the agent is working. On task 462 all nine plan iterations were logged within 2 ms at the end of the stage, after 100 s of silence.

LoopRunner (internal/agentexec/modelloop/loop_runner.go) calls agentloop.Run synchronously; per-iteration lines appear only once it returns.

Done when each model iteration and tool call shows in the task log as it happens.

During an `agent.run` stage the task Log tab shows nothing, so the operator can't tell whether the agent is working. On task 462 all nine `plan` iterations were logged within 2 ms at the end of the stage, after 100 s of silence. `LoopRunner` (`internal/agentexec/modelloop/loop_runner.go`) calls `agentloop.Run` synchronously; per-iteration lines appear only once it returns. Done when each model iteration and tool call shows in the task log as it happens.
sam added the bug label 2026-11-12 15:52:53 +00:00
Author
Owner

Fixed in 97fbc35e: LoopRunner now logs every model call and tool call to the task log as it finishes (internal/agentexec/modelloop/progress.go), instead of agentloop's after-the-run step lines being the only trace. task check passed.

Fixed in 97fbc35e: LoopRunner now logs every model call and tool call to the task log as it finishes (internal/agentexec/modelloop/progress.go), instead of agentloop's after-the-run step lines being the only trace. task check passed.
sam closed this issue 2026-11-13 16:55:33 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1850