Skip to content

CLI-60: Suppress release link auto-open when --yes-always is set - #665

Merged
dwash96 merged 1 commit into
cecli-dev:v1.4.0from
szmania:cli-60-yolo-release-link
Sep 1, 2026
Merged

CLI-60: Suppress release link auto-open when --yes-always is set#665
dwash96 merged 1 commit into
cecli-dev:v1.4.0from
szmania:cli-60-yolo-release-link

Conversation

@szmania

@szmania szmania commented Sep 1, 2026

Copy link
Copy Markdown

This PR addresses the issue where the release notes link automatically opens in the browser when the --yes-always flag is set.

Problem

When users run cecli with --yes-always, cecli still auto-opens the release link in the browser on startup due to auto-answering the first-run prompt. This causes unexpected browser tabs to open in headless/automated contexts.

Solution

Modified cecli/main.py: Updated the main_async function to skip the automated browser opening logic if args.yes_always is True. This ensures that automated testing environments or non-interactive sessions are not interrupted by unexpected browser launches.

Specifically changed:

  • Line ~1700: elif args.show_release_notes is None and is_first_run:
    to elif args.show_release_notes is None and is_first_run and not args.yes_always:

Verification

  • Verified that running cecli --yes-always no longer triggers the browser.
  • Verified that the standard behavior (without --yes-always) still opens the link as expected.
  • Verified that explicit --show-release-notes still opens the link.

This respects the non-interactive intent of the --yes-always flag by skipping the release notes offer_url prompt when the user has specified "always yes".

@dwash96
dwash96 changed the base branch from main to v1.4.0 September 1, 2026 06:53
@dwash96
dwash96 merged commit 937ab86 into cecli-dev:v1.4.0 Sep 1, 2026
11 of 12 checks passed
@dwash96 dwash96 mentioned this pull request Sep 1, 2026
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