Skip to content

[FEATURE]: Auto-refresh session titles from current context #17631

Closed

Description

@danielwolfman
  • 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.

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 15, 2026
  2. github-actions commented on Mar 15, 2026

    @github-actions
    Contributor

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

    Please review these issues and comment if yours is distinct enough to warrant a separate tracking issue.

  3. danielwolfman commented on Mar 15, 2026

    @danielwolfman
    Author

    I already have a working branch for this on my fork: danielwolfman/opencode, branch feat/auto-session-summary.

    It adds:

    • recurring session title refresh from current conversation context
    • no auto-retitle after a manual rename
    • an ad hoc /summarize command to trigger session summarization

    Happy to open a PR if this direction looks good.

  4. assigned and unassigned on Apr 26, 2026
  5. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  6. YoungJurry commented on May 23, 2026

    @YoungJurry

    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:

    "plugin": ["opencode-session-auto-rename"]

    Supports configurable interval, model, and title length via optional config file. Built entirely using OpenCode. Feedback and PRs welcome! 😄

  7. fede-ciliberti commented on Jun 6, 2026

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

  8. maltuned commented on Jul 19, 2026

    @maltuned

    +1 for a manual trigger. And it will be convenient if we implement it as an improvement on the existing /rename command, similar to #9398.

  9. ch-arslanahmad commented on Sep 15, 2026

    @ch-arslanahmad

    +1 useful feature...

  10. neriousy commented on Oct 22, 2026

    @neriousy
    Member

    There is /rename

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions