refactor: Change handling finished tools and thinking blocks

This commit is contained in:
Petr Mironychev
2025-11-14 01:46:36 +01:00
parent f5a445b021
commit 8570b9667a
8 changed files with 10 additions and 36 deletions

View File

@ -91,7 +91,6 @@ const char CA_ALLOW_FILE_SYSTEM_WRITE[] = "QodeAssist.caAllowFileSystemWrite";
const char CA_ALLOW_ACCESS_OUTSIDE_PROJECT[] = "QodeAssist.caAllowAccessOutsideProject";
const char CA_ENABLE_EDIT_FILE_TOOL[] = "QodeAssist.caEnableEditFileTool";
const char CA_ENABLE_BUILD_PROJECT_TOOL[] = "QodeAssist.caEnableBuildProjectTool";
const char CA_DEBUG_TOOLS_AND_THINKING_COMPONENT[] = "QodeAssist.caDebugToolsAndThinkingComponent";
const char QODE_ASSIST_GENERAL_OPTIONS_ID[] = "QodeAssist.GeneralOptions";
const char QODE_ASSIST_GENERAL_SETTINGS_PAGE_ID[] = "QodeAssist.1GeneralSettingsPageId";

View File

@ -89,12 +89,6 @@ ToolsSettings::ToolsSettings()
"project. This feature is under testing and may have unexpected behavior."));
enableBuildProjectTool.setDefaultValue(false);
debugToolsAndThinkingComponent.setSettingsKey(Constants::CA_DEBUG_TOOLS_AND_THINKING_COMPONENT);
debugToolsAndThinkingComponent.setLabelText(Tr::tr("Always show Tools and Thinking Components in chat"));
debugToolsAndThinkingComponent.setToolTip(
Tr::tr("Disable disapearing tools and thinking component from chat"));
debugToolsAndThinkingComponent.setDefaultValue(false);
resetToDefaults.m_buttonText = Tr::tr("Reset Page to Defaults");
readSettings();
@ -114,8 +108,7 @@ ToolsSettings::ToolsSettings()
Space{8},
allowFileSystemRead,
allowFileSystemWrite,
allowAccessOutsideProject,
debugToolsAndThinkingComponent
allowAccessOutsideProject
}},
Space{8},
Group{
@ -151,7 +144,6 @@ void ToolsSettings::resetSettingsToDefaults()
resetAspect(autoApplyFileEdits);
resetAspect(enableEditFileTool);
resetAspect(enableBuildProjectTool);
resetAspect(debugToolsAndThinkingComponent);
writeSettings();
}
}

View File

@ -36,7 +36,6 @@ public:
Utils::BoolAspect allowFileSystemRead{this};
Utils::BoolAspect allowFileSystemWrite{this};
Utils::BoolAspect allowAccessOutsideProject{this};
Utils::BoolAspect debugToolsAndThinkingComponent{this};
// Experimental features
Utils::BoolAspect enableEditFileTool{this};