Skip to content

Fix login prompts invisible in batch mode, suppress noisy auth message#1838

Merged
craiglurey merged 1 commit intoreleasefrom
fix/login-prompts-stderr
Feb 25, 2026
Merged

Fix login prompts invisible in batch mode, suppress noisy auth message#1838
craiglurey merged 1 commit intoreleasefrom
fix/login-prompts-stderr

Conversation

@craiglurey
Copy link
Contributor

Interactive login prompts (SSO menu, 2FA method selection, device approval options, password context) were using logging.info() which is suppressed in batch mode (log level=WARNING). Users running commands like keeper find-password saw bare "Selection:" prompts with no menu options visible.

Changed all interactive auth UI in console_ui.py and loginv3.py to use print(file=sys.stderr) which is always visible regardless of log level while still keeping output off stdout for clean piping.

Also suppress "Successfully authenticated with Persistent Login" in batch mode since it adds noise to every one-shot command when the user has persistent login enabled.

Interactive login prompts (SSO menu, 2FA method selection, device
approval options, password context) were using logging.info() which
is suppressed in batch mode (log level=WARNING). Users running
commands like `keeper find-password` saw bare "Selection:" prompts
with no menu options visible.

Changed all interactive auth UI in console_ui.py and loginv3.py to
use print(file=sys.stderr) which is always visible regardless of
log level while still keeping output off stdout for clean piping.

Also suppress "Successfully authenticated with Persistent Login"
in batch mode since it adds noise to every one-shot command when
the user has persistent login enabled.
@craiglurey craiglurey merged commit 7bcf3d8 into release Feb 25, 2026
4 checks passed
sk-keeper pushed a commit that referenced this pull request Feb 25, 2026
#1838)

Interactive login prompts (SSO menu, 2FA method selection, device
approval options, password context) were using logging.info() which
is suppressed in batch mode (log level=WARNING). Users running
commands like `keeper find-password` saw bare "Selection:" prompts
with no menu options visible.

Changed all interactive auth UI in console_ui.py and loginv3.py to
use print(file=sys.stderr) which is always visible regardless of
log level while still keeping output off stdout for clean piping.

Also suppress "Successfully authenticated with Persistent Login"
in batch mode since it adds noise to every one-shot command when
the user has persistent login enabled.
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.

1 participant