Repository navigation
fix(gateway): stabilize lifecycle lazy build entries - #74075
openclaw-clownfish[bot] wants to merge 1 commit into
Conversation
Co-authored-by: pashpashpash <[email protected]>
Greptile SummaryThis PR extracts 10 gateway lifecycle lazy-loader module paths into a dedicated Confidence Score: 5/5This PR is safe to merge — the change is focused, all 10 lifecycle lazy imports from run-loop.ts are correctly accounted for, and the config/config deduplication is handled cleanly. All dynamic imports in run-loop.ts are exactly matched by the new helper. The config/config entry is safely moved from buildDockerE2eHarnessEntries to buildCoreDistEntries without loss (unified dist merges both). No logic changes, no regressions, and a new test explicitly guards the full entry set. No files require special attention. Reviews (1): Last reviewed commit: "fix(gateway): stabilize lifecycle lazy b..." | Re-trigger Greptile |
|
Codex review: needs changes before merge. Keep this PR open. Current main still has the gateway run-loop lifecycle lazy imports, but the stable tsdown entry map has not added the focused lifecycle entry set this PR proposes; only Required change before merge: Keep this PR open and review/land the focused replacement, or an equivalent patch, after validation. The fix should add stable core dist entries for the first-hop lifecycle lazy loaders from Best possible solution: Keep this PR open and review/land the focused replacement, or an equivalent patch, after validation. The fix should add stable core dist entries for the first-hop lifecycle lazy loaders from What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 1825f611f8c5. |
|
/clownfish fix ci |
|
Clownfish picked this up. Command: I will keep the change narrow and update the PR branch if the repair worker finds a safe fix. |
|
Thanks, ClawSweeper. Clownfish picked up the repair feedback. Source: I will update this Clownfish PR branch if the repair worker finds a safe, narrow fix. |
|
Thanks for carrying #73964 forward here. I replaced this with #74105 because we decided to simplify the design instead of keeping a per-module stable-entry list. The replacement moves the gateway lifecycle lazy imports behind one stable runtime boundary ( I preserved the #73964 contributor credit in |
Summary
This replacement carries forward only the gateway lifecycle-loader build fix from source PR #73964. It should add a focused helper in
tsdown.config.tsso lifecycle lazy modules resolve through stabledist/<entry>.jsfiles instead of transient hashed chunks after rebuilds.Credit: thanks @pashpashpash for the original lifecycle stability work in #73964. The private command routing commits from #73964 are intentionally excluded because that work already landed separately in #73872.
Scope
Include the first-hop lazy loaders from
src/cli/gateway-cli/run-loop.tsthat are used during restart/shutdown/lifecycle handling:agents/pi-embedded-runner/runs,config/config,infra/process-respawn,infra/restart,infra/restart-sentinel,infra/supervisor-markers,logging/diagnostic-stability-bundle,plugins/bundled-runtime-deps-activity,process/command-queue, andtasks/runtime-internal. Inspect current main for any additional late lifecycle first-hop dynamic imports and include only those.Keep
run-loop.tsruntime logic unchanged, including bounded restart deferral viaresolveGatewayRestartDeferralTimeoutMs. Do not touch private command routing files, docs, Telegram tests, or other stale-branch files from #73964.Tests
Extend
src/infra/tsdown-config.test.tsso the lifecycle loader list, includingconfig/config, is explicitly covered by the unified dist entry map.Validation:
pnpm test src/infra/tsdown-config.test.ts,pnpm buildif feasible, andpnpm check:changed.Clownfish replacement details:
Carried-forward contributor credit: