Skip to content

cli: Don't set no_interaction for --assumeyes - #6744

Merged
swick merged 1 commit into
flatpak:mainfrom
1pav:fix-assume-yes-flag-behavior
Jul 29, 2026
Merged

swick merged 1 commit into
flatpak:mainfrom
1pav:fix-assume-yes-flag-behavior

Conversation

@1pav

@1pav 1pav commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

The --assumeyes (-y) option was setting both the CLI-level disable_interaction flag and the library-level no_interaction flag to TRUE. This caused -y to suppress not just confirmation prompts, but also credential prompts (basic auth, webflow), polkit authorization dialogs, and parental control consent -- even though -y is documented as "automatically answer yes to all questions".

Rename disable_interaction to assume_yes to clarify its purpose: it auto-answers yes/no confirmations and picks default choices. Stop calling flatpak_transaction_set_no_interaction() from the CLI transaction constructor, so the library-level no_interaction flag is only set by --noninteractive (which uses FlatpakQuietTransaction). Remove the assume_yes guard from basic_auth_start so credential prompts are always shown when the CLI transaction is in use.

Assisted-by: Cursor

The --assumeyes (-y) option was setting both the CLI-level
disable_interaction flag and the library-level no_interaction flag to
TRUE. This caused -y to suppress not just confirmation prompts, but
also credential prompts (basic auth, webflow), polkit authorization
dialogs, and parental control consent -- even though -y is documented
as "automatically answer yes to all questions".

Rename disable_interaction to assume_yes to clarify its purpose: it
auto-answers yes/no confirmations and picks default choices. Stop
calling flatpak_transaction_set_no_interaction() from the CLI
transaction constructor, so the library-level no_interaction flag is
only set by --noninteractive (which uses FlatpakQuietTransaction).
Remove the assume_yes guard from basic_auth_start so credential
prompts are always shown when the CLI transaction is in use.

Assisted-by: Cursor
@1pav

1pav commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

This should also fix #6085, although I haven't tested it specifically with Polkit dialogs, only with basic auth credentials prompts.

@swick
swick added this pull request to the merge queue Jul 29, 2026
@swick

swick commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Thanks, looks correct.

Merged via the queue into flatpak:main with commit 0717cd1 Jul 29, 2026
11 checks passed
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