"tool edit_file not found. Try switching to Agent mode"

When switching from Agent Mode to “Ask Mode”, quite often it writes

tool edit_file not found. Try switching to Agent mode

I am on a Mac M1 Pro.
Version: 0.49.5 (Universal)
VSCode Version: 1.96.2
Commit: fd861c8a80c0f9e4e35294b1915ee8a7b29ae850
Date: 2025-04-24T02:57:26.819Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 23.6.0

Same problem but it’s only happening in ‘gemini-2.5-pro-exp-03-25’ model.