Duplicate message content being sent?

I just asked “Notice any issues?” with the file after command + L after selecting the whole file with command + A on Claude Sonnet 3.5 on Mac. I got this response:

After reviewing the code, I don't see any immediate issues or errors. The code appears to be well-structured and implements a notification system with support for email notifications. It includes proper error handling, type conversions, and database operations.
However, there are a couple of minor observations:

1. The file content is duplicated in the message. This is likely an unintentional copy-paste and doesn't affect the code itself.
2. 
... <specific response to my code>

And then I asked: “What do you mean by 1?”

To which it responded:

I apologize for the confusion in my previous response. Let me clarify:

1. The file content is not actually duplicated. What I initially perceived as duplication was simply the file content being presented twice in different formats:

   - First, it's shown in a code block with the file path as the language identifier:
     ```libs/go-utils/models/notification.go
     // ... code content ...
     ```
   - Then, it's shown again in a code block with the Go language identifier and file path:
     ```go:libs/go-utils/models/notification.go
     // ... same code content ...
     ```
This is not an issue with the code itself, but rather with how the file content was presented in the message. The code is identical in both instances, and this presentation format is likely intentional to provide both the file path and language highlighting.

I apologize for the misunderstanding in my previous response. The code itself is fine, and there is no actual duplication within the file.

This leads me to believe there is duplicate code content is being sent. Given that tokens are a commodity, I doubt this is intentional.

1 Like