Skip to content

feat(select): make the prompt line configurable#510

Open
fengmk2 wants to merge 2 commits into
mainfrom
feat/select-prompt
Open

feat(select): make the prompt line configurable#510
fengmk2 wants to merge 2 commits into
mainfrom
feat/select-prompt

Conversation

@fengmk2

@fengmk2 fengmk2 commented Jul 5, 2026

Copy link
Copy Markdown
Member

vite_select hardcodes the "Select a task" prompt line, which blocks reusing the selector outside the task picker. vite-plus needs "Select a package to " for its workspace-root app-command picker (voidzero-dev/vite-plus#2031).

This adds a required prompt field to SelectParams/RenderParams and threads it through interactive::run. vite_task passes the existing task prompt string, so rendering is unchanged: all 20 vite_select unit tests and all 24 task-select pty snapshot tests pass without snapshot updates.

Based on the rev vite-plus currently pins (6cfa6e4) so vite-plus can point at this commit immediately; rebase before merge if needed.

vite_select hardcoded the "Select a task" prompt, which blocks reusing the
selector for other pickers (vite-plus needs "Select a package to dev" for
its workspace-root app-command picker). Add a required prompt field to
SelectParams/RenderParams; vite_task passes the existing task prompt, so
rendering and all pty snapshots are unchanged.
@fengmk2 fengmk2 self-assigned this Jul 5, 2026
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Jul 5, 2026
…rkspace root

Replaces the interim TTY listing with the fuzzy vite_select picker (the vp
run selector component): typing filters packages, Enter runs the selection
as an implicit -C, Ctrl+C cancels with exit 130. Single-runnable auto-select
and the non-interactive listing are unchanged. Every picker render emits a
package-select:<query>:<index> milestone so PTY snapshot tests synchronize
on real keystrokes (picker_select / picker_cancel / non-TTY listing cases,
both flavors).

Requires the configurable prompt from voidzero-dev/vite-task#510; the
vite-task pin points at that PR's commit and needs a re-bump to vite-task
main after it merges.
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Jul 5, 2026
…rkspace root

Replaces the interim TTY listing with the fuzzy vite_select picker (the vp
run selector component): typing filters packages, Enter runs the selection
as an implicit -C, Ctrl+C cancels with exit 130. Single-runnable auto-select
and the non-interactive listing are unchanged. Every picker render emits a
package-select:<query>:<index> milestone so PTY snapshot tests synchronize
on real keystrokes (picker_select / picker_cancel / non-TTY listing cases,
both flavors).

Requires the configurable prompt from voidzero-dev/vite-task#510; the
vite-task pin points at that PR's commit and needs a re-bump to vite-task
main after it merges.
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Jul 5, 2026
…rkspace root

Replaces the interim TTY listing with the fuzzy vite_select picker (the vp
run selector component): typing filters packages, Enter runs the selection
as an implicit -C, Ctrl+C cancels with exit 130. Single-runnable auto-select
and the non-interactive listing are unchanged. Every picker render emits a
package-select:<query>:<index> milestone so PTY snapshot tests synchronize
on real keystrokes (picker_select / picker_cancel / non-TTY listing cases,
both flavors).

Requires the configurable prompt from voidzero-dev/vite-task#510; the
vite-task pin points at that PR's commit and needs a re-bump to vite-task
main after it merges.
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Jul 5, 2026
…rkspace root

Replaces the interim TTY listing with the fuzzy vite_select picker (the vp
run selector component): typing filters packages, Enter runs the selection
as an implicit -C, Ctrl+C cancels with exit 130. Single-runnable auto-select
and the non-interactive listing are unchanged. Every picker render emits a
package-select:<query>:<index> milestone so PTY snapshot tests synchronize
on real keystrokes (picker_select / picker_cancel / non-TTY listing cases,
both flavors).

Requires the configurable prompt from voidzero-dev/vite-task#510; the
vite-task pin points at that PR's commit and needs a re-bump to vite-task
main after it merges.
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Jul 5, 2026
…rkspace root

Replaces the interim TTY listing with the fuzzy vite_select picker (the vp
run selector component): typing filters packages, Enter runs the selection
as an implicit -C, Ctrl+C cancels with exit 130. Single-runnable auto-select
and the non-interactive listing are unchanged. Every picker render emits a
package-select:<query>:<index> milestone so PTY snapshot tests synchronize
on real keystrokes (picker_select / picker_cancel / non-TTY listing cases,
both flavors).

Requires the configurable prompt from voidzero-dev/vite-task#510; the
vite-task pin points at that PR's commit and needs a re-bump to vite-task
main after it merges.
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Jul 5, 2026
…rkspace root

Replaces the interim TTY listing with the fuzzy vite_select picker (the vp
run selector component): typing filters packages, Enter runs the selection
as an implicit -C, Ctrl+C cancels with exit 130. Single-runnable auto-select
and the non-interactive listing are unchanged. Every picker render emits a
package-select:<query>:<index> milestone so PTY snapshot tests synchronize
on real keystrokes (picker_select / picker_cancel / non-TTY listing cases,
both flavors).

Requires the configurable prompt from voidzero-dev/vite-task#510; the
vite-task pin points at that PR's commit and needs a re-bump to vite-task
main after it merges.
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Jul 5, 2026
…rkspace root

Replaces the interim TTY listing with the fuzzy vite_select picker (the vp
run selector component): typing filters packages, Enter runs the selection
as an implicit -C, Ctrl+C cancels with exit 130. Single-runnable auto-select
and the non-interactive listing are unchanged. Every picker render emits a
package-select:<query>:<index> milestone so PTY snapshot tests synchronize
on real keystrokes (picker_select / picker_cancel / non-TTY listing cases,
both flavors).

Requires the configurable prompt from voidzero-dev/vite-task#510; the
vite-task pin points at that PR's commit and needs a re-bump to vite-task
main after it merges.
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Jul 5, 2026
…rkspace root

Replaces the interim TTY listing with the fuzzy vite_select picker (the vp
run selector component): typing filters packages, Enter runs the selection
as an implicit -C, Ctrl+C cancels with exit 130. Single-runnable auto-select
and the non-interactive listing are unchanged. Every picker render emits a
package-select:<query>:<index> milestone so PTY snapshot tests synchronize
on real keystrokes (picker_select / picker_cancel / non-TTY listing cases,
both flavors).

Requires the configurable prompt from voidzero-dev/vite-task#510; the
vite-task pin points at that PR's commit and needs a re-bump to vite-task
main after it merges.
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Jul 5, 2026
…rkspace root

Replaces the interim TTY listing with the fuzzy vite_select picker (the vp
run selector component): typing filters packages, Enter runs the selection
as an implicit -C, Ctrl+C cancels with exit 130. Single-runnable auto-select
and the non-interactive listing are unchanged. Every picker render emits a
package-select:<query>:<index> milestone so PTY snapshot tests synchronize
on real keystrokes (picker_select / picker_cancel / non-TTY listing cases,
both flavors).

Requires the configurable prompt from voidzero-dev/vite-task#510; the
vite-task pin points at that PR's commit and needs a re-bump to vite-task
main after it merges.
@fengmk2 fengmk2 requested a review from wan9chi July 5, 2026 14:07
@fengmk2 fengmk2 marked this pull request as ready for review July 5, 2026 14:07
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Jul 5, 2026
…rkspace root

Replaces the interim TTY listing with the fuzzy vite_select picker (the vp
run selector component): typing filters packages, Enter runs the selection
as an implicit -C, Ctrl+C cancels with exit 130. Single-runnable auto-select
and the non-interactive listing are unchanged. Every picker render emits a
package-select:<query>:<index> milestone so PTY snapshot tests synchronize
on real keystrokes (picker_select / picker_cancel / non-TTY listing cases,
both flavors).

Requires the configurable prompt from voidzero-dev/vite-task#510; the
vite-task pin points at that PR's commit and needs a re-bump to vite-task
main after it merges.
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Jul 5, 2026
…rkspace root

Replaces the interim TTY listing with the fuzzy vite_select picker (the vp
run selector component): typing filters packages, Enter runs the selection
as an implicit -C, Ctrl+C cancels with exit 130. Single-runnable auto-select
and the non-interactive listing are unchanged. Every picker render emits a
package-select:<query>:<index> milestone so PTY snapshot tests synchronize
on real keystrokes (picker_select / picker_cancel / non-TTY listing cases,
both flavors).

Requires the configurable prompt from voidzero-dev/vite-task#510; the
vite-task pin points at that PR's commit and needs a re-bump to vite-task
main after it merges.
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Jul 5, 2026
…rkspace root

Replaces the interim TTY listing with the fuzzy vite_select picker (the vp
run selector component): typing filters packages, Enter runs the selection
as an implicit -C, Ctrl+C cancels with exit 130. Single-runnable auto-select
and the non-interactive listing are unchanged. Every picker render emits a
package-select:<query>:<index> milestone so PTY snapshot tests synchronize
on real keystrokes (picker_select / picker_cancel / non-TTY listing cases,
both flavors).

Requires the configurable prompt from voidzero-dev/vite-task#510; the
vite-task pin points at that PR's commit and needs a re-bump to vite-task
main after it merges.
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Jul 5, 2026
…rkspace root

Replaces the interim TTY listing with the fuzzy vite_select picker (the vp
run selector component): typing filters packages, Enter runs the selection
as an implicit -C, Ctrl+C cancels with exit 130. Single-runnable auto-select
and the non-interactive listing are unchanged. Every picker render emits a
package-select:<query>:<index> milestone so PTY snapshot tests synchronize
on real keystrokes (picker_select / picker_cancel / non-TTY listing cases,
both flavors).

Requires the configurable prompt from voidzero-dev/vite-task#510; the
vite-task pin points at that PR's commit and needs a re-bump to vite-task
main after it merges.
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Jul 5, 2026
…rkspace root

Replaces the interim TTY listing with the fuzzy vite_select picker (the vp
run selector component): typing filters packages, Enter runs the selection
as an implicit -C, Ctrl+C cancels with exit 130. Single-runnable auto-select
and the non-interactive listing are unchanged. Every picker render emits a
package-select:<query>:<index> milestone so PTY snapshot tests synchronize
on real keystrokes (picker_select / picker_cancel / non-TTY listing cases,
both flavors).

Requires the configurable prompt from voidzero-dev/vite-task#510; the
vite-task pin points at that PR's commit and needs a re-bump to vite-task
main after it merges.
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Jul 5, 2026
…rkspace root

Replaces the interim TTY listing with the fuzzy vite_select picker (the vp
run selector component): typing filters packages, Enter runs the selection
as an implicit -C, Ctrl+C cancels with exit 130. Single-runnable auto-select
and the non-interactive listing are unchanged. Every picker render emits a
package-select:<query>:<index> milestone so PTY snapshot tests synchronize
on real keystrokes (picker_select / picker_cancel / non-TTY listing cases,
both flavors).

Requires the configurable prompt from voidzero-dev/vite-task#510; the
vite-task pin points at that PR's commit and needs a re-bump to vite-task
main after it merges.
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