-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Codex command executions lose streamed output when aggregatedOutput is empty #83199
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
OpenClaw's Codex app-server event projector currently uses
commandExecution.aggregatedOutputas the only output source for final command tool results. Some Codex command runs emit stdout throughitem/commandExecution/outputDelta, but the finalcommandExecutionsnapshot can still haveaggregatedOutput: nullor an empty value.When that happens, OpenClaw records a completed
bashtool result with no output. In the UI this can look like the run is stuck atTool: bashor like it completed successfully withNo output, even though stdout was streamed earlier.Reproduction shape
item/commandExecution/outputDelta.commandExecutionitem arrive withaggregatedOutput: null.Actual behavior
The final command tool result/transcript output is empty because OpenClaw only reads
aggregatedOutputforcommandExecutionitems.Expected behavior
OpenClaw should preserve streamed
outputDeltatext and use it as a fallback final output whenaggregatedOutputis missing or empty.Impact
The user and subsequent agent context can lose the actual command output. This makes successful commands look empty and can make the UI appear stuck around
Tool: bash, especially for commands whose useful result is printed to stdout.Version check
I checked the current published stable package, the current npm beta, and upstream
main; the issue still appears to be present in all of them.Related work
#70966 improved verbose Codex tool logs, but it does not cover the final transcript/result fallback when
aggregatedOutputis empty.