Skip to content

Feature Request: Add ability to rename sessions #19202

@gilbertolaus

Description

@gilbertolaus

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

/rename my-aws-migration

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.

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions