You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: Automatically open Microcks Dashboard in the browser for better DX #423
Currently, when a developer starts Microcks or runs a test, they have to manually click the URL in the console to open the browser. This adds friction to the development loop. It makes the CLI feel more modern and integrated
with the developer's workstation
Description
This enhancement introduces a mechanism to automatically launch the system's default web browser when the CLI
outputs a link to the Microcks UI.
Changes to be introduced:
Centralized Browser Utility: A new package pkg/util to handle cross-platform browser launching with safety
checks.
Environment Awareness: The CLI will detect if it is running in a headless environment (CI/CD) or if the user
has globally disabled browser launching via environment variables (MICROCKS_NO_BROWSER).
Command Updates:
microcks start will open the main dashboard.
microcks test will open the specific Test Result page.
User Control: A new flag --launch-browser (defaulting to true) will be added to relevant commands to allow
manual overrides.
Implementation ideas
Use the github.com/skratchdot/open-golang/open library (already present in the project) for cross-platform
support.
Implement a LaunchBrowser(url string, enabled bool) function that checks for os.Getenv("CI") before attempting
to open the browser.
Split the work into three logical PRs:
Core utility + microcks start integration.
microcks test integration for direct Test Result links.
Refactor existing login --sso logic and add permanent configuration settings in config.yaml.
Status check: three open PRs from the same author cover this issue: #424 (dashboard on start), #425 (test result links and a CreateTestResult fix), and #426 (draft, global browser configuration and login unification). They overlap, and none has been updated since May except #426 (September).
@Manar-Elhabbal7: could you consolidate them into one PR scoped to the opt-in behavior described here (MICROCKS_NO_BROWSER, headless and CI detection), with the unrelated CreateTestResult fix in its own PR? Before that, can the maintainers confirm they want automatic browser launching at all: it is a behavior change for scripts and the default should probably be off, or on only when stdout is a TTY.
Disclosure: this comment was drafted with AI assistance, and I checked the claims against current master.
Activity
yada commentedon Oct 28, 2026
Status check: three open PRs from the same author cover this issue: #424 (dashboard on
start), #425 (test result links and aCreateTestResultfix), and #426 (draft, global browser configuration and login unification). They overlap, and none has been updated since May except #426 (September).@Manar-Elhabbal7: could you consolidate them into one PR scoped to the opt-in behavior described here (
MICROCKS_NO_BROWSER, headless and CI detection), with the unrelatedCreateTestResultfix in its own PR? Before that, can the maintainers confirm they want automatic browser launching at all: it is a behavior change for scripts and the default should probably be off, or on only when stdout is a TTY.Disclosure: this comment was drafted with AI assistance, and I checked the claims against current master.
Caesarsage commentedon Oct 30, 2026
Thanks @Manar-Elhabbal7. We'd accept this as an opt-in
--openflag only: off by default and under CI or--output json, with messages on stderr.Let's continue in #424 and close the other related PR after merging them together as suggested by @yada