Skip to content

multi_replace_string_in_file requires explanation for each replacement which likely is confusing because of top-level explanation #289907

@ulugbekna

Description

@ulugbekna

repro:

  1. select two consecutive function declarations
  2. open chat, set haiku-4.5, and ask "add console log tracing for both function"
  3. haiku wants to use the multi_replace_string_in_file, it includes the explanation for the top-level field in the object, but doesn't include the explanation per replacement. So this resulted in multiple more requests despite the changes I needed could've already been resolved.

Can we make per-replacement (inner) explanation optional?

logs.gz

Image

Chat 0.37.2026012303

Version: 1.109.0-insider (Universal)
Commit: 490c747
Date: 2026-01-23T04:14:02.785Z
Electron: 39.2.7
ElectronBuildId: 13098910
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions