Skip to content

feat: restrict interactive task selector to bare vp run and cwd-only#183

Merged
branchseer merged 8 commits intomainfrom
03-02-feat_restrict_interactive_task_selector_to_bare_vp_run_and_cwd-only
Mar 2, 2026
Merged

feat: restrict interactive task selector to bare vp run and cwd-only#183
branchseer merged 8 commits intomainfrom
03-02-feat_restrict_interactive_task_selector_to_bare_vp_run_and_cwd-only

Conversation

@branchseer
Copy link
Copy Markdown
Member

Summary

  • The interactive task selector now only appears for bare vp run or simple vp run <taskname> (cwd-only). Running with scope flags like -r, -t, -w, or --filter will show an error instead of the selector when the task is not found.
  • After selecting a task from the interactive selector, prints Selected task: followed by the task name before executing.
  • Error messages now include the task name: Task "buid" not found instead of the generic no tasks matched the query.
  • vp run --verbose (or any non-scope flag without a task) correctly errors with "No task specifier provided" instead of showing the selector.
  • vp run buid --verbose still enters the selector since --verbose is not a scope flag — only package-scope flags (-r, -t, -w, --filter) gate the selector.

Test plan

  • cargo test -p vite_task_bin --test e2e_snapshots -- task-select — all pass
  • cargo test — all pass
  • just lint — clean

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@branchseer branchseer requested a review from fengmk2 March 2, 2026 09:49
branchseer and others added 7 commits March 2, 2026 18:12
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…lvedRunCommand

Defer TaskSpecifier parsing to into_query_plan_request where the
structured fields are actually needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Derive Clone on ResolvedRunCommand and pass the whole struct instead of
individual flags and additional_args fields.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… Option<ExitStatus>

handle_no_task now mutates run_command.task_specifier in place on
interactive selection and returns None, letting the caller plan and
execute through the single LabeledReporterBuilder + execute_graph
site. Non-interactive list mode returns Some(ExitStatus) directly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Check task_specifier before calling plan_from_cli_run_resolved,
removing the is_missing_task_specifier error path and unwrap_or_default.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@branchseer branchseer merged commit fb93f6f into main Mar 2, 2026
6 checks passed
@branchseer branchseer deleted the 03-02-feat_restrict_interactive_task_selector_to_bare_vp_run_and_cwd-only branch March 2, 2026 15:32
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.

2 participants