[BUG] /resume does not display custom session names set by /rename

Resolved 💬 3 comments Opened Mar 19, 2026 by v-simoncui Closed Mar 22, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Bug Description

After renaming a session using /rename, the custom name is only displayed correctly for the current active session in the /resume list.
Previously renamed sessions revert to showing the first message content as the session title instead of the custom name.

## Steps to Reproduce

  1. Start a new Claude Code session
  2. Use /rename my-custom-name to rename the session
  3. Verify the name is set correctly
  4. Exit the session (/exit)
  5. Start a new session, then run /resume
  6. Observe that the previously renamed session no longer shows "my-custom-name" — it shows the first message content instead

## Expected Behavior

All sessions renamed via /rename should persistently display their custom names in the /resume session list.

## Actual Behavior

Only the most recent (current) session shows the custom name. Older renamed sessions fall back to displaying the first message content as the
title.

## Environment

  • Claude Code version: v2.1.72
  • Model: Opus 4.6 (1M context)
  • Platform: Linux (Ubuntu)
  • Shell: bash

What Should Happen?

## Expected Behavior

All sessions renamed via /rename should persistently display their custom names in the /resume session list.

Error Messages/Logs

Steps to Reproduce

## Steps to Reproduce

  1. Start a new Claude Code session
  2. Use /rename my-custom-name to rename the session
  3. Verify the name is set correctly
  4. Exit the session (/exit)
  5. Start a new session, then run /resume
  6. Observe that the previously renamed session no longer shows "my-custom-name" — it shows the first message content instead

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

v2.1.72

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗