Session auto naming #2668

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

Originally created by @zippeurfou on GitHub (Nov 7, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Session use to automatically have name but now it does not happen anymore, I can only rename them.
I did like when session would be auto named.

OpenCode version

1.0.39

Steps to reproduce

Create a new session type anything, leave and open open code again.

Screenshot and/or share link

Image

Operating System

macOS 15.7.1

Terminal

iTerm2

Originally created by @zippeurfou on GitHub (Nov 7, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Session use to automatically have name but now it does not happen anymore, I can only rename them. I did like when session would be auto named. ### OpenCode version 1.0.39 ### Steps to reproduce Create a new session type anything, leave and open open code again. ### Screenshot and/or share link <img width="543" height="536" alt="Image" src="https://github.com/user-attachments/assets/edf31abf-2fb3-429d-848e-cd882f006b23" /> ### Operating System macOS 15.7.1 ### Terminal iTerm2
yindo added the bug label 2026-02-16 17:36:43 -05:00
yindo closed this issue 2026-02-16 17:36:43 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 7, 2025):

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

  • #1389: Feature Request: Rename Session Title - Discusses similar concerns about session naming and requests ability to rename sessions manually
  • #1790: Feature Request: Edit session name - Specifically requests ability to manually set session names when auto-naming doesn't work properly
  • #3779: Session rename (via /rename or /session + ctrl-r) not working - Reports broken rename functionality in recent versions
  • #3655: Restore ability to rename sessions (CLOSED) - Previously reported missing rename functionality in OpenTUI version

Feel free to ignore if none of these address your specific case about automatic session naming no longer working.

@github-actions[bot] commented on GitHub (Nov 7, 2025): This issue might be a duplicate of existing issues. Please check: - #1389: Feature Request: Rename Session Title - Discusses similar concerns about session naming and requests ability to rename sessions manually - #1790: Feature Request: Edit session name - Specifically requests ability to manually set session names when auto-naming doesn't work properly - #3779: Session rename (via /rename or /session + ctrl-r) not working - Reports broken rename functionality in recent versions - #3655: Restore ability to rename sessions (CLOSED) - Previously reported missing rename functionality in OpenTUI version Feel free to ignore if none of these address your specific case about automatic session naming no longer working.
Author
Owner

@rekram1-node commented on GitHub (Nov 7, 2025):

@zippeurfou what model/provider do you primarily use? Some of them fail a lot more frequently than others

@rekram1-node commented on GitHub (Nov 7, 2025): @zippeurfou what model/provider do you primarily use? Some of them fail a lot more frequently than others
Author
Owner

@zippeurfou commented on GitHub (Nov 7, 2025):

@rekram1-node thanks for answering. I am using amazon bedrock as a provider.

@zippeurfou commented on GitHub (Nov 7, 2025): @rekram1-node thanks for answering. I am using amazon bedrock as a provider.
Author
Owner

@zippeurfou commented on GitHub (Nov 7, 2025):

I can confirm this does not happen when I use anthropic.
So this seems to be linked to bedrock.

Image
@zippeurfou commented on GitHub (Nov 7, 2025): I can confirm this does not happen when I use anthropic. So this seems to be linked to bedrock. <img width="552" height="137" alt="Image" src="https://github.com/user-attachments/assets/e7897e13-ae9e-422d-ab19-987ce5eca305" />
Author
Owner

@rekram1-node commented on GitHub (Nov 7, 2025):

@zippeurfou I think i can fix this pretty easily, but curious, if you look at this getsmallmodel function:
https://github.com/sst/opencode/blob/14397651b5e2a673aa069fb82eedb690c17eba4c/packages/opencode/src/provider/provider.ts#L598

Do you see any reason the model it selects would fail for you everytime? it is doing includes in the string matching so it wont send requests with a model that doesnt exist, but im not familiar with the bedrock flow, is it like azure where you need a specific setup for each model?

In the meantime you can set “small_model” in your opencode.json and it will use that model for title gen, you can run “opencode models” to see what models you have available

@rekram1-node commented on GitHub (Nov 7, 2025): @zippeurfou I think i can fix this pretty easily, but curious, if you look at this getsmallmodel function: https://github.com/sst/opencode/blob/14397651b5e2a673aa069fb82eedb690c17eba4c/packages/opencode/src/provider/provider.ts#L598 Do you see any reason the model it selects would fail for you everytime? it is doing includes in the string matching so it wont send requests with a model that doesnt exist, but im not familiar with the bedrock flow, is it like azure where you need a specific setup for each model? In the meantime you can set “small_model” in your opencode.json and it will use that model for title gen, you can run “opencode models” to see what models you have available
Author
Owner

@zippeurfou commented on GitHub (Nov 7, 2025):

I might be wrong but the model listed have different name in bedrock eg "amazon-bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0"
Could that be linked ?
That being said using a small model in my config did the trick. Thank you.

@zippeurfou commented on GitHub (Nov 7, 2025): I might be wrong but the model listed have different name in bedrock eg `"amazon-bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0"` Could that be linked ? That being said using a small model in my config did the trick. Thank you.
Author
Owner

@rekram1-node commented on GitHub (Nov 7, 2025):

@zippeurfou what i was trying to say is it'd handle that because it is doing "includes" checks rather than matches so it can't select a model that doesnt exist

@rekram1-node commented on GitHub (Nov 7, 2025): @zippeurfou what i was trying to say is it'd handle that because it is doing "includes" checks rather than matches so it can't select a model that doesnt exist
Author
Owner

@zippeurfou commented on GitHub (Nov 7, 2025):

I see, I think bedrock might be a bit different as you can see the list of models but when you try to access it you might get error if it is not enabled by the AMI. For example I can see a lot of models on bedrock when I list the models with the /model command that I can't actually select.

@zippeurfou commented on GitHub (Nov 7, 2025): I see, I think bedrock might be a bit different as you can see the list of models but when you try to access it you might get error if it is not enabled by the AMI. For example I can see a lot of models on bedrock when I list the models with the `/model` command that I can't actually select.
Author
Owner

@rekram1-node commented on GitHub (Nov 7, 2025):

Yeah that's prolly it I think a good default for bedrock then is always defaulting to the model u have selected instead of trying to find a "small" one

ofc if u set "small_model" we will respect it

@rekram1-node commented on GitHub (Nov 7, 2025): Yeah that's prolly it I think a good default for bedrock then is always defaulting to the model u have selected instead of trying to find a "small" one ofc if u set "small_model" we will respect it
Author
Owner

@zippeurfou commented on GitHub (Nov 7, 2025):

I am fine to close this issue. I am not sure there is an easy fix to it wdyt?

@zippeurfou commented on GitHub (Nov 7, 2025): I am fine to close this issue. I am not sure there is an easy fix to it wdyt?
Author
Owner

@rekram1-node commented on GitHub (Nov 7, 2025):

@zippeurfou ill close once I make a fix, easiest work around is to default to your currently selected model for title gen, and for azure that makes extra sense since each model needs a deployment (so gonna do this for azure + aws bedrock)

Ill just use this to track that change

@rekram1-node commented on GitHub (Nov 7, 2025): @zippeurfou ill close once I make a fix, easiest work around is to default to your currently selected model for title gen, and for azure that makes extra sense since each model needs a deployment (so gonna do this for azure + aws bedrock) Ill just use this to track that change
Author
Owner

@Thorium commented on GitHub (Nov 25, 2025):

I would like to have the --rename as parameter when starting opencode.

@Thorium commented on GitHub (Nov 25, 2025): I would like to have the --rename as parameter when starting opencode.
Author
Owner

@rekram1-node commented on GitHub (Nov 25, 2025):

@Thorium and what would your expected behavior be

Also is your issue similar to his^^ where the titles never gen?

@rekram1-node commented on GitHub (Nov 25, 2025): @Thorium and what would your expected behavior be Also is your issue similar to his^^ where the titles never gen?
Author
Owner

@Thorium commented on GitHub (Nov 25, 2025):

no, I'm using opencode 1.0,67 on Windows, and opencode 1.0.110 on Ubuntu, and both /rename works well. But it relies me to remember to name the session, I would like a script that renames a session to me when I start opencode, so that like a --port I could do --rename so that if I have 2 specialized agents in parallel, and I'll try to spin an old session, I don't struggle to identify who was who.

@Thorium commented on GitHub (Nov 25, 2025): no, I'm using opencode 1.0,67 on Windows, and opencode 1.0.110 on Ubuntu, and both `/rename` works well. But it relies me to remember to name the session, I would like a script that renames a session to me when I start opencode, so that like a `--port` I could do `--rename` so that if I have 2 specialized agents in parallel, and I'll try to spin an old session, I don't struggle to identify who was who.
Author
Owner

@rekram1-node commented on GitHub (Nov 25, 2025):

But it relies me to remember to name the session

I don't understand why do you have to remember to name it?

@rekram1-node commented on GitHub (Nov 25, 2025): > But it relies me to remember to name the session I don't understand why do you have to remember to name it?
Author
Owner

@JaredEzz commented on GitHub (Dec 23, 2025):

I'm also having this problem using Gemini 3 Flash Preview

@JaredEzz commented on GitHub (Dec 23, 2025): I'm also having this problem using Gemini 3 Flash Preview
Author
Owner

@rekram1-node commented on GitHub (Dec 23, 2025):

@JaredEzz what provider are you using?

consider setting small_model in your opencode config!

@rekram1-node commented on GitHub (Dec 23, 2025): @JaredEzz what provider are you using? consider setting `small_model` in your opencode config!
Author
Owner

@yungjakey commented on GitHub (Dec 27, 2025):

i have the same issue for

{
  "$schema": "https://opencode.ai/config.json",
  "theme": "transparent",
  "autoupdate": false,
  "model": "github-copilot/claude-sonnet-4.5",
  "small_model": "github-copilot/gemini-3-flash-preview",
}

changing small model to, e.g. some google model does not work either.

edit:

opencode --version
1.0.202
@yungjakey commented on GitHub (Dec 27, 2025): i have the same issue for ```json { "$schema": "https://opencode.ai/config.json", "theme": "transparent", "autoupdate": false, "model": "github-copilot/claude-sonnet-4.5", "small_model": "github-copilot/gemini-3-flash-preview", } ``` changing small model to, e.g. some google model does not work either. edit: ```bash opencode --version 1.0.202 ```
Author
Owner

@yogeek commented on GitHub (Feb 5, 2026):

@rekram1-node is it fixed please ? because I have the same issue in opencode 1.1.51 (github copilot provider)

@yogeek commented on GitHub (Feb 5, 2026): @rekram1-node is it fixed please ? because I have the same issue in opencode 1.1.51 (github copilot provider)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2668