Skip to content

TUI: add /rename command to set or change a session title #19412

Closed

Description

@gypsydave5

Feature Request

Summary

Add a /rename slash command (or equivalent) to the TUI that allows setting or changing the title of the current session interactively.

Motivation

Currently, session titles can only be set at creation time via the --title flag on opencode run. There is no way to title or rename a session from within the TUI. When listing sessions (/sessions), a title field is shown, but there is no way to populate or change it interactively.

Proposed solution

Add a /rename slash command (with a corresponding keybind, e.g. ctrl+x R) that prompts the user for a new title and updates the current session's title.

Example usage

/rename Fix auth bug in submission portal

Alternatives considered

  • Using opencode run --title at session start — works, but requires knowing the title upfront and only applies to non-interactive use
  • No workaround exists for renaming a session after it has started in the TUI

Activity

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

    @github-actions
    Contributor

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


    For keybind-related issues (your proposed ctrl+x R shortcut), please also check our pinned keybinds documentation: #4997

  3. gypsydave5 commented on Mar 27, 2026

    @gypsydave5
    Author

    Ugh - colour me stupid. Just found the slash command. Box of shame time.

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

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions