Repository navigation
fix(agents): preserve timeout and termination details in process logs - #129273
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 25, 2026 11:26
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes an issue where agents inspecting a finished background command with
process(action="log")lost its timeout or termination reason, received no warning before retrying a potentially non-idempotent command, and could not produce the structured process-failure diagnostic that the equivalentpollaction already supplied.Why This Change Was Made
Both finished-process observation actions now derive their terminal status, exit reason, timeout facts, signal, and command identity from the same lifecycle-owned projection. Finished logs reuse the existing timeout retry guidance without consuming unread output, acknowledging completion notifications, or changing log pagination; an obsolete no-op guidance call on running polls is removed.
User Impact
Agents can distinguish overall timeouts, no-output timeouts, cancellations, successful exits, and ordinary nonzero exits when reading finished process logs. Timeout logs explicitly warn that external side effects may already have happened, and a subsequent poll still receives the complete unread output and owns completion acknowledgment.
Evidence
completedstatus, successful exit, manual cancellation, preserved unread output, and deferred completion acknowledgment.dd89e7519a4f77fa3107b086650359c60c7b4f02.