Watch
1
0
Fork
You've already forked souveraine
0

patches: queue 0011 — the reset command is /new

This commit is contained in:
Fimeg 2026-08-12 19:37:38 -04:00
commit 0733bfaff7

View file

@ -0,0 +1,55 @@
From f85ccac58e97a8ac138a9547936bed18b1cea16e Mon Sep 17 00:00:00 2001
From: Fimeg <casey.tunturi@gmail.com>
Date: Wed, 12 Aug 2026 19:37:26 -0400
Subject: [PATCH] chat: the reset command is /new, not /clear
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
clearMessages() calls Souveraine.newConversation() — it opens a new
server conversation rather than wiping a local view. The label said
'clear chat history', which describes a different verb than the one it
runs: destructive-sounding, local-sounding, and neither is true.
Three sites: the command definition, the quick-action chip, and the
input-clearing special case that dispatches on the name.
---
surfaces/quickshell/modules/ii/sidebarLeft/AiChat.qml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/surfaces/quickshell/modules/ii/sidebarLeft/AiChat.qml b/surfaces/quickshell/modules/ii/sidebarLeft/AiChat.qml
index 0d6e04e..514ad92 100644
--- a/surfaces/quickshell/modules/ii/sidebarLeft/AiChat.qml
+++ b/surfaces/quickshell/modules/ii/sidebarLeft/AiChat.qml
@@ -156,8 +156,8 @@ Item {
}
},
{
- name: "clear",
- description: Translation.tr("Clear chat history"),
+ name: "new",
+ description: Translation.tr("Start a new conversation"),
execute: () => {
Ai.clearMessages();
}
@@ -831,7 +831,7 @@ Inline w/ backslash and round brackets \\(e^{i\\pi} + 1 = 0\\)
dontAddSpace: true
},
{
- name: "clear",
+ name: "new",
sendDirectly: true
},
]
@@ -894,7 +894,7 @@ Inline w/ backslash and round brackets \\(e^{i\\pi} + 1 = 0\\)
messageInputField.cursorPosition = messageInputField.text.length;
messageInputField.forceActiveFocus();
}
- if (modelData.name === "clear") {
+ if (modelData.name === "new") {
messageInputField.text = "";
}
}
--
2.55.0