Skip to content

Session titles are not being set #6819

Closed

Description

@aklajnert

Description

Previously the opencode would change the name of the session based on the prompt, so it was easier to locate on the sessions list. Now, the session name stays on "New session - <timestamp>".

The behavior is the same on the TUI and OpenCode Desktop.

Plugins

No response

OpenCode version

1.0.223

Steps to reproduce

Create a new session, put any prompt. The session name should be related with the initial prompt.

Screenshot and/or share link

Image

Operating System

Ubuntu 22.04

Terminal

No response

Activity

  1. github-actions commented on Jan 4, 2026

    @github-actions
    Contributor

    This issue is related to #6153 which discusses the session rename dialog UX. While #6153 focuses on improving the rename process itself, this issue describes the underlying regression where session titles are no longer being automatically generated from the initial prompt.

    Both issues could benefit from coordinated fixes - restoring automatic session naming from prompts and improving the manual rename experience for when users want to customize titles further.

  2. jiyeol-lee commented on Jan 4, 2026

    @jiyeol-lee

    I went through this situation and I found a pattern. When I use Cladue family models, session title is set, if I don't use Claude family models, GPT 5 nano model should be enabled from Zen provide (it is free)

  3. aklajnert commented on Jan 5, 2026

    @aklajnert
    Author

    Oh, it seems it is dependent on the model. I see that Grok Code Fast does set it, but GPT-5-mini, Claude Sonnet 4.5, Claude Haiku 4.5. I have tested Grok from Copilot and Zen, and they both set the subject.

  4. aklajnert commented on Jan 5, 2026

    @aklajnert
    Author

    I have just updated to 1.1.2, and noticed that the problem is gone, closing the issue.

  5. EgilSandfeld commented on Feb 13, 2026

    @EgilSandfeld

    Got this issue with Opencode Web and using GLM 5, but discovered that renaming uses GPT 5-nano (free with Zen), but when providing own OpenAI API Key in Zen settings and insufficient funds, this is what I see in logs, when running "opencode run --print-logs hi":

    ERROR 2026-02-13T10:18:48 +1143ms service=llm providerID=opencode modelID=gpt-5-nano sessionID=ses_3a97d6100ffe6k1msy10u0To3H small=true agent=title mode=primary error={"error":{"type":"error","sequence_number":2,"error":{"type":"insufficient_quota","code":"insufficient_quota","message":"You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.","param":null}}} stream error

    Removing the OpenAI key or adding funds fixes this issue.

  6. autowert66 commented on May 20, 2026

    @autowert66

    I would like to point out that the gpt-5-nano model is no longer free, so if OpenCode Zen is not configured or does not have any balance, title generation seems to fail as well, depending on what provider/model is being used.

    Setting small_model in opencode.jsonc to any other model, either from a configured provider or to a free Zen model seems to resolve the problem (docs).

    {
        // ...
        "small_model": "qwen3.6-plus-free"
    }
  7. riyas-rawther commented on Jun 27, 2026

    @riyas-rawther

    Thanks @autowert66 it solved the issue.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions