Repository navigation
cherry-pick #81219 onto release/2026.5.12 for beta.5 - #81327
Conversation
…ed" affordance (#81219) Two related improvements to the interactive `openclaw migrate <provider>` flow, both surfaced by the onboarding post-install migration prompt that landed in #81192. 1. `suppressPlanLog?: boolean` on `MigrateCommonOptions` (`src/commands/migrate/types.ts`). When set, `migratePlanCommand` skips the up-front `runtime.log(formatMigrationPlan(plan))` dump. The interactive Codex selection picker and the "Apply this migration now?" confirm still run. Wired from the wizard helper at `src/wizard/setup.post-install-migration.ts` so that path no longer shows the plan dump after the user has already confirmed at the wizard prompt. 2. New "Accept recommended" sentinel row at the top of both Codex selection pickers, with "Toggle all on" and "Toggle all off" moved to the bottom. The cursor starts on "Accept recommended" so pressing Enter at the default position submits the picker's `initialValues` (the recommended set) — matching the visual state of the checkboxes. Implemented in `skill-selection-prompt.ts`: - Enter on the Accept sentinel sets `prompt.value` to `opts.initialValues` and lets clack submit. - Space on the Accept sentinel snaps `prompt.value` to `opts.initialValues` so the visible checkboxes flip to the recommended state. The user can then Enter to commit or continue toggling individual rows. The Accept row itself is never persisted in the submitted value list. The existing Enter handler for "Toggle all on" / "Toggle all off" stays unchanged. 3. Removed the "Skip for now" sentinel entirely. It was a single- keystroke trap: with the picker cursor wrapping from Accept to Skip via up-arrow (or via accidental down-arrows), Enter on Skip wiped `prompt.value` to `[MIGRATION_SELECTION_SKIP]` and abandoned the whole migration — including any items the user had already confirmed in the previous picker. To exit without migrating, users now navigate to "Toggle all off" (or use the `a` / `i` keyboard shortcuts) to clear the selection; the apply phase then sees no planned work and skips itself via the existing `shouldSkipCodexApplyAfterInteractiveSelection` path. Cleanup spans `migrate/selection.ts` (constants, `{ action: "skip" }` variant, and the reconcile/resolve SKIP branches), `migrate.ts` (the picker option rows and the `if (selection.action === "skip")` handler blocks in both pickers), and the corresponding tests. 4. Plugin selection hint relabelled from "Activate every recommended plugin" to "Migrate every recommended plugin" so it matches the skill hint and the prompt's own verb ("Migrate ... into this agent now?"). Tests: - `src/commands/migrate/skill-selection-prompt.test.ts` — Accept sentinel cases (Enter and Space + Enter both submit initialValues); Skip-related test removed; Skip row dropped from the picker fixture. - `src/commands/migrate/selection.test.ts` — Skip-related sub- assertions trimmed from the resolve/reconcile tests; the "skip + toggle-off precedence" test renamed to "toggle-off precedence over toggle-on" and Skip cases removed. - `src/commands/migrate.test.ts` — four Skip-driven scenarios removed (plugin-only skip, both-pickers skip, skip-skills-continue-to-plugins, Codex subscription warning + skip). - `src/wizard/setup.post-install-migration.test.ts` — call-args assertion expects the new `suppressPlanLog` option. Verification: - `pnpm lint` clean - `pnpm tsgo:core` + `pnpm tsgo:core:test` clean - Touched test suites green (migrate 32/32, selection 17/17, skill-selection-prompt 6/6, setup.post-install-migration 10/10). (cherry picked from commit a197e31)
|
Codex review: needs maintainer review before merge. Summary Reproducibility: not applicable. this is a release-branch cherry-pick PR, not a bug report. The upstream PR includes real onboard-flow proof for the same production behavior, and current Real behavior proof Next step before merge Security Review detailsBest possible solution: Have the release maintainer either accept the release-only test conflict and land the cherry-pick with the normal beta validation, or cherry-pick/update the matching test helper and tests before beta.5 if green release-branch Vitest is required. Do we have a high-confidence way to reproduce the issue? Not applicable; this is a release-branch cherry-pick PR, not a bug report. The upstream PR includes real onboard-flow proof for the same production behavior, and current Is this the best way to solve the issue? Yes for the production behavior: the narrow backport matches the already-merged migrate UX change. The release-only test mismatch is a maintainer release decision, not something ClawSweeper should auto-close or auto-repair from this review. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 34ce85a83d89. Re-review progress:
|
Summary
Cherry-pick of #81219 (
a197e31abb) ontorelease/2026.5.12to feed the next pre-release (v2026.5.12-beta.5).Original commit covers two related improvements to the interactive
openclaw migrate <provider>flow:suppressPlanLog?: booleanonMigrateCommonOptionsso the post-install wizard helper can skip the up-front plan dump it already showed at the wizard prompt.Skip for nowsentinel removed (it was a single-keystroke trap that abandoned the whole migration). "Migrate every recommended plugin" relabel for picker hint parity.See #81219 for the full rationale.
Conflict resolution
The upstream patch conflicted only in
src/commands/migrate.test.ts. The conflict and the cleanly-applied test changes both depend on amultiselectPrompt()test helper that does not exist onrelease/2026.5.12(introduced after the release cut).Resolution per maintainer guidance ("tests don't matter for the release"):
src/commands/migrate.test.tssrc/commands/migrate/selection.test.tssrc/commands/migrate/skill-selection-prompt.test.tssrc/wizard/setup.post-install-migration.test.tsMIGRATION_SELECTION_SKIPandMIGRATION_SKILL_SELECTION_SKIPexports tosrc/commands/migrate/selection.tsso the reverted tests still typecheck. Production code does not reference them (the picker option rows now use…_ACCEPT).Known consequence: the SKIP-driven test cases inherited from the release branch will compile but will fail at runtime if executed, because production code no longer drives that path. Acceptable for this release per maintainer call; the test-file changes from #81219 will land naturally when
release/2026.5.12next merges withmain.Production files in this PR match the upstream patch exactly:
Verification
Local, scoped to the touched surface (broad release-path proof belongs to
Full Release Validationperdocs/reference/RELEASING.md):pnpm tsgo:core— passpnpm tsgo:core:test— passnode scripts/run-oxlint.mjs <5 touched files>— 0 warnings, 0 errorspnpm format:check <5 touched files>— cleanNot run locally (deliberate):
SKIPwill not pass; see Conflict resolution above.pnpm check:changedand broader gates — for the maintainer /Full Release Validationumbrella.Test plan
release/2026.5.12RELEASE_TAG=v2026.5.12-beta.5 pnpm release:fast-pretag-checkv2026.5.12-beta.5and runOpenClaw NPM Release(preflight_only=true)Full Release Validation(--ref main -f ref=release/2026.5.12 -f release_profile=stable)OpenClaw Release Publish(--ref release/2026.5.12 -f tag=v2026.5.12-beta.5 -f npm_dist_tag=beta)pnpm release:verify-beta -- 2026.5.12-beta.5 …