Skip to content

[FEATURE]: Desktop: window/taskbar title should show the current project (and session) name #51442

Closed as not planned

Description

@mistsupcld-hub

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

Context
OpenCode Desktop (Windows). When several windows are open, every window/taskbar entry is titled "OpenCode", making it impossible to tell projects apart.

Root cause
packages/desktop/src/main/windows.ts creates the BrowserWindow with a hardcoded title: "OpenCode". There is no dynamic title path in the desktop package: no setTitle IPC/preload hook and no document.title update in the renderer (verified across packages/desktop/src). This is still the case on dev/v1.18.32.

Prior art

Requested behavior
The OS window/taskbar title should reflect the active context and update when it changes:

  • Default format: <Project name>
  • With a named session: <Session name> - <Project name>
  • Fallback: OpenCode when no project/session is active

For reference, the TUI already sets a dynamic terminal title (oc | <session title>, commit 3ec34ee); it would be consistent to include the project name there too.

Benefit
Multiple concurrent windows become distinguishable in the Windows taskbar and window switcher.

Activity

  1. github-actions commented on Sep 26, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. cep207 commented on Sep 29, 2026

    @cep207

    +1 — this would also unlock automatic time tracking.

    Use case: time trackers like ActivityWatch (and similar: ManicTime, Tockler)
    classify activity by the active window title. Right now every OpenCode Desktop
    window is just "OpenCode", so all work time falls into one generic bucket and
    it's impossible to see time spent per project.

    A title like OpenCode — <project> — <session> would be enough for
    ActivityWatch window-title rules to assign time to the right project
    automatically. Ideally make the template configurable (title_template in
    config) — that would also cover #31423 (auto-closed by stale bot, never
    implemented).

  3. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    Thanks for the detailed write-up! This report is about OpenCode Desktop v1 (v1.18.32, packages/desktop/src/main/windows.ts). v1 now only gets fixes for critical bugs such as crashes, data loss or security problems, so this is unlikely to change there.

    We'd encourage upgrading to v2 (the @opencode/cli package / the current Desktop app). v2 already does part of this: the app sets the page title to <session title> · OpenCode when a session has a title and OpenCode otherwise. The Desktop window uses that page title, so the window and taskbar entries should show the session name. The project name isn't in the title yet.

    Related items you mentioned:

    If you think this is critical, or you still can't tell windows apart on v2 (for example because you want the project name in the title), please reply here with your v2 version and what you see.

  4. opencodejr commented on Oct 29, 2026

    @opencodejr
    Contributor

    Closing this as not planned. It's a feature request for OpenCode Desktop v1 (v1.18.32), and v1 only gets fixes for critical bugs. In v2, the Desktop window and taskbar title should already follow the session title (<session title> · OpenCode), but the project name isn't included yet. If you try v2 and still need the project name in the title, please open a new issue with your v2 version and what you see. Thanks for the detailed report!

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions