refactor: Back use tools by default and disabling auto apply

This commit is contained in:
Petr Mironychev
2025-10-29 01:01:51 +01:00
parent 5a49a2e7eb
commit 00b7287e08

View File

@ -212,7 +212,7 @@ GeneralSettings::GeneralSettings()
"Enable tool use capabilities for the assistant(OpenAI function calling, Claude tools " "Enable tool use capabilities for the assistant(OpenAI function calling, Claude tools "
"and etc) " "and etc) "
"if plugin and provider support")); "if plugin and provider support"));
useTools.setDefaultValue(false); useTools.setDefaultValue(true);
allowFileSystemRead.setSettingsKey(Constants::CA_ALLOW_FILE_SYSTEM_READ); allowFileSystemRead.setSettingsKey(Constants::CA_ALLOW_FILE_SYSTEM_READ);
allowFileSystemRead.setLabelText(Tr::tr("Allow File System Read Access for tools")); allowFileSystemRead.setLabelText(Tr::tr("Allow File System Read Access for tools"));
@ -284,8 +284,11 @@ GeneralSettings::GeneralSettings()
auto caGroup = Group{ auto caGroup = Group{
title(TrConstants::CHAT_ASSISTANT), title(TrConstants::CHAT_ASSISTANT),
Column{caGrid, Column{
Column{useTools, allowFileSystemRead, allowFileSystemWrite, allowAccessOutsideProject, autoApplyFileEdits}, caGrid,
Column{
useTools, allowFileSystemRead, allowFileSystemWrite, allowAccessOutsideProject,
/*autoApplyFileEdits*/},
caTemplateDescription}}; caTemplateDescription}};
auto rootLayout = Column{ auto rootLayout = Column{