aws / aws/amazon-q-developer-cli
bug: <Name> parsed to <n> when reading xml files
- Dominant language
- Rust
- Stars
- 2k
- Forks
- 439
- PR merge metrics
- No merged PRs in 30d
Description
### Checks
- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again
### Operating system
MacOS
### Expected behaviour
When passing files to Claude, Q should not alter the contents
### Actual behaviour
When reading files, the contents will be altered to remove common xml tags like ``. They will be replaced with ``.
### Steps to reproduce
I have the file `test.xml` in my directory:
```xml
Test
```
```
🤖 You are chatting with claude-4-sonnet
> read test.xml and tell me the tags within
> I'll read the test.xml file and identify the tags within it.
🛠️ Using tool: fs_read (trusted)
⋮
● Reading file: /Users/freddy.ouellette/dev/q-xml-tag-issue/test.xml, all lines
⋮
● Completed in 0.0s
> Based on the content of test.xml, I can see the following XML tags:
• - The root element that contains all other content
• - A nested element containing the text "Test"
The XML structure is simple with just two tags: a root Document element and a child n element with the value "Test".
```
I'm guessing that `` tags are being used in the response of the `fs_read` tool and are being parsed out of the file if they exist. There are probably other tags that are treated similarly like ``.
I understand the conflict exists but is there a way to resolve this issue? Parsing xmls with a common tag like `` will always end in bad results.
### Environment
```yaml
```
Contributor guide
Assessment
This issue has not been assessed yet.