Adding more slash commands

This commit is contained in:
Timmy
2026-03-31 11:33:41 +01:00
parent ff5f9c76fd
commit 7427865e46
3 changed files with 74 additions and 9 deletions
+8 -6
View File
@@ -617,12 +617,6 @@ export function Chat({ projectPath, onCloseProject, oauthStatus = null }: ChatPr
const sendMessage = async (messageText: string) => {
if (!messageText.trim()) return;
// /help — show available slash commands overlay
if (/^\/help\s*$/i.test(messageText)) {
setShowHelp(true);
return;
}
// /reset — clear session and message history without LLM
if (/^\/reset\s*$/i.test(messageText)) {
setMessages([]);
@@ -659,6 +653,14 @@ export function Chat({ projectPath, onCloseProject, oauthStatus = null }: ChatPr
"overview",
"rebuild",
"loc",
"help",
"ambient",
"htop",
"rmtree",
"timer",
"unblock",
"unreleased",
"setup",
]);
if (knownCommands.has(cmd)) {