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
[FEATURE]: Auto-refresh session titles from current context #17631
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
OpenCode currently generates a session title from how the conversation starts, but the title can drift out of date as the session changes direction. I'd like OpenCode to periodically regenerate the session title from current conversation context so it stays useful, while stopping automatic retitling as soon as the user manually renames the session.
It would also help to expose a direct /summarize slash command in the prompt so users can trigger session compaction / summarization on demand without going through the command palette.
Reacted by Igor Morozov, Antoine Brûlé, Felipe Santos and Fede Ciliberti
+1, same use case here. I often open a session with a short greeting ("hola", "hi") before getting to the actual task, and the title ends up being the literal greeting — which makes /sessions hard to scan when reviewing past work.
I'd also vote for a manual trigger (CTRL+R or a /retitle slash command) in addition to the auto-refresh, since the auto interval is sometimes wrong and the user knows best when a rename is actually warranted.
Activity
github-actions commentedon Mar 15, 2026
This issue might be a duplicate of existing issues. Please check:
/renamecommand to be AI powered #9398: Requests an AI-powered/renamecommand for sessions — related to on-demand title regenerationPlease review these issues and comment if yours is distinct enough to warrant a separate tracking issue.
danielwolfman commentedon Mar 15, 2026
I already have a working branch for this on my fork:
danielwolfman/opencode, branchfeat/auto-session-summary.It adds:
/summarizecommand to trigger session summarizationHappy to open a PR if this direction looks good.
YoungJurry commentedon May 23, 2026
I built a plugin that implements exactly this: opencode-session-auto-rename 📦
Auto-renames sessions with AI-generated titles after every N messages.
👉 npm:
opencode-session-auto-rename👉 GitHub: https://github.com/smithyyang/opencode-session-auto-rename
Install with one line:
Supports configurable interval, model, and title length via optional config file. Built entirely using OpenCode. Feedback and PRs welcome! 😄
fede-ciliberti commentedon Jun 6, 2026
+1, same use case here. I often open a session with a short greeting ("hola", "hi") before getting to the actual task, and the title ends up being the literal greeting — which makes
/sessionshard to scan when reviewing past work.I'd also vote for a manual trigger (CTRL+R or a
/retitleslash command) in addition to the auto-refresh, since the auto interval is sometimes wrong and the user knows best when a rename is actually warranted.maltuned commentedon Jul 19, 2026
+1 for a manual trigger. And it will be convenient if we implement it as an improvement on the existing
/renamecommand, similar to #9398.ch-arslanahmad commentedon Sep 15, 2026
+1 useful feature...
neriousy commentedon Oct 22, 2026
There is
/rename