[Bug] Incorrect Session Summaries with Cross-Contaminated Metadata
Bug Description
Bug Report + Feature Request: Session Summarization Issues & Custom Session Naming
Bug Report: Incorrect Auto-Generated Session Summaries
The /resume command shows factually incorrect auto-generated session descriptions that misrepresent the actual work performed.
Critical Bug Examples:
- Multiple sessions showing "Debugging Python Web Scraper with Selenium and BeautifulSoup"
- Reality: No Python development has ever been done in this environment - this is a DevOps/Infrastructure project focused on Spring Boot + React + AWS
- Sessions show "Debugging Python Web Scraper with Selenium and Requests", "...with Proxy", etc.
- Actual work: Jenkins pipelines, Kubernetes, Terraform, SonarQube integration, authentication systems
Additional Summarization Issues:
- Generic descriptions like "testing status", "bootstrap", "This session is being continued from a previo..."
- Truncated summaries that provide no useful context
- No correlation between summary content and actual conversation topics
Impact of Bug
This bug has serious implications for:
- Session Management: Cannot identify or resume relevant work sessions
- Project Tracking: Misleading summaries make it impossible to track actual progress
- Professional Use: Incorrect summaries undermine confidence in Claude Code for enterprise work
- Data Integrity: Session metadata becomes unreliable for any workflow automation
Root Cause Analysis
The auto-summarization appears to be:
- Cross-contaminating between different users' sessions or projects
- Using incorrect context or training data for summary generation
- Not properly analyzing the actual conversation content
- Possibly using cached or stale summary templates
Immediate Fix Needed
- Fix the summarization algorithm to accurately reflect conversation content
- Audit existing summaries - many may be incorrectly categorized
- Prevent cross-contamination between different projects/users
Long-term Solution: Custom Session Naming
While fixing the bug is critical, also add the ability to name/label Claude Code sessions with custom, user-defined descriptions to prevent future issues.
Implementation Options:
Option 1: Session Start Command
claude --session-name "Spring Boot RDS IAM Integration"
# or
claude /name "Spring Boot RDS IAM Integration"
Option 2: In-Session Naming
/session-name "Cypress E2E Testing Setup"
# or
/name "SonarQube Quality Gates Implementation"
Option 3: Session Marker Integration
Leverage the existing pattern some users already use:
/session-marker "authentication-breakthrough-20250824"
Benefits
- Improved Productivity: Quickly identify and resume specific work contexts
- Better Organization: Group related sessions by project, feature, or bug
- Enhanced Collaboration: Share meaningful session references with team members
- Project Management: Track progress across multiple focused sessions
User Experience
Current Experience:
1. 23s ago 13m ago 139 - testing status
2. 13m ago 16m ago 17 - testing status line
3. 16m ago 21m ago 16 - Statusline Setup: Minimal Git Branch Display
4. 37m ago 8h ago 216 - This session is being continued from a previo...
Proposed Experience:
1. 23s ago 13m ago 139 - [MYPROJECT] Status Line Implementation
2. 13m ago 16m ago 17 - [MYPROJECT] Status Line Git Integration
3. 16m ago 21m ago 16 - [MYPROJECT] Statusline Setup: Git Branch Display
4. 37m ago 8h ago 216 - [MYPROJECT] Spring Boot Authentication Integration
Technical Implementation Notes
- Session metadata is stored in JSONL files at
~/.claude/projects/*/[uuid].jsonl - Each entry has a
summaryfield that could be user-controllable - Custom names should fallback to auto-generation if not provided
- Consider validation (length limits, character restrictions)
Use Cases
- Multi-project work:
[ProjectA] Feature Implementation,[ProjectB] Bug Investigation - Feature development:
Authentication System - Phase 1,Authentication System - Testing - Bug tracking:
BUG-123: Pipeline Failure Investigation,BUG-123: Fix Implementation - Learning sessions:
Learning Kubernetes,Docker Exploration - Team collaboration:
Code Review: PR-456,Pair Programming: Payment System
Priority Justification
This feature would significantly improve the developer experience for users who work on multiple projects or complex features across many sessions. The current auto-generated descriptions often provide little context for session identification and resumption.
Summary
This bug significantly impacts the usability of Claude Code for professional development work. The combination of fixing the summarization algorithm and adding user-controlled session naming would restore confidence in session management and enable proper project workflow organization.
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 1.0.89
- Feedback ID: 7dea5776-4586-408a-9fd3-6dea2a59093a
Errors
Note: Error logs were truncated.
12 Comments
---
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
---
👎
While the feature may be similar, in #2112, I agree this could be a duplicate FEATURE REQUEST.
The BUG is the summaries sometimes don't have anything to do with the session at all. It seems like if it doesn't know, it claims it's a python session.
More details in the issue that was submitted.
Lol, I've been seeing this for weeks already; I'm going to tattoo it next to the "you are absolutely right!" one.
<img width="839" height="49" alt="Image" src="https://github.com/user-attachments/assets/d7446e2c-5a2a-493f-bf48-8fde042ea525" />
Again:
<img width="1035" height="73" alt="Image" src="https://github.com/user-attachments/assets/717ccb91-680a-4964-a086-0f236a04953a" />
(I'm not using Selenium or whatever Beautiful Soup is on any of my projects)
This is now happening to me on Linux, with that exact description:
"Debugging Python Web Scraper with Selenium and BeautifulSoup"
despite the fact that the current project is not a web scraper, it doesn't use Selenium nor BeautifulSoup, and no project I've ever worked with Claude on has been a web scraper or used either of those tools.
My money's on this being a demo / test description that accidentally got shipped to prod as a fallback.
<img width="491" height="54" alt="Image" src="https://github.com/user-attachments/assets/ebe5fd91-a04d-4b03-88a3-abea28fac607" />
Still happens on 2.0
How is this labeled as an enhancement?
I think they dogfood their own AI tools to manage issue tags
Actually on second thought I think the tags are correct -- this ticket kinda combines a bug report ("descriptions should not be completely wrong") with a feature request ("you should be able to give a session a custom name")
I have the same issue, all my
.jsonlfiles in~/.claude/start with a first line that talks aboutDebugging Python Web Scraper with Selenium and BeautifulSoup, which sometimes results in confusion with my claude code talking about Selenium when the task has absolutely nothing to do with it (not 100% sure this is what is causing it or if it's just random, but it has happened twice over the past few months).This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.