Skip to content

fix(cli): forward entrypoint skip_confirmation to the generated command - #609

Open
ManoharPaturi wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
ManoharPaturi:fix/entrypoint-skip-confirmation
Open

fix(cli): forward entrypoint skip_confirmation to the generated command#609
ManoharPaturi wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
ManoharPaturi:fix/entrypoint-skip-confirmation

Conversation

@ManoharPaturi

Copy link
Copy Markdown

Fixes #608.

_add_executor_command now seeds cmd_defaults with skip_confirmation=True from the entrypoint (via setdefault, so an explicit cmd_defaults from run.cli.main(...) still wins). The generated command option then defaults to True and _should_continue does not prompt.

Test: invokes the generated command with typer.confirm patched to decline — on main the run never launches (prompt declined), with the fix it runs without prompting. Rest of test/cli/ unchanged.

Copilot AI lite review requested due to automatic review settings September 7, 2026 06:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Entrypoint.skip_confirmation was stored but never forwarded to the
generated CLI command, so @run.cli.entrypoint(skip_confirmation=True)
still prompted 'Continue?' on every non-dryrun invocation (the --yes
flag or run.skip_confirmation=True were required instead).

_add_executor_command now seeds the command defaults with the
entrypoint's skip_confirmation value.

Signed-off-by: Manohar Paturi <186662190+ManoharPaturi@users.noreply.github.com>
@ManoharPaturi
ManoharPaturi force-pushed the fix/entrypoint-skip-confirmation branch from 91e44c3 to 0972762 Compare September 7, 2026 16:36
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.

@run.cli.entrypoint(skip_confirmation=True) has no effect — confirmation prompt still shown

2 participants