Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

During long dialogues or editing of large files, the oldStr parameter of the strReplace tool may be truncated, resulting in an inability to match the file content

Open kinght1510 opened this issue 10 months ago • 1 comments

Before opening, please confirm:

Operating System

Windows11

Kiro Version

Kiro:0.8.86

Bug Description

Problem: When editing long dialogues or large files, the oldStr parameter of the strReplace tool is truncated, resulting in a failure to match the content of the file. Scenario: When attempting to modify a large Vue file with a long dialogue, it is expected that the tool should be able to pass the parameters completely or provide a clear error prompt when truncating. This issue often occurs during code generation, causing AI to get stuck in a certain file and unable to continue execution. UserID:d-9067c98495.e4d82478-e041-7080-f3d6-04da890aa8c0

Steps to Reproduce

Problem: When editing long dialogues or large files, the oldStr parameter of the strReplace tool is truncated, resulting in a failure to match the content of the file. Scenario: When attempting to modify a large Vue file with a long dialogue, it is expected that the tool should be able to pass the parameters completely or provide a clear error prompt when truncating. This issue often occurs during code generation, causing AI to get stuck in a certain file and unable to continue execution. UserID:d-9067c98495.e4d82478-e041-7080-f3d6-04da890aa8c0

Expected Behavior

Problem: When editing long dialogues or large files, the oldStr parameter of the strReplace tool is truncated, resulting in a failure to match the content of the file. Scenario: When attempting to modify a large Vue file with a long dialogue, it is expected that the tool should be able to pass the parameters completely or provide a clear error prompt when truncating. This issue often occurs during code generation, causing AI to get stuck in a certain file and unable to continue execution. UserID:d-9067c98495.e4d82478-e041-7080-f3d6-04da890aa8c0

Conversation ID

UserID:d-9067c98495.e4d82478-e041-7080-f3d6-04da890aa8c0

Additional Context

No response

kinght1510 avatar Jan 13 '26 10:01 kinght1510

facing same issue multiple times a day

Hitesh-Sisara avatar Apr 01 '26 20:04 Hitesh-Sisara