Skip to main content
Rename a session with a friendly title so session list reads like a menu of tasks instead of a wall of ids.

Quick Start

1

Rename from the CLI

2

Rename from Python

3

List β€” the friendly title now shows

4

Clear the title later


How It Works

The CLI resolves the id, then writes the title into session metadata β€” canonical store first, legacy store as fallback. The title lands in metadata["title"] via the same locked read-modify-write path as update_session_metadata, and surfaces in each list_sessions() row under the "title" key (None when never renamed).

User Interaction Flow

Three sessions today, three UUIDs β€” no idea which is which. Rename each one and the next session list becomes a menu you can scan. Before:
After:
The id never changes β€” session resume 4f9a8c72-... still works. The title is display-only metadata.

Choose Your Path

Pick the entry point that matches what you need.

Configuration Options

SDK β€” rename_session

Returns: bool β€” True when the metadata write succeeded. Title precedence when rendering a name: explicit metadata["title"] β†’ agent_name β†’ first user-message snippet β†’ id. Sessions without a title stay fully resolvable and resumable by id β€” this change is purely additive display metadata.

Reading the title back


Best Practices

Prefer fix-auth-bug or blog-post-draft over test / session 2. The title is what future-you will scan for in session list.
Renaming does not change the session id. Any praisonai session resume <id> invocation, script, or bookmark keeps working. The title is metadata, not a new address.
praisonai session rename <id> "" removes the title. session list falls back to the agent name, then the first user-message snippet, then the id.
If praisonai session list shows a session but it lives only in the legacy store, session rename still works β€” it falls back to SessionManager.rename and persists the title in the legacy metadata.name field.

Session

Full CLI reference for all session subcommands

Session Resume

Continue a previous conversation by id