Repository navigation
Conversation
immediately-run-worker
requested review from
Brendonovich and
Hona
as code owners
September 16, 2026 17:07
immediately-run-worker
force-pushed
the
web-ui-title
branch
from
September 17, 2026 11:12
ec16533 to
8fa86ff
Compare
…ions to fresh workspaces Per-tab CoW isolation for agent VMs: when OPENCODE_NEW_SESSION_WORKSPACE is set to a registered workspace adapter type, POST /session (the exact call a new browser tab makes) creates a fresh workspace of that type and binds the session to its directory + workspaceID — every tab gets its own overlayfs over the shared repos base, while subagents/children (parentID payloads and internal creates) keep sharing their parent's workspace. - explicit workspaceID payloads route the session into that workspace's directory (parity with the ?workspace= query routing) - unregistered adapter type (plugin absent, fresh boot) degrades to a plain trunk session, never an error - remote targets are skipped (only local targets make sense as a directory) - Session.CreateInput gains an optional directory that wins over the routed instance directory Integration tests: httpapi-session-workspace-default.test.ts (trunk default, fresh-workspace binding, parallel distinctness, parented-creates untouched, explicit-ID reuse, missing-adapter fallback, subagent-shares-overlay).
…ject resolution dropped them unless their workspace directory happened to be an open project card, so they flickered on the home page only while a session tab kept the card alive
…ord extra.origin at workspace creation, resolve home records/labels/open-flow through it instead of the workspace slug, and stop per-directory context stores from adopting workspace sessions delivered on the origin's event channel (the same session showed under both)
…line, release lineage, build/release process, and the fc-opencode deployment contract
…ssets, post-rebase hash mapping
immediately-run-worker
force-pushed
the
web-ui-title
branch
from
September 25, 2026 16:55
0f7ab78 to
912de64
Compare
Contributor
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #47906
Type of change
What does this PR do?
Adds an
OPENCODE_WEB_UI_TITLEenv var that overrides the<title>of the served web UI, so multiple instances can be told apart in the browser tab strip. Todaypackages/app/index.htmlhardcodes<title>OpenCode</title>and every tab looks identical.The rewrite lives in
packages/opencode/src/server/shared/ui.tsand covers both paths that serve HTML: the embedded UI and the proxied dev UI. Details worth reviewing:String.replaceis called with a function so$sequences in a configured title aren't treated as replacement patterns.How did you verify your code works?
Three tests added to
packages/opencode/test/server/httpapi-ui.test.ts:bun test test/server/httpapi-ui.test.tsinpackages/opencode: 15 pass, 0 fail.Screenshots / recordings
Not applicable, the only visible change is the browser tab text.
Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_01SD3x4f2sEBGjdBg7HECpky