You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
request: ability to disable title generation (opencode run) #1237
When using opencode run I hardly ever want a title (I would say basically never), in these cases I'd prefer a truncated version of the prompt I sent to be used as title instead (of course it could just be New Session .... too << Not suggesting to disable title gen for this just saying I would at least like a flag to disable it
Some people may want to save $ on tokens, so they may just want to disable title generation across the board
Reacted by Viacheslav, Thomas, Timo Clasen, Art Shendrik, Nathan, Paul Kuruvilla, strawberrymelonpanda, Rahat Ibn Nabi, Vitaly X, Crikety and 2 more
changed the title [-]request: ability to disable title generation[/-][+]request: ability to disable title generation (`opencode run`)[/+]on Jul 23, 2025
these sessions still end up in your session list when running opencode normally. but we can probably add a flag. these use small models so the $ cost is very small
Or not just a flag to disable the title generation, but also the ability to add a custom title via the flag.
This way, one could use the custom title in plugins. My use case would be to skip desktop notifications for non-interactive runs (filter them out with a custom title).
--title seems like a good option here. Our use-case: we're running super short tasks that have long prompts (fix a syntax in this 20 line file, but with tons of rules), and we're using small models for the task too. The time it takes a small model to generate a title is comparable to the actual work that needs to be done, and we really don't need the title since this is a programmatic use-case.
Activity
[-]request: ability to disable title generation[/-][+]request: ability to disable title generation (`opencode run`)[/+]Explosion-Scratch commentedon Jul 23, 2025
I second this - Not sure why this isn't already a thing.
Explosion-Scratch commentedon Jul 23, 2025
Might be related to #992
thdxr commentedon Jul 23, 2025
these sessions still end up in your session list when running opencode normally. but we can probably add a flag. these use small models so the $ cost is very small
rekram1-node commentedon Jul 30, 2025
made pr: #1299
timoclsn commentedon Aug 8, 2025
Or not just a flag to disable the title generation, but also the ability to add a custom title via the flag.
This way, one could use the custom title in plugins. My use case would be to skip desktop notifications for non-interactive runs (filter them out with a custom title).
rekram1-node commentedon Aug 8, 2025
interesting use case, maybe the flag is --title and it defaults to your prompt if no argument provided
I think the team will probably have an opinion on that but I get what you are saying
rohitpaulk commentedon Oct 27, 2025
--titleseems like a good option here. Our use-case: we're running super short tasks that have long prompts (fix a syntax in this 20 line file, but with tons of rules), and we're using small models for the task too. The time it takes a small model to generate a title is comparable to the actual work that needs to be done, and we really don't need the title since this is a programmatic use-case.rekram1-node commentedon Oct 28, 2025
ill add it
rekram1-node commentedon Oct 28, 2025
will be in next release
rohitpaulk commentedon Oct 28, 2025
@rekram1-node thanks for the quick fix!
rekram1-node commentedon Oct 29, 2025
no problem!