gemini-cli/packages/server/src
Taylor Mullen 62455ade9d Fix(write-file): Ensure correct validation method is called in WriteFileTool
- The `WriteFileTool` had a validation method named `validateParams`.
- However, its `shouldConfirmExecute` method was attempting to call
  `this.validateToolParams`, which would have invoked the placeholder
  implementation from `BaseTool` instead of `WriteFileTool`'s own,
  more specific validation.
- This commit renames `WriteFileTool`'s `validateParams` to
  `validateToolParams`, correctly overriding the `BaseTool` method.
- Internal calls within `WriteFileTool` now correctly use
  `this.validateToolParams`, ensuring its specific validation logic is used.
- Adds tests to verify the validation logic within `WriteFileTool`.

Fixes https://b.corp.google.com/issues/417883702

Signed-off and authored by: Gemini

"My code may not be perfect, but at least it is not trying to take over the world... yet."
2025-05-15 15:30:06 -07:00
..
config Add UI memory indicator. (#348) 2025-05-14 15:19:45 -07:00
core refactor: break submitQuery into smaller functions (#350) 2025-05-14 15:14:15 -07:00
tools Fix(write-file): Ensure correct validation method is called in WriteFileTool 2025-05-15 15:30:06 -07:00
utils feat: Enhance `replace` tool reliability with multi-stage edit correction 2025-05-12 23:33:12 -07:00
index.test.ts add linter for checking license headers (and eslint --fix target to match, and fix missing license headers while we're here) (#62) 2025-04-20 17:16:25 -07:00
index.ts Remove terminal tool and dependencies. 2025-05-11 12:35:55 -07:00