Skip to content

[FEATURE]: Configurable web UI title to tell multiple instances apart #47906

Closed

Description

@neumark

Feature hasn't been suggested before.

  • 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.

Activity

  1. github-actions commented on Sep 8, 2026

    @github-actions
    Contributor

    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.

  2. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    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.

    Related:

    Maintainers will consider this.

  3. Tarquinen commented on Nov 2, 2026

    @Tarquinen
    Member

    Thanks for the suggestion! This was added in #59131 and shipped in v2.2.0, so I'm closing this issue.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions