Skip to content

fix: update studio message when --no-browser flag is used (fixes #2001)#2165

Open
gavin913427-hash wants to merge 1 commit intoasyncapi:masterfrom
gavin913427-hash:fix/no-browser-flag
Open

fix: update studio message when --no-browser flag is used (fixes #2001)#2165
gavin913427-hash wants to merge 1 commit intoasyncapi:masterfrom
gavin913427-hash:fix/no-browser-flag

Conversation

@gavin913427-hash
Copy link
Copy Markdown

What

Update the studio output message when --no-browser flag is used.

Why

When --no-browser flag is used, the message still showed "Open this URL in your web browser" which was confusing for users in remote environments (SSH, containers) or those who prefer to manually open the browser.

How

Changes

File Change
src/domains/models/Studio.ts Update output message based on noBrowser flag

Testing

# With --no-browser flag
asyncapi start studio --no-browser asyncapi.yaml
# Output: 🔗 Studio is running at http://localhost:3210

# Without flag (default)
asyncapi start studio asyncapi.yaml
# Output: 🌐 Open this URL in your web browser: http://localhost:3210

Fixes #2001

When --no-browser flag is used, the message now shows:
'🔗 Studio is running at http://localhost:port'
instead of:
'🌐 Open this URL in your web browser: http://localhost:port'

This provides better UX for users in remote environments (SSH, containers)
or those who prefer to manually open the browser.

Fixes asyncapi#2001
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 3, 2026

⚠️ No Changeset found

Latest commit: 6c22006

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 3, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

[BUG] add --no-browser flag to start studio and fix standalone build compatibility

1 participant