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
[FEATURE]: Configurable web UI title to tell multiple instances apart #47906
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
I run several opencode web instances at once, one per project. Every browser tab is titled "OpenCode", so I can't tell them apart and have to click through tabs to find the one I want.
packages/app/index.html hardcodes <title>OpenCode</title> and nothing overrides it at runtime, so there is currently no way to distinguish instances.
I'd like to set the title per instance with an env var:
OPENCODE_WEB_UI_TITLE="work: frontend" opencode web
I have a working change that rewrites the <title> in the served HTML, for both the embedded UI and the proxied dev UI, and leaves the title alone when the variable is unset. Happy to open a PR if you're open to this approach.
If your request is distinct (per-instance configurable title via env var rather than dynamic session/project name), that difference is worth clarifying in your issue so maintainers can decide whether to reopen #31423 or track this separately.
Thanks for the request, @neumark! To restate it: you'd like to set the browser tab title for each opencode web instance (for example with OPENCODE_WEB_UI_TITLE="work: frontend"), so you can tell several instances apart at a glance.
One thing to check before you open a PR: the web app sets the tab title itself once it loads. It uses @solidjs/meta (<Title>OpenCode</Title> in packages/app/src/app.tsx, and <session title> · OpenCode in packages/app/src/session/route.tsx on session pages). So rewriting <title> in the served index.html would probably be replaced as soon as the app loads. A version that passes the configured label into those <Title> calls, for example as a prefix like work: frontend · OpenCode, would likely work better.
Activity
github-actions commentedon Sep 8, 2026
This issue might be a duplicate of an existing issue. Please check:
If your request is distinct (per-instance configurable title via env var rather than dynamic session/project name), that difference is worth clarifying in your issue so maintainers can decide whether to reopen #31423 or track this separately.
opencodejr commentedon Oct 28, 2026
Thanks for the request, @neumark! To restate it: you'd like to set the browser tab title for each
opencode webinstance (for example withOPENCODE_WEB_UI_TITLE="work: frontend"), so you can tell several instances apart at a glance.One thing to check before you open a PR: the web app sets the tab title itself once it loads. It uses
@solidjs/meta(<Title>OpenCode</Title>inpackages/app/src/app.tsx, and<session title> · OpenCodeinpackages/app/src/session/route.tsxon session pages). So rewriting<title>in the servedindex.htmlwould probably be replaced as soon as the app loads. A version that passes the configured label into those<Title>calls, for example as a prefix likework: frontend · OpenCode, would likely work better.Related:
Maintainers will consider this.
Tarquinen commentedon Nov 2, 2026
Thanks for the suggestion! This was added in #59131 and shipped in v2.2.0, so I'm closing this issue.
— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊