fix(cli): forward entrypoint skip_confirmation to the generated command by ManoharPaturi · Pull Request #609 · NVIDIA-NeMo/Run · GitHub
Skip to content

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

Merged
ko3n1g merged 3 commits into
NVIDIA-NeMo:mainfrom
ManoharPaturi:fix/entrypoint-skip-confirmation
Oct 2, 2026
Merged

ko3n1g merged 3 commits into
NVIDIA-NeMo:mainfrom
ManoharPaturi:fix/entrypoint-skip-confirmation

Conversation

@ManoharPaturi

Copy link
Copy Markdown
Contributor

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
@copy-pr-bot

copy-pr-bot Bot commented Oct 2, 2026

Copy link
Copy Markdown

@ko3n1g

ko3n1g commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

/ok to test cd432d5

@ko3n1g

ko3n1g commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

@ko3n1g
ko3n1g enabled auto-merge (squash) October 2, 2026 16:13
@ko3n1g
ko3n1g merged commit fc1a804 into NVIDIA-NeMo:main Oct 2, 2026
22 checks passed

This branch was successfully deployed

1 active deployment
public — 3b729cec Deployed Oct 2, 2026 by copy-pr-bot[bot] via release / finalize / publish-docs #321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

3 participants