Skip to content

Double dollar sign $$ silently collapsed to single $ in file read/write pipelineΒ #6884

@hexingjian-jst

Description

@hexingjian-jst

Before opening, please confirm:

Operating System

win32

Kiro Version

0.10.32

Bug Description

When generating new files based on reference files, all $$ are lost
Steering rules and documentation cannot fix this because the AI's perception of file content is already corrupted at the tool level
This affects any codebase that uses $$ as a naming convention (common in JavaScript)
Affected Tools

readFile
readCode
readMultipleFiles
Possibly fsWrite, strReplace, fsAppend (write path may also collapse $$)
Expected Behavior

File content should be returned and written verbatim, with no transformation of $$ to $.

Steps to Reproduce

When generating new files based on reference files, all $$ are lost
Steering rules and documentation cannot fix this because the AI's perception of file content is already corrupted at the tool level
This affects any codebase that uses $$ as a naming convention (common in JavaScript)
Affected Tools

readFile
readCode
readMultipleFiles
Possibly fsWrite, strReplace, fsAppend (write path may also collapse $$)
Expected Behavior

File content should be returned and written verbatim, with no transformation of $$ to $.

Expected Behavior

When generating new files based on reference files, all $$ are lost
Steering rules and documentation cannot fix this because the AI's perception of file content is already corrupted at the tool level
This affects any codebase that uses $$ as a naming convention (common in JavaScript)
Affected Tools

readFile
readCode
readMultipleFiles
Possibly fsWrite, strReplace, fsAppend (write path may also collapse $$)
Expected Behavior

File content should be returned and written verbatim, with no transformation of $$ to $.

Conversation ID

0a90ae21-7083-4e1d-9d9a-10a05a59923b
0a90ae21-7083-4e1d-9d9a-10a05a59923b
0a90ae21-7083-4e1d-9d9a-10a05a59923b
0a90ae21-7083-4e1d-9d9a-10a05a59923b
0a90ae21-7083-4e1d-9d9a-10a05a59923b

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions