Skip to content

Keep the browser's startup messages out of the login prompt, add prod environment (3.0.1) - #8

Merged
alercunha merged 3 commits into
mod-audio:masterfrom
alercunha:quiet-browser
Oct 20, 2026
Merged

alercunha merged 3 commits into
mod-audio:masterfrom
alercunha:quiet-browser

Conversation

@alercunha

@alercunha alercunha commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

login-forum and login-google open the browser while the paste prompt is waiting, and the browser inherits modcli's stderr. GTK browsers print startup messages there, which land in the middle of the prompt:

Finish in the browser, or paste the token it shows here and press ENTER: Gtk-Message: 09:42:48.916: Failed to load module "xapp-gtk3-module"
Gtk-Message: 09:42:48.917: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

_open_browser now points fd 2 at /dev/null while webbrowser.open spawns the browser, then restores it. The browser keeps /dev/null as its stderr, so messages it prints after open returns are dropped as well. The URL is still printed as a fallback.

Also:

  • Replaces the labs environment with prod (api.mod.audio, pipeline.mod.audio) and makes dev the default.
  • Bumps the version to 3.0.1.

Testing

  • In a python:3.12-slim container, with a fake xdg-open that writes GTK messages immediately and one second later: before the change both messages appear after the prompt; with it, neither does, and modcli's own stderr works afterwards.
  • pytest: 26 passed. pylint --errors-only modcli tests: clean.

🤖 Generated with Claude Code

Alex Cunha and others added 3 commits October 20, 2026 09:53
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alercunha alercunha changed the title Keep the browser's startup messages out of the login prompt (3.0.1) Keep the browser's startup messages out of the login prompt, add prod environment (3.0.1) Oct 20, 2026
@alercunha
alercunha merged commit 052f256 into mod-audio:master Oct 20, 2026
17 checks passed
@alercunha
alercunha deleted the quiet-browser branch November 13, 2026 06:16
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