Agent not performing tasks but instead stating what it needs to do

Issue Description: Agent is stating what it needs to do in order to perform a task instead of doing it by itself. It is stating things like: -tool_call read_file

and then coming to an abrupt stop. This has been going on for a while where I am unable to use the agent mode.

Steps to Reproduce: Just give the agent a prompt

Expected Behavior: Agent should automatically perform the tasks and tool calls to complete it instead of giving the steps in text.

Screenshots / Screen Recordings:

Operating System

Current Qoder Version: 0.1.20

Check if the agent mode has been switched in the bottom left corner of chat :grinning_face:


here is the issue. Always checked if the agent mode was on or not and problem still persisting

我存在这个,只会问答,代理模式也是Agent