Skip to content

fix(exec): preserve background process failures and completion wakes - #120754

Merged
steipete merged 1 commit into
mainfrom
codex/qa-process-terminal-outcome
Aug 8, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-process-terminal-outcome

Conversation

@steipete

@steipete steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where a failed background process could be reported as successful, an unknown exit code could be invented as zero, and an in-flight process poll could overwrite the process owner's authoritative final outcome. Quiet nonzero exits also failed to wake their waiting owner.

Why This Change Was Made

The process lifecycle owner now records its terminal outcome once and all polling and notification projections consume that same authoritative fact. This removes duplicate consumer-side finalization, preserves unknown exit codes and normal nonzero completion semantics, and applies the canonical tool-output secret redactor before exposing finalization diagnostics.

User Impact

Background execution reports truthful failure, timeout, cancellation, and exit information; operator-visible task state remains consistent during races; and genuinely failed quiet processes reliably wake their owners without leaking sensitive diagnostic material.

Evidence

  • Reproduced the original producer-to-poll ordering against real spawned child processes, including failed finalization, ordinary nonzero completion, and zero-code timeout.
  • Eight real-child end-to-end scenarios pass after the repair, including quiet-success and quiet-failure notification behavior and authoritative task finalization.
  • All 125 focused hosted tests pass across six suites, including an explicit synthetic-credential redaction regression.
  • The private QA runtime build and 40 generated-module loading checks pass.
  • The full changed-file validation passes, and fresh structured review plus an independent adversarial source review report no actionable findings.
  • Production grows by eight lines to preserve the authoritative lifecycle and mandatory redaction boundary; no configuration, public protocol, authorization, or persistent-schema changes.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: M maintainer Maintainer-authored PR labels Aug 8, 2026
@steipete
steipete marked this pull request as ready for review August 8, 2026 23:09
@steipete
steipete merged commit 692c945 into main Aug 8, 2026
248 of 250 checks passed
@steipete
steipete deleted the codex/qa-process-terminal-outcome branch August 8, 2026 23:49
@steipete

steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 9, 2026
Punchcard-Session: amber-workshop-workshop-36

* origin/main: (28 commits)
  perf(doctor): keep bundled doctor contract closures dependency-light (#120698)
  fix(elevenlabs): preserve repeated committed speech segments (#120792)
  fix(ai): fence Responses replay metadata (#120777)
  fix(ai): invalidate stale compaction replay (#120786)
  fix(telegram): clean up every failed webhook startup phase (#120788)
  fix(codex): preserve configured MCP tools in scheduled turns (#120366)
  fix(ui): show dev checkout commit lag in Updates (#120769)
  fix(agents): repair XML-polluted tool names (#113814)
  fix(discord): remove only the bot own reactions (#120785)
  fix(macos): complete ChatGPT subscription setup (#120782)
  fix(plugins): surface safe administrator install warnings (#120783)
  fix(release): keep upgrade survivor sessions fresh (#120778)
  fix(providers): preserve realtime tool-result delivery ownership (#120776)
  fix(plugins): retain incognito scope for embedded session ownership (#120215)
  fix(elevenlabs): surface realtime provider error events (#120772)
  fix(agents): preserve exact steering delivery ownership (#120770)
  fix(telegram): prevent session-count routing slowdown (#120774)
  fix(agents): preserve authoritative background process outcomes (#120754)
  test(process): make Linux adapter wiring portable (#120741)
  fix(diagnostics-prometheus): send Content-Length on metrics HEAD responses (#120212)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant