Skip to content

Default the new-identity wizard's profile prompt to skip - #20

Merged
Mearman merged 1 commit into
mainfrom
feat/default-skip-new-identity-profile
Sep 12, 2026
Merged

Mearman merged 1 commit into
mainfrom
feat/default-skip-new-identity-profile

Conversation

@Mearman

@Mearman Mearman commented Sep 12, 2026

Copy link
Copy Markdown
Member

"Create a default configuration profile for ""?" defaulted to "create" on a bare Enter, since a select prompt with no explicit initial value falls back to whichever option is listed first. Most identities don't need a profile of their own — they're meant to fall through to the global default (or a directory rule), and a profile only earns its keep once one genuinely needs to diverge from that.

SelectParams gains an initialValue field, threaded into @clack/prompts' own select() (which already supports it). This moves the default answer without reordering the options — "skip" becomes what Enter confirms, without becoming the first line on screen ahead of "Create and configure a profile". The wizard's prompt sets it to "skip".

A bare Enter on "Create a default configuration profile for <name>?"
picked "create", since a select prompt with no explicit initial value
defaults to whichever option is listed first. Most identities need no
profile of their own at all — they're meant to fall through to whatever
the global default (or a directory rule) already resolves to, and a
profile only earns its keep once an identity genuinely needs to diverge
from that. Defaulting to "create" nudged every new identity toward its
own profile regardless.

SelectParams gains an initialValue field, threaded straight into
@clack/prompts' own select(), which already supports it — this moves
the default answer without reordering the options themselves, so "skip"
becomes what Enter confirms without becoming the first, most prominent
line on screen. The wizard's own prompt sets it to "skip".
@Mearman
Mearman marked this pull request as ready for review September 12, 2026 09:48
@Mearman
Mearman merged commit eb2faf8 into main Sep 12, 2026
31 checks passed
@Mearman
Mearman deleted the feat/default-skip-new-identity-profile branch September 12, 2026 09:48
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-12T09:51:47.290754Z 9fb93c8 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant