perf(cli): speed up onboarding help startup#84488
Conversation
|
Codex review: needs maintainer review before merge. Workflow note: Future ClawSweeper reviews update this same comment in place. How this review workflow works
Summary Reproducibility: no. high-confidence runtime reproduction was established in this read-only pass. Source inspection shows current main eagerly imports setup/onboard/configure action/runtime modules during command registration, and the PR body provides benchmark and help-diff commands. PR rating Rank-up moves:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. Real behavior proof Risk before merge
Maintainer options:
Next step before merge Security Review detailsBest possible solution: Land the scoped fast path after maintainer or CI validation confirms setup/onboard/configure help-output parity, focused tests, and benchmark results on the merge candidate. Do we have a high-confidence way to reproduce the issue? No high-confidence runtime reproduction was established in this read-only pass. Source inspection shows current main eagerly imports setup/onboard/configure action/runtime modules during command registration, and the PR body provides benchmark and help-diff commands. Is this the best way to solve the issue? Yes, based on source review. The patch keeps existing command registration and shared help formatting as the source of truth, while moving only action/runtime imports behind execution and adding a narrow run-main help path. Label justifications:
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 258524973798. |
|
ClawSweeper PR egg ✨ Hatched: 🥚 common Pearl Patch Peep Hatch commandComment Hatchability rules:
Rarity: 🥚 common. What is this egg doing here?
|
b396753 to
ca3d6cf
Compare
225c092 to
b3b086e
Compare
|
Merged via squash.
Thanks @frankekn! |
Summary
onboard --helpVerification
pnpm buildpnpm test src/cli/help-cold-imports.test.ts src/cli/run-main.exit.test.ts src/cli/run-main.test.ts -- --reporter=defaultpnpm test src/commands/configure.commands.test.ts src/commands/onboard*.test.ts src/commands/setup*.test.ts -- --reporter=defaultpnpm tsgopnpm check:changedOPENCLAW_DISABLE_CLI_STARTUP_HELP_FAST_PATH=1: no diff for setup/configure/onboardBenchmark
Command:
pnpm test:startup:bench -- --case configureHelp --case onboardHelp --case setupHelp --runs 3 --warmup 1 --json --output .artifacts/perf-onboarding-help-after.jsonBefore artifact:
.artifacts/perf-onboarding-help-check.jsonAfter artifact:
.artifacts/perf-onboarding-help-after.jsonconfigure --helpsetup --helponboard --helpControl baseline from
.artifacts/perf-onboarding-help-control.json:--help: avg 24.0ms, RSS avg 46.6MBbrowser --help: avg 23.9ms, RSS avg 46.5MB