What
The Edit tool can replace every place a piece of text appears in a file when replace_all is set. Those edits are now treated differently:
- The Edit result now carries a
replacesEveryMatchfield. It is true whenreplace_allis set andold_string, the text being replaced, is not empty. - When such an edit asks for permission, the option to approve edits for the rest of the session is turned off. A notice explains it, starting
One-time Yes only: places not shown.
Why
A replace-all edit can change places in the file that the prompt does not show you. You now have to approve each one, instead of allowing them for the rest of the session.
Names in the bundlereplacesEveryMatchreplace_all
Documented inclaude-code/agent-sdk/python