[Bug] Incorrect Session Summaries with Cross-Contaminated Metadata

Status Closed — not planned
Maintainer reply None cached
Activity 12 comments · opened Aug 24, 2025 · closed Jan 9, 2026

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:

  1. Session Management: Cannot identify or resume relevant work sessions
  2. Project Tracking: Misleading summaries make it impossible to track actual progress
  3. Professional Use: Incorrect summaries undermine confidence in Claude Code for enterprise work
  4. 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

  1. Fix the summarization algorithm to accurately reflect conversation content
  2. Audit existing summaries - many may be incorrectly categorized
  3. 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

  1. Improved Productivity: Quickly identify and resume specific work contexts
  2. Better Organization: Group related sessions by project, feature, or bug
  3. Enhanced Collaboration: Share meaningful session references with team members
  4. 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 summary field that could be user-controllable
  • Custom names should fallback to auto-generation if not provided
  • Consider validation (length limits, character restrictions)

Use Cases

  1. Multi-project work: [ProjectA] Feature Implementation, [ProjectB] Bug Investigation
  2. Feature development: Authentication System - Phase 1, Authentication System - Testing
  3. Bug tracking: BUG-123: Pipeline Failure Investigation, BUG-123: Fix Implementation
  4. Learning sessions: Learning Kubernetes, Docker Exploration
  5. 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.

View original on GitHub ↗

12 Comments

github-actions[bot] · 1 year ago

---

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/2112
  2. https://github.com/anthropics/claude-code/issues/5846
  3. https://github.com/anthropics/claude-code/issues/1985

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

---

cgmalone-ib · 1 year ago

👎
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.

  24. 2 days ago  2 days ago         319 -              Debugging Python Web Scraper with Selenium and Proxy
  25. 2 days ago  2 days ago         309 -              Debugging Python Web Scraper with Selenium and Requests
  26. 2 days ago  2 days ago         496 -              Debugging Python Web Scraper with Selenium and
  BeautifulSoup

More details in the issue that was submitted.

cesarvarela · 1 year ago

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" />

cesarvarela · 11 months ago

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)

dvg-p4 · 11 months ago

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 · 11 months ago

<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?

dvg-p4 · 11 months ago
How is this labeled as an enhancement?

I think they dogfood their own AI tools to manage issue tags

dvg-p4 · 11 months ago

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 · 10 months ago

I have the same issue, all my .jsonl files in ~/.claude/ start with a first line that talks about Debugging 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[bot] · 8 months ago

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[bot] · 7 months ago

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[bot] · 7 months ago

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.