request: ability to disable title generation (opencode run) #869

Closed
opened 2026-02-16 17:28:37 -05:00 by yindo · 11 comments
Owner

Originally created by @rekram1-node on GitHub (Jul 22, 2025).

Originally assigned to: @thdxr on GitHub.

2 use cases here:

  1. 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
  2. Some people may want to save $ on tokens, so they may just want to disable title generation across the board
Originally created by @rekram1-node on GitHub (Jul 22, 2025). Originally assigned to: @thdxr on GitHub. 2 use cases here: 1. 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 2. Some people may want to save $ on tokens, so they may just want to disable title generation across the board
yindo closed this issue 2026-02-16 17:28:37 -05:00
Author
Owner

@Explosion-Scratch commented on GitHub (Jul 23, 2025):

I second this - Not sure why this isn't already a thing.

@Explosion-Scratch commented on GitHub (Jul 23, 2025): I second this - Not sure why this isn't already a thing.
Author
Owner

@Explosion-Scratch commented on GitHub (Jul 23, 2025):

Might be related to #992

@Explosion-Scratch commented on GitHub (Jul 23, 2025): Might be related to #992
Author
Owner

@thdxr commented on GitHub (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

@thdxr commented on GitHub (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
Author
Owner

@rekram1-node commented on GitHub (Jul 30, 2025):

made pr: #1299

@rekram1-node commented on GitHub (Jul 30, 2025): made pr: #1299
Author
Owner

@timoclsn commented on GitHub (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).

@timoclsn commented on GitHub (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).
Author
Owner

@rekram1-node commented on GitHub (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

@rekram1-node commented on GitHub (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
Author
Owner

@rohitpaulk commented on GitHub (Oct 27, 2025):

--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.

@rohitpaulk commented on GitHub (Oct 27, 2025): `--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.
Author
Owner

@rekram1-node commented on GitHub (Oct 27, 2025):

ill add it

@rekram1-node commented on GitHub (Oct 27, 2025): ill add it
Author
Owner

@rekram1-node commented on GitHub (Oct 28, 2025):

will be in next release

@rekram1-node commented on GitHub (Oct 28, 2025): will be in next release
Author
Owner

@rohitpaulk commented on GitHub (Oct 28, 2025):

@rekram1-node thanks for the quick fix!

@rohitpaulk commented on GitHub (Oct 28, 2025): @rekram1-node thanks for the quick fix!
Author
Owner

@rekram1-node commented on GitHub (Oct 28, 2025):

no problem!

@rekram1-node commented on GitHub (Oct 28, 2025): no problem!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#869