-
Notifications
You must be signed in to change notification settings - Fork 18.2k
[BUG] View tool mangles XML tags #866
Copy link
Copy link
Closed
Labels
autocloseIssue will be closed automaticallyIssue will be closed automaticallybugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existsplatform:linuxIssue specifically occurs on LinuxIssue specifically occurs on Linux
Description
Environment
- Platform (select one):
- Anthropic API
- AWS Bedrock
- Google Vertex AI
- Other:
- Claude CLI version: claude/v1.5.0
- Operating System: Linux 6.11.7-x64v3-xanmod1
- Terminal: Bash
Bug Description
XML tag discrepancy between hex view and text view when working with XML files. The system appears to be replacing certain XML tags when they're displayed in text output.
Steps to Reproduce
- Create or access an XML file with short tag names (e.g.,
<name>tags) - View the file using the View tool or cat command, which shows
<n>tags - Examine the same file with a hex editor (xxd), which reveals the actual content has
<name>tags - Create a new file based on what you see in the View tool
- The resulting file shows discrepancy between what was intended and what was actually written
Expected Behavior
Tools should display XML tags exactly as they appear in the file, without any modification or substitution.
Actual Behavior
- Text view (using View tool or cat) shows
<n>tags - Hex view (using xxd) shows
<name>tags for the same elements - When writing new files based on what's shown in the text view, the system maintains this inconsistency
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
autocloseIssue will be closed automaticallyIssue will be closed automaticallybugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existsplatform:linuxIssue specifically occurs on LinuxIssue specifically occurs on Linux