Skip to content

feat(migrate): suppress plan log on embedding, add "Accept recommended" affordance, remove "Skip for now" - #81219

Merged
sjf merged 1 commit into
mainfrom
feat/migrate-suppress-plan-log
May 13, 2026
Merged

sjf merged 1 commit into
mainfrom
feat/migrate-suppress-plan-log

Conversation

@sjf

@sjf sjf commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Screen.Recording.2026-05-12.at.18.59.24.mov

Improvements to the interactive openclaw migrate <provider> flow, surfaced by the onboarding post-install migration prompt that landed in #81192.

  1. New suppressPlanLog option on MigrateCommonOptions. Callers that have already secured user consent (notably the onboarding migration prompt) can drive migrate <provider> without the redundant up-front plan dump. The interactive selection picker and the "Apply this migration now?" confirm still run; only the standalone-CLI plan preview is silenced. Wired from src/wizard/setup.post-install-migration.ts so the wizard no longer shows the plan ahead of its own consent gate.

  2. New "Accept recommended" sentinel at the top of the 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. Pressing Space on the Accept row snaps the visible checkboxes back to the recommended set so the user can see exactly what would be submitted; the user can then Enter to commit or continue toggling individual rows.

  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.

  4. Plugin selection hint relabelled from "Activate every recommended plugin" to "Migrate every recommended plugin" to match the skill hint and the prompt's own verb.

Before / after — Codex skill picker layout

Before:

[ ] Skip for now
[ ] Toggle all on
[ ] Toggle all off
[x] alpha
[x] beta

After:

[ ] Accept recommended       <- cursor lands here; Enter submits recommended (alpha + beta)
[x] alpha
[x] beta
[ ] Toggle all on
[ ] Toggle all off

Enter / Space on "Toggle all on", "Toggle all off", and individual skill rows behaves as before. The a (toggle all) and i (invert) keyboard shortcuts are unchanged.

Files

  • src/commands/migrate/types.ts — suppressPlanLog?: boolean on MigrateCommonOptions.
  • src/commands/migrate.ts — migratePlanCommand skips the plan log when opts.suppressPlanLog === true; both selection pickers add "Accept recommended" at the top, drop the "Skip for now" row, keep Toggle on/off at the bottom, and set cursorAt: MIGRATION_SELECTION_ACCEPT; plugin-hint text updated; dead if (selection.action === "skip") blocks removed from both pickers.
  • src/commands/migrate/selection.ts — new MIGRATION_SELECTION_ACCEPT constant (and MIGRATION_SKILL_SELECTION_ACCEPT alias); MIGRATION_SELECTION_SKIP / MIGRATION_SKILL_SELECTION_SKIP constants removed; { action: "skip" } variant removed from InteractiveMigrationSelection; SKIP branches stripped from resolveInteractiveMigrationSelection, reconcileInteractiveMigrationSkillToggleValues, reconcileInteractiveMigrationEnterValues, and reconcileInteractiveMigrationShortcutValues.
  • src/commands/migrate/skill-selection-prompt.ts — Enter on the Accept sentinel sets prompt.value to opts.initialValues and submits; Space on the Accept sentinel sets prompt.value to opts.initialValues and stays on the row, snapping the visible checkboxes back to the recommended state.
  • src/commands/migrate/skill-selection-prompt.test.ts — Accept sentinel coverage; Skip row dropped from picker fixture; Skip-cursor test removed.
  • src/commands/migrate/selection.test.ts — Skip sub-assertions trimmed from resolve / reconcile tests; "skip + toggle-off precedence" renamed.
  • 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.ts — passes suppressPlanLog: true when handing off to migrateDefaultCommand from the post-install migration offer.
  • src/wizard/setup.post-install-migration.test.ts — call-args assertion expects the new option.

Verification

pnpm lint                                                              # 0 errors
pnpm tsgo:core && pnpm tsgo:core:test                                  # clean
pnpm test src/commands/migrate.test.ts                                 # 32/32 passed
pnpm test src/commands/migrate/selection.test.ts                       # 17/17 passed
pnpm test src/commands/migrate/skill-selection-prompt.test.ts          # 6/6 passed
pnpm test src/wizard/setup.post-install-migration.test.ts              # 10/10 passed

Real behavior proof — interactive bash run.sh onboard-fast

Verified locally against the seeded ~/onboarding/codex_home fixture:

  1. Picked openai/gpt-5.5 so ensureCodexRuntimePluginForModelSelection ran.
  2. Wizard prompt fired: Migrate Codex at /Users/sjf/onboarding/codex_home into this agent now? (y).
  3. No plan dump.
  4. Codex selection picker fired with the new layout — cursor on "Accept recommended", all skills pre-selected, no Skip row in sight. Pressed Enter → submitted the recommended set.
  5. Plugin picker fired with the same layout. Enter on Accept → submitted recommended plugins.
  6. Apply this migration now? (y).
  7. Progress label + post-apply summary printed.

Notes

  • suppressPlanLog is a single new boolean on an existing options type; no breaking change to the CLI surface or to migrateDefaultCommand callers that do not pass it.
  • The Skip removal is a real UX behavior change for the standalone openclaw migrate <provider> CLI too. Users who want to exit without migrating now toggle the selection empty (e.g. "Toggle all off") — the apply phase already handles "nothing planned" by skipping cleanly.
  • shouldSkipCodexApplyAfterInteractiveSelection, hasCodexSubscriptionRequiredPlugin, readCodexSubscriptionWarning, and logNoCodexSelection are preserved — they handle the "user produced no selectable work" case (via Toggle all off, individual deselect, or empty initial set) which is still a valid path.

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: XS maintainer Maintainer-authored PR labels May 13, 2026
@sjf
sjf force-pushed the feat/migrate-suppress-plan-log branch from b910466 to ef27b0f Compare May 13, 2026 00:10
@clawsweeper

clawsweeper Bot commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge.

Summary
The branch adds an internal suppressPlanLog migrate option, wires it from post-install onboarding, replaces Codex migration Skip rows with an Accept recommended sentinel, and updates selector tests.

Reproducibility: yes. Source inspection is enough: the PR passes suppressPlanLog from a generic onboarding helper and the current docs still describe the old Skip row and preview-first behavior.

Real behavior proof
Sufficient (live_output): The PR body includes after-fix interactive run output describing no plan dump, the new picker layout, Enter accepting recommended selections, and successful apply confirmation.

Next step before merge
A maintainer should decide the embedded migration preview policy; the docs issue is mechanical, but the plan suppression behavior is a UX/safety decision.

Security
Cleared: The diff changes migration prompt/options logic and tests only; no dependency, CI, credential, artifact execution, or supply-chain surface is added.

Review findings

  • [P2] Keep provider plans visible before embedded apply — src/wizard/setup.post-install-migration.ts:153
  • [P3] Update the documented Codex selector behavior — src/commands/migrate.ts:138-140
Review details

Best possible solution:

Keep the selector UX if maintainers want it, but preserve or replace the itemized preview for embedded migrations and update the public migrate docs before merge.

Do we have a high-confidence way to reproduce the issue?

Yes. Source inspection is enough: the PR passes suppressPlanLog from a generic onboarding helper and the current docs still describe the old Skip row and preview-first behavior.

Is this the best way to solve the issue?

No. The selector affordance is plausible, but suppressing the generic migration plan preview is broader than the documented safety model and should be narrowed or paired with an embedded preview.

Full review comments:

  • [P2] Keep provider plans visible before embedded apply — src/wizard/setup.post-install-migration.ts:153
    The post-install helper is provider-generic, but this passes suppressPlanLog: true for every accepted candidate. Providers without Codex's selector UI can now go from the onboarding consent prompt straight to the final apply confirmation without the itemized plan that migrate's preview-first safety model promises, so scope suppression or render an embedded preview before apply.
    Confidence: 0.88
  • [P3] Update the documented Codex selector behavior — src/commands/migrate.ts:138-140
    This removes Skip for now and changes the default Enter path, but docs/cli/migrate.md still describes the old Skip row and selector semantics. Please update the public migrate docs so users do not follow a flow that no longer exists.
    Confidence: 0.84

Overall correctness: patch is incorrect
Overall confidence: 0.89

Acceptance criteria:

  • pnpm lint
  • pnpm tsgo:core && pnpm tsgo:core:test
  • pnpm test src/commands/migrate.test.ts
  • pnpm test src/commands/migrate/selection.test.ts
  • pnpm test src/commands/migrate/skill-selection-prompt.test.ts

What I checked:

  • Protected PR context: Provided GitHub context shows this PR is open at head fca5cab with labels including maintainer and proof: sufficient; kevinslin commented that the selector behavior is a feature and should align with other onboarding multiselects. (fca5cab8092a)
  • Current preview contract: Current main documents openclaw migrate as preview-first and says apply previews the plan and prompts before changing state unless --yes is set. Public docs: docs/cli/migrate.md. (docs/cli/migrate.md:78, cbf6d5cfe2ca)
  • Current generic onboarding handoff: Current main describes offerPostInstallMigrations as generic for any migration provider owned by a newly installed plugin, with the actual migration UI owned by openclaw migrate . (src/wizard/setup.post-install-migration.ts:102, cbf6d5cfe2ca)
  • PR suppresses all accepted provider plans: The PR head passes suppressPlanLog: true from the generic post-install migration helper for every accepted candidate provider, not only Codex. (src/wizard/setup.post-install-migration.ts:153, fca5cab8092a)
  • PR suppresses formatted plan output: The PR head changes migratePlanCommand so non-JSON output skips runtime.log(formatMigrationPlan(plan)) when suppressPlanLog is true. (src/commands/migrate.ts:330, fca5cab8092a)
  • Docs still describe old selector behavior: Current docs still say interactive Codex migration previews the full plan, uses Toggle all rows, and exposes Skip for now semantics that this PR removes. Public docs: docs/cli/migrate.md. (docs/cli/migrate.md:129, cbf6d5cfe2ca)

Likely related people:

  • kevinslin: Recent merged Codex migration selector UX commits and the live PR discussion both point to Kevin Lin for the selector Enter behavior and onboarding multiselect direction. (role: feature-history owner / reviewer; confidence: high; commits: 81349cdc2a9d, d922edd86190, bc44f3824f9b; files: src/commands/migrate.ts, src/commands/migrate/selection.ts, src/commands/migrate/skill-selection-prompt.ts)
  • sjf: The merged post-install migration helper that this PR changes came from sjf's prior PR, so they are tied to the current onboarding migration handoff beyond merely opening this PR. (role: recent area contributor; confidence: high; commits: 48529f1a965c; files: src/wizard/setup.post-install-migration.ts, src/wizard/setup.post-install-migration.test.ts, src/plugins/provider-auth-choice.ts)

Remaining risk / open question:

  • Accepted onboarding migrations for non-Codex providers can lose the itemized plan preview before the final apply confirmation.
  • Public docs remain inconsistent with the changed selector layout and Skip removal.

Codex review notes: model gpt-5.5, reasoning high; reviewed against cbf6d5cfe2ca.

Re-review progress:

@sjf
sjf force-pushed the feat/migrate-suppress-plan-log branch 2 times, most recently from 744b10b to 000b0db Compare May 13, 2026 00:30
@sjf
sjf force-pushed the feat/migrate-suppress-plan-log branch from 000b0db to a55b2c0 Compare May 13, 2026 00:35
@sjf sjf changed the title feat(migrate): add suppressPlanLog option for embedding callers feat(migrate): suppress plan log on embedding + align selection-picker Enter with rest of wizard May 13, 2026
@sjf
sjf requested a review from kevinslin May 13, 2026 00:36
@kevinslin

kevinslin commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

this is a feature, not a bug. see https://discordapp.com/channels/1456350064065904867/1456744319972282449/1503880505282527364

we'd want this behavior in the other multi-select toggles in onboarding as well

Selection-picker Enter behavior aligned with the rest of the wizard. The Codex selection prompt (promptCodexMigrationSkillSelection, promptCodexMigrationPluginSelection) previously installed a custom key handler in skill-selection-prompt.ts that, on Enter, mutated prompt.value based on the cursor row via reconcileInteractiveMigrationEnterValues. With the cursor at index 0 = "Skip for now" (the default), pressing Enter therefore wiped the pre-selected items and submitted [MIGRATION_SELECTION_SKIP] even though every item was visually checked. No other wizard multiselect — e.g. src/wizard/setup.official-plugins.ts — does this: Enter submits whatever is currently selected, period.

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 13, 2026
@sjf
sjf force-pushed the feat/migrate-suppress-plan-log branch from a55b2c0 to fa56e66 Compare May 13, 2026 01:24
@sjf sjf changed the title feat(migrate): suppress plan log on embedding + align selection-picker Enter with rest of wizard feat(migrate): suppress plan log on embedding + add "Accept recommended" affordance May 13, 2026
@sjf
sjf force-pushed the feat/migrate-suppress-plan-log branch 3 times, most recently from ba45d26 to 461c18c Compare May 13, 2026 01:53
…ed" affordance

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).
@sjf
sjf force-pushed the feat/migrate-suppress-plan-log branch from 461c18c to fca5cab Compare May 13, 2026 02:02
@sjf sjf changed the title feat(migrate): suppress plan log on embedding + add "Accept recommended" affordance feat(migrate): suppress plan log on embedding, add "Accept recommended" affordance, remove "Skip for now" May 13, 2026
@sjf
sjf merged commit a197e31 into main May 13, 2026
122 of 128 checks passed
@sjf
sjf deleted the feat/migrate-suppress-plan-log branch May 13, 2026 06:51
sjf added a commit that referenced this pull request May 13, 2026
* feat(migrate): suppress plan log on embedding + add "Accept recommended" 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)

* test(migrate): reconcile beta selection tests
l3ocifer pushed a commit to l3ocifer/frack-openclaw that referenced this pull request May 13, 2026
…ed" affordance (openclaw#81219)

Two related improvements to the interactive `openclaw migrate <provider>`
flow, both surfaced by the onboarding post-install migration prompt that
landed in openclaw#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).
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
…ed" affordance (openclaw#81219)

Two related improvements to the interactive `openclaw migrate <provider>`
flow, both surfaced by the onboarding post-install migration prompt that
landed in openclaw#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).
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
…ed" affordance (openclaw#81219)

Two related improvements to the interactive `openclaw migrate <provider>`
flow, both surfaced by the onboarding post-install migration prompt that
landed in openclaw#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).
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
…ed" affordance (openclaw#81219)

Two related improvements to the interactive `openclaw migrate <provider>`
flow, both surfaced by the onboarding post-install migration prompt that
landed in openclaw#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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations maintainer Maintainer-authored PR proof: sufficient ClawSweeper judged the real behavior proof convincing. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants