Agent name lost when session continues from context compaction
Resolved 💬 4 comments Opened Apr 15, 2026 by kamil6x Closed Apr 18, 2026
Description
When a Claude Code session runs out of context and is continued into a new session (context compaction), the agent name assigned via the rename feature disappears. The name is no longer displayed on the right side of the screen.
Steps to reproduce
- Start a Claude Code session
- Rename the agent using the rename feature
- Verify the name displays on the right side of the screen
- Continue working until the session runs out of context and is auto-continued
- The agent name is gone — no longer displayed
Expected behavior
The agent name should persist across context compaction / session continuation.
Actual behavior
The name is lost and not carried over to the continued session.
Environment
- Claude Code v1.x (CLI)
- macOS Darwin 24.6.0
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗