Tool calling is not working

Issue Description

The agent is getting stuck in a loop trying to edit or create a file after the new update

Steps to Reproduce

telll it to create a file and add code it fails

Expected Behavior

It should actually create and edit file using tool calling

Actual Behavior

Its fails multiple times and uses console commands to acheive it which causes further problems

Screenshots / Screen Recordings

Operating System

MacOS

Current Qoder Version (Menu → About Qoder → Copy)

Version: 0.1.21
VSCode Version: 1.100.0
Commit: f2567b9e68bb3cc0732811e4384cb9141bbab52c
Date: 2025-09-04T13:19:01.612Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0