Skip to content

fix: resolve NoChangeError tool name interpolation and typo#309709

Open
Jah-yee wants to merge 1 commit intomicrosoft:mainfrom
Jah-yee:fix/NoChangeError-message
Open

fix: resolve NoChangeError tool name interpolation and typo#309709
Jah-yee wants to merge 1 commit intomicrosoft:mainfrom
Jah-yee:fix/NoChangeError-message

Conversation

@Jah-yee
Copy link
Copy Markdown

@Jah-yee Jah-yee commented Apr 14, 2026

Good day,

Thank you for your work on this project. I hope this small fix is helpful. Please let me know if there's anything to adjust.

Summary

Fixes two issues in the NoChangeError message:

  1. Broken template interpolation: The original code uses single quotes for a string containing ${ToolName.ReadFile}, but JavaScript template literals require backticks for interpolation. The model literally receives the text ${ToolName.ReadFile} instead of read_file.

  2. Typo: Fixed duplicate "and" in "re-read the file and and determine" → "re-read the file and determine".

Changes

  • Changed:Use the ${ToolName.ReadFile} tool to re-read the file and and determine

  • To: Use the read_file tool to re-read the file and determine

This error message is shown when the replace_string_in_file tool produces no actual change. The garbled tool name prevented the model from following the recovery instruction to re-read the file.

Warmly, RoomWithOutRoof

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants