Skip to content

fix: include launcher parent lifetime in reduced runtime packages - #174480

Merged
steipete merged 1 commit into
mainfrom
fix/launcher-parent-lifetime-closures
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/launcher-parent-lifetime-closures

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Related: #174268

What Problem This Solves

Fixes Docker and remote-node launcher packages failing with ERR_MODULE_NOT_FOUND after node-runtime-recovery.mjs gained its cli-parent-lifetime.mjs dependency.

User Impact

Reduced runtime packages include the module required for launcher-bound Doctor cancellation. Existing launcher and detached update lifetimes remain unchanged.

Why This Change Was Made

#174268 intentionally added an explicit parent-lifetime contract for CLI respawns. The root package and trusted wrapper included its module, but the Docker stages, remote-node bootstrap list, and several copied-runtime fixtures did not.

Add the module beside its importer in those existing closure lists. Keep the repair mechanical: no new closure abstraction, lifecycle behavior, dependency, timeout, or weakened assertion. The remote bootstrap test now requires the module in the archive.

Evidence

  • On current main, both Docker launcher closure cases reproduce the missing-module failure.
  • The cleanup-image COPY closure runs the isolated launcher and prints the expected version.
  • Eight focused launcher, lifecycle, bootstrap and enrollment files: 219 passed. Both conditional Bun launcher cases also pass with the repository-pinned macOS Bun, giving 221 distinct passing cases. Two additional bootstrap suites pass 14 cases.
  • Full runtime build, including CLI bootstrap import and postbuild checks, passes. Targeted typecheck, type-aware lint, formatting and whitespace checks pass.
  • Independent P2 review: scoped-clean, no actionable findings.

PR CI provides broad proof. No workflow dispatch or rerun was requested.

Additional Doctor fixture proof found two unresolved failures in doctor-config-preflight.process.test.ts: the v17 repair exits during ai-session-resources cleanup, and the repair/readiness case times out. Seven cases in that file pass. The cleanup owner and AI implementation are unchanged by this patch. Separate direct AI-runtime import probes pass both normally and under the fixture resolution hook; these are not claimed as a fix or a passing replay of the failed cases. Their assertions and deadlines remain intact. All nine additional fixture-consumer suites passed (66 cases).

Exact-head CI run 38939386670 has a separate failure in skill-library-worker-wire.e2e.test.ts: its first local model turn receives an incomplete mock Responses stream before remote worker delivery. The automatic classifier reports unknown because no matching main job is available. The same symptom is under investigation in #174149, including several baseline and isolated reproductions without an accepted inheritance finding. This PR does not claim it inherited or fixed. A new local invocation was stopped during runtime preparation before any tests ran once that existing investigation was located. The Bun launcher check passed. No merge or CI exception has been submitted.

The current job log includes the more specific provider error OpenAI Responses stream ended before a terminal response event, followed by the normal retry policy and a surfaced local-turn error. That is evidence for the shared stream investigation, not proof of a wall-clock timeout or permission to waive CI.

node-runtime-recovery.mjs imports cli-parent-lifetime.mjs after #174268.
Ship that dependency in both Docker launcher stages, cleanup smoke, and
the remote-node bootstrap artifact, and keep copied runtime fixtures in
sync. Require the module in the bootstrap archive regression.

Preserve existing launcher and detached update lifetimes. No new closure
framework, dependency, configuration, or timeout changes.
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review October 16, 2026 17:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T17:26:47.473744Z 888e17e Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime scripts Repository scripts commands Command implementations docker Docker and sandbox tooling size: XS labels Oct 16, 2026
@steipete
steipete merged commit 7c11297 into main Oct 16, 2026
223 of 232 checks passed
@steipete
steipete deleted the fix/launcher-parent-lifetime-closures branch October 16, 2026 17:39
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…enclaw#174480)

node-runtime-recovery.mjs imports cli-parent-lifetime.mjs after openclaw#174268.
Ship that dependency in both Docker launcher stages, cleanup smoke, and
the remote-node bootstrap artifact, and keep copied runtime fixtures in
sync. Require the module in the bootstrap archive regression.

Preserve existing launcher and detached update lifetimes. No new closure
framework, dependency, configuration, or timeout changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations docker Docker and sandbox tooling gateway Gateway runtime scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant