From 1848d44503aa1a0b42318dff63ea2327364940f7 Mon Sep 17 00:00:00 2001 From: Petr Mironychev <9195189+Palm1r@users.noreply.github.com> Date: Fri, 31 Oct 2025 23:23:08 +0100 Subject: [PATCH] fix: Chat mode default value --- ChatView/ChatRootView.cpp | 3 +-- ChatView/qml/RootItem.qml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ChatView/ChatRootView.cpp b/ChatView/ChatRootView.cpp index 55268b2..3cfbfb7 100644 --- a/ChatView/ChatRootView.cpp +++ b/ChatView/ChatRootView.cpp @@ -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, diff --git a/ChatView/qml/RootItem.qml b/ChatView/qml/RootItem.qml index 95263a7..b273f53 100644 --- a/ChatView/qml/RootItem.qml +++ b/ChatView/qml/RootItem.qml @@ -87,7 +87,7 @@ ChatRootView { agentModeSwitch { checked: root.isAgentMode enabled: root.toolsSupportEnabled - onCheckedChanged: { + onToggled: { root.isAgentMode = agentModeSwitch.checked } }