Skip to content

feat: add --no-open flag to opencode web command#33465

Open
asieduernest12 wants to merge 1 commit into
anomalyco:productionfrom
asieduernest12:feat/no-open-option
Open

feat: add --no-open flag to opencode web command#33465
asieduernest12 wants to merge 1 commit into
anomalyco:productionfrom
asieduernest12:feat/no-open-option

Conversation

@asieduernest12

@asieduernest12 asieduernest12 commented Jun 23, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This PR introduces a new optional flag --no-open to the opencode web command that prevents the automatic browser launch when running in headless environments (e.g., Docker containers without XDG-open). By default, the behavior remains unchanged (browser opens) for backward compatibility.

The flag is useful for CI/CD pipelines, remote terminals, and any scenario where a graphical browser is not available or desired.

How did you verify your code works?

  • Tested locally by running opencode web --no-open and verified that the server starts but no browser window opens.
  • Tested that without the flag, the server starts and the default browser opens to the local URL.
  • Ensured that the flag works in both localhost (0.0.0.0) and specific hostname scenarios.
  • Verified that existing functionality (displaying local and network access URLs) remains intact.

Screenshots / recordings

No response

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

This introduces a new optional flag --no-open to the opencode web command that prevents the automatic browser launch when running in headless environments (e.g., Docker containers without XDG-open). By default, the behavior remains unchanged (browser opens) for backward compatibility.

The flag is useful for CI/CD pipelines, remote terminals, and any scenario where a graphical browser is not available or desired.
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Jun 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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