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 "
"and etc) "
"if plugin and provider support"));
useTools.setDefaultValue(false);
useTools.setDefaultValue(true);
allowFileSystemRead.setSettingsKey(Constants::CA_ALLOW_FILE_SYSTEM_READ);
allowFileSystemRead.setLabelText(Tr::tr("Allow File System Read Access for tools"));
@ -284,9 +284,12 @@ GeneralSettings::GeneralSettings()
auto caGroup = Group{
title(TrConstants::CHAT_ASSISTANT),
Column{caGrid,
Column{useTools, allowFileSystemRead, allowFileSystemWrite, allowAccessOutsideProject, autoApplyFileEdits},
caTemplateDescription}};
Column{
caGrid,
Column{
useTools, allowFileSystemRead, allowFileSystemWrite, allowAccessOutsideProject,
/*autoApplyFileEdits*/},
caTemplateDescription}};
auto rootLayout = Column{
Row{enableQodeAssist, Stretch{1}, Row{checkUpdate, resetToDefaults}},