Context Issues in Chat Mode

Describe the Bug

When the user pastes code or file content into the conversation, the AI (Claude) frequently cannot see the content. Specifically:
Symptoms:
AI responds with “I don’t see the code you’re referring to”
AI asks multiple times to see the same file
AI continues working with outdated versions of files despite new pastes
Pattern:
Happens most frequently with larger code blocks
Occurs even when the user confirms they’ve pasted the content
The AI can see some code blocks but not others in the same conversation
Specific Examples:
When working on main.py, multiple pastes were needed
During calendar sync implementation, had to repeat file contents several times
Recent issue with auth.py where changes weren’t visible despite being pasted
Impact:
Breaks conversation flow
Requires multiple attempts to share code
Forces repetition of information
Makes debugging more difficult
Reproduction:
Occurs in both direct file pastes and code block formatting
Happens across different file types (Python, YAML, etc.)
Consistent across different sessions
Would you like me to provide more specific examples or details for the bug report?

Steps to Reproduce

There are no direct steps, this condition just “appears”

Expected Behavior

Expected Behavior:
Code Sharing:
When a user pastes code or file content, the AI should immediately see and acknowledge it
Code blocks should be visible to the AI in their entirety
Special formatting (like <especially_relevant_code_snippet>) should be properly parsed
Context Retention:
The AI should maintain awareness of all shared code throughout the conversation
Updates to previously shared files should be recognized when pasted again
The AI should be able to reference and compare different versions of code
File Visibility:
All file types should be equally visible (Python, YAML, JSON, etc.)
Both small and large code blocks should be fully accessible
Formatting and indentation should be preserved
Conversation Flow:
No need for multiple attempts to share the same code
No requests from the AI to “see the code again”
Seamless discussion of code changes without visibility issues
IDE Integration:
Code pasted from Cursor.com’s IDE should be immediately visible to the AI
Formatting from the IDE should be preserved in the conversation

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 0.44.5
VSCode Version: 1.93.1
Commit: 1d610252e6812bf33245763f0742a534fd0f1d90
Date: 2024-12-20T00:02:28.554Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0

Additional Information

The current file visibility issue in Cursor.com significantly impacts the efficiency and cost-effectiveness of using Claude AI for code development. When code snippets and file contents aren’t correctly transmitted to the AI, multiple attempts to share the same information are forced, leading to redundant interactions that consume the limited message quota available to premium subscribers. This disrupts the natural flow of development conversations and wastes valuable credits on repeated attempts to share code that should have been visible in the first transmission. The need to repeatedly paste and verify code visibility creates unnecessary friction in the development process and artificially inflates the usage count against the subscriber’s premium AI model allowance. A properly functioning integration should allow seamless, one-time sharing of code snippets and file contents, ensuring subscribers get full value from their premium subscription without depleting their message quota by technical communication issues.

Does this stop you from using Cursor

No - Cursor works, but with this issue

I did state this was a Chat issue, but I should also mention that this is NOT an issue in Compose mode; that is an important distinction in that perhaps Chat mode is not intended to work this way; that is the point entirely of Compose.

This is evidenced here: Feature/25 cicd implementation by garotm · Pull Request #26 · fleXRPL/RunOn · GitHub