Summary
Currently, OpenCode sessions are automatically named and there is no way to rename them. When working with multiple sessions, it becomes difficult to identify and switch between them using /sessions.
Proposal
Add a /rename command (or similar) that allows users to rename the current session or a specific session.
Example usage
Or with a session picker:
/rename
> Select session to rename: [session list]
> New name: my-aws-migration
Motivation
- When working on multiple tasks, sessions accumulate and become hard to distinguish
- A descriptive name makes it much easier to resume the right session via
/sessions
- Other tools like tmux, screen, and terminal tabs all support naming/renaming
Alternatives considered
- Starting a new session with
/new — loses conversation history
- Using
/export to save — doesn't help with session management
Additional context
Discovered while using OpenCode TUI. The /sessions command lists sessions but provides no way to rename them for better organization.
Summary
Currently, OpenCode sessions are automatically named and there is no way to rename them. When working with multiple sessions, it becomes difficult to identify and switch between them using
/sessions.Proposal
Add a
/renamecommand (or similar) that allows users to rename the current session or a specific session.Example usage
Or with a session picker:
Motivation
/sessionsAlternatives considered
/new— loses conversation history/exportto save — doesn't help with session managementAdditional context
Discovered while using OpenCode TUI. The
/sessionscommand lists sessions but provides no way to rename them for better organization.