Skip to content

[Feature] Add /rename command to rename the current session #60

@Prodesire

Description

@Prodesire

Problem or Motivation

When working with multiple sessions, the only way to identify a session is by its auto-generated UUID (e.g., 4518f874-0c83-4e0e-a0da-043000c4a46a) or the truncated first/last prompt text shown in the /resume picker. This makes it difficult to quickly locate and switch between sessions, especially when working on multiple tasks across interleaved deployments.

Tools like Codex and Claude Code support renaming sessions to give them human-readable names, which greatly improves session management UX.

Related: #59

Proposed Solution

Add a /rename slash command that allows users to rename the current session with a custom title.

Usage 1: Inline rename

Directly provide the new name as an argument:

> /rename deploy-fix-prod
Session renamed to: deploy-fix-prod

Usage 2: Interactive rename

When no argument is provided, prompt the user to enter a new name:

> /rename
Enter new session name: deploy-fix-prod
Session renamed to: deploy-fix-prod

After renaming, the custom name should be visible in:

  • The welcome banner when resuming the session
  • The exit message alongside the resume command
  • The /resume session picker

Alternatives Considered

  • /name command: Functionally identical; /rename is preferred as it aligns with the verb used by Codex and Claude Code, and is more intuitive (you're renaming an existing session, not naming a new one).
  • Auto-generated names from first prompt: Already partially implemented via first_prompt in the session index, but auto-titles are often too long or not meaningful enough for quick identification.

Related Area

CLI / Interactive Mode

Additional Context

This is a subset of the broader session management improvements discussed in #59.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions