Skip to content

embedded_run completes with empty final payload → reply silently dropped (lane goes dark, no auto-heal) #100162

Description

@rich533

Summary

An agent turn (embedded_run) can reach a "completed" state where the final assistant payload is empty. When that happens the reply is never delivered to the channel and no error surfaces — the lane just goes silent. This is distinct from a frozen run: the native stuck-session auto-heal (diagnostics.stuckSessionAbortMs) only aborts runs that hang, not a run that completes-empty, because from the runtime's view the turn finished normally.

Impact

  • On an unattended/overnight autonomous run, a single empty-completion stalls the whole run with no signal — effectively dead until a human notices hours later.
  • No log-level error, no retry, no delivery. Silent failure is the worst mode for long autonomous work.

Expected

Either (a) an empty final payload is treated as a failed turn and retried / surfaced as an error, or (b) the runtime emits a delivery-failed / empty-completion signal the supervisor layer can react to.

Actual

Turn is marked complete, empty payload is dropped, channel gets nothing, no error.

Environment

  • openclaw gateway, Discord lanes, Claude Code (claude-cli) backend, model claude-opus-4-8.
  • Linux WSL2 (6.18.x), node v22.

Local mitigation (not a fix)

Dead-man watchdog on a 5-min cron: checks an active-run flag + rolling-log staleness >15 min and sends one nudge (15-min cooldown). Catches the symptom; the empty-completion path itself is still upstream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions