Skip to content

Successful run completions (stopReason=stop) logged at error severity, sometimes twice per run #101678

Description

@tford-ui

OpenClaw 2026.6.11 (e085fa1)

Symptom

A clean, successful run end (stopReason=stop) is logged at error level instead of info/warn. Observed logging twice for the same run (parent run id + its announce-wrapped id).

Evidence

07:42:08 error [agent] run cbd8621d-c870-46e3-9864-ee376a3e671b ended with stopReason=stop
07:42:19 error [agent] run announce:v1:agent:main:subagent:2402c699-...:cbd8621d-... ended with stopReason=stop

Both log lines correspond to the same underlying sub-agent run, which completed successfully (verified deliverable + git commit produced as expected).

Suggested fix

Fix log-level mapping for run completion: benign/expected stop reasons (e.g. stop) should log at info or warn; reserve error severity for actual failure stop-reasons (timeouts, exceptions, aborts, etc.).

Impact

Pollutes error-level log monitoring/alerting with false positives on every normal successful run, and buries genuine failures in the noise. Also appears to double-log the same run completion under two different run-id representations (raw run id and announce:v1:... wrapped id) — worth checking whether that duplication is itself unintended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automation

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions