opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Session name is not computed

Open jamilraichouni opened this issue 1 month ago • 3 comments

Question

Hi!

A couple of weeks ago I started to use opencode and enjoyed, that session names have been computed automatically. This is something that is mentioned in the official docs, below the list of models here:

https://opencode.ai/docs/zen#pricing

Now, when I send a first request at the start of a conversation/ session and receive the response, the session title stays generic like New session - 2025-12-06T10:41:06.752Z.

Does anybody know, what can stop this functionality?

I use OpenCode 1.0.134 with Zen and have the following set of models activated:

Image

Thanks, Jamil

jamilraichouni avatar Dec 06 '25 10:12 jamilraichouni

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

  • #4040: Session auto naming - Another report that session auto-naming functionality stopped working
  • #5097: When use vertex models (like gemini 3 pro preview) no session name generated - Similar issue but specific to vertex AI models

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

github-actions[bot] avatar Dec 06 '25 10:12 github-actions[bot]

To add some information:

I could fix it because I was pointed to a similar issue: https://github.com/sst/opencode/issues/4040

It is not working when I use the following setting in ~/.config/opencode/opencode.json:

"small_model": "anthropic/claude-3-5-haiku-latest"

and it is working now with:

"small_model": "opencode/claude-3-5-haiku"

Why Claude Haiku 3.5 is not working when using anthropic as provider is unclear to me.

jamilraichouni avatar Dec 06 '25 11:12 jamilraichouni

Okay so the reason it isnt working for you is because the gpt 5 nano is the model we use for title gen if you are using zen and we arent syncing settings (which is basically a bug)

As for the anthropic one, I dont think your model id is correct, I believe that -latest is invalid, if you drop that it should work

You can view the models you can use using the following command in your terminal:

opencode models

rekram1-node avatar Dec 06 '25 17:12 rekram1-node

Thanks, good point!

jamilraichouni avatar Dec 07 '25 14:12 jamilraichouni