fix: Chat mode default value

This commit is contained in:
Petr Mironychev
2025-10-31 23:23:08 +01:00
parent db82fb08e8
commit 1848d44503
2 changed files with 2 additions and 3 deletions

View File

@ -49,7 +49,6 @@ ChatRootView::ChatRootView(QQuickItem *parent)
, m_promptProvider(LLMCore::PromptTemplateManager::instance())
, m_clientInterface(new ClientInterface(m_chatModel, &m_promptProvider, this))
, m_isRequestInProgress(false)
, m_isAgentMode(false)
{
m_isSyncOpenFiles = Settings::chatAssistantSettings().linkOpenFiles();
connect(
@ -150,7 +149,7 @@ ChatRootView::ChatRootView(QQuickItem *parent)
&ChatRootView::refreshRules);
QSettings appSettings;
m_isAgentMode = appSettings.value("QodeAssist/Chat/AgentMode", true).toBool();
m_isAgentMode = appSettings.value("QodeAssist/Chat/AgentMode", false).toBool();
connect(
&Settings::generalSettings().useTools,

View File

@ -87,7 +87,7 @@ ChatRootView {
agentModeSwitch {
checked: root.isAgentMode
enabled: root.toolsSupportEnabled
onCheckedChanged: {
onToggled: {
root.isAgentMode = agentModeSwitch.checked
}
}