Session titles stopped auto-generating (stuck on 'New session - timestamp') #4395

Closed
opened 2026-02-16 17:43:39 -05:00 by yindo · 6 comments
Owner

Originally created by @brendandebeasi on GitHub (Jan 7, 2026).

Originally assigned to: @rekram1-node on GitHub.

opencode-config.json

Description

Session titles stopped being auto-generated around Jan 5-6. All new sessions remain stuck on "New session - [timestamp]" instead of getting descriptive titles.

Older sessions (before Jan 5) have proper auto-generated titles like "Optimizing shell directory autocomplete" and "Debugging KeyError: 'multi' in fetch_roms", but every session since then just shows the default timestamp.

Title generation appears to silently fail. Looking at the code, summary.ts (~line 84) may be missing null checks that exist in prompt.ts (~line 1579):

// summary.ts - no safety check
const agent = await Agent.get("title")
const stream = await LLM.stream({
  agent,
  model: agent.model ? ...  // crashes if agent is undefined
})

// prompt.ts - has safety check  
const agent = await Agent.get("title")
if (!agent) return

Plugins

oh-my-opencode

OpenCode version

1.1.6

Steps to reproduce

  1. Start OpenCode TUI
  2. Create a new session
  3. Send a message
  4. Session title remains "New session - [timestamp]"

Screenshot and/or share link

Image

Operating System

macOS

Terminal

Ghostty

Originally created by @brendandebeasi on GitHub (Jan 7, 2026). Originally assigned to: @rekram1-node on GitHub. [opencode-config.json](https://github.com/user-attachments/files/24484094/opencode-config.json) ### Description Session titles stopped being auto-generated around Jan 5-6. All new sessions remain stuck on "New session - [timestamp]" instead of getting descriptive titles. Older sessions (before Jan 5) have proper auto-generated titles like "Optimizing shell directory autocomplete" and "Debugging KeyError: 'multi' in fetch_roms", but every session since then just shows the default timestamp. Title generation appears to silently fail. Looking at the code, `summary.ts` (~line 84) may be missing null checks that exist in `prompt.ts` (~line 1579): ```typescript // summary.ts - no safety check const agent = await Agent.get("title") const stream = await LLM.stream({ agent, model: agent.model ? ... // crashes if agent is undefined }) // prompt.ts - has safety check const agent = await Agent.get("title") if (!agent) return ``` ### Plugins oh-my-opencode ### OpenCode version 1.1.6 ### Steps to reproduce 1. Start OpenCode TUI 2. Create a new session 3. Send a message 4. Session title remains "New session - [timestamp]" ### Screenshot and/or share link <img width="3484" height="2368" alt="Image" src="https://github.com/user-attachments/assets/594ab3c8-adb7-4d9d-885c-63d07bf4ee93" /> ### Operating System macOS ### Terminal Ghostty
yindo closed this issue 2026-02-16 17:43:39 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 7, 2026):

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

  • #6819: Session titles are not being set
  • #3451: Session title not working correctly since 0.15.15

Both of these issues report the same behavior where session titles fail to auto-generate and remain stuck on the default 'New session - timestamp' format.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 7, 2026): This issue might be a duplicate of existing issues. Please check: - #6819: Session titles are not being set - #3451: Session title not working correctly since 0.15.15 Both of these issues report the same behavior where session titles fail to auto-generate and remain stuck on the default 'New session - timestamp' format. Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Jan 7, 2026):

What provider are u using?

@rekram1-node commented on GitHub (Jan 7, 2026): What provider are u using?
Author
Owner

@brendandebeasi commented on GitHub (Jan 7, 2026):

@rekram1-node Attached full opencode config json to ticket. Models are:

"model": "anthropic/claude-opus-4-5-20251101",
"small_model": "google/gemini-3-flash",
@brendandebeasi commented on GitHub (Jan 7, 2026): @rekram1-node Attached full opencode config json to ticket. Models are: ``` "model": "anthropic/claude-opus-4-5-20251101", "small_model": "google/gemini-3-flash", ```
Author
Owner

@rekram1-node commented on GitHub (Jan 7, 2026):

bug w/ google models ill fix shortly

@rekram1-node commented on GitHub (Jan 7, 2026): bug w/ google models ill fix shortly
Author
Owner

@rekram1-node commented on GitHub (Jan 7, 2026):

fixed in next release:
https://github.com/anomalyco/opencode/commit/2e4fe973c966af45ea67c1d9ff8fd3b6251e960f

@rekram1-node commented on GitHub (Jan 7, 2026): fixed in next release: https://github.com/anomalyco/opencode/commit/2e4fe973c966af45ea67c1d9ff8fd3b6251e960f
Author
Owner

@Jokcy commented on GitHub (Jan 19, 2026):

Still getting this issue when using z.ai coding plan with glm-4.7

@Jokcy commented on GitHub (Jan 19, 2026): Still getting this issue when using z.ai coding plan with glm-4.7
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4395