Skip to content

app: untitled sessions show English "New session" in other languages #68597

Backlog

Description

@TianYuan1024

Description

With the app in another language, a session without a title still shows the English "New session" (or "Child session" for a subagent session). This happens in the Home session list and search results, the project browser, the sidebar session rows, the inbox, Settings > Workspaces and the navigation view. Home search also matches only the English words.

The label comes from displayLabel in packages/util/src/session-title-fallback.ts, which returns fixed English text. Other places in the app already show untitled sessions with language.t("command.session.new"), which is translated (for example the delete dialogs in Home and the inbox).

Plugins

None

OpenCode version

dev (045e9e3)

Steps to reproduce

  1. Set the app language to 简体中文.
  2. Create a session and don't send a prompt, so it has no title (or open any session without a title).
  3. Open Home.

Expected: the row shows the translated label, 新建会话.
Actual: it shows New session.

Screenshot

App/Home Lab page in Chinese, with one session's title removed:

Before

Operating System

macOS 27.2.1

Terminal

No response

Activity

  1. added
    area/web
    type/bug
    version/v2
    on Dec 6, 2026
  2. opencodejr commented on Dec 6, 2026

    @opencodejr
    Contributor

    Not observed; this looks likely from reading the code.

    This still happens on the latest dev (766a0cf). I confirmed it by reading the code; I could not run the app here.

    • displayLabel in packages/util/src/session-title-fallback.ts (line 20) returns fixed English text, "New session" or "Child session", when a session has no title.
    • sessionLabel in packages/app/src/session/title.ts returns that text unchanged. Home rows (home/sessions/view.tsx), Home search (home/sessions/search.ts), the inbox and the other places you list all use it.
    • The delete dialogs fall back to language.t("command.session.new") instead, which is 新建会话 in zh.ts.

    Your PR #68598 changes sessionLabel to use the app's language in this way.

  3. added
    status/repro-plausible
    on Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/webplatform/macosstatus/repro-plausibletype/bugversion/v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions