Repository navigation
Description
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.
Activity
github-actions commentedon Aug 24, 2025
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
cgmalone-ib commentedon Aug 24, 2025
👎
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.
cesarvarela commentedon Aug 29, 2025
Lol, I've been seeing this for weeks already; I'm going to tattoo it next to the "you are absolutely right!" one.
cesarvarela commentedon Sep 20, 2025
Again:
(I'm not using Selenium or whatever Beautiful Soup is on any of my projects)
dvg-p4 commentedon Oct 1, 2025
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.
cesarvarela commentedon Oct 4, 2025
Still happens on 2.0
How is this labeled as an enhancement?
dvg-p4 commentedon Oct 4, 2025
I think they dogfood their own AI tools to manage issue tags
dvg-p4 commentedon Oct 4, 2025
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")
arthurwolf commentedon Oct 12, 2025
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).github-actions commentedon Dec 7, 2025
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.
github-actions commentedon Jan 9, 2026
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.
github-actions commentedon Jan 16, 2026
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.