Skip to content

Commit b42c8d1

Browse files
committed
pass thru the slash commands
1 parent 7d5b088 commit b42c8d1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

backend/handlers/chat.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -448,12 +448,8 @@ async function* executeClaudeCommand(
448448
let abortController: AbortController;
449449

450450
try {
451-
// Process commands that start with '/'
452-
let processedMessage = message;
453-
if (message.startsWith("/")) {
454-
// Remove the '/' and send just the command
455-
processedMessage = message.substring(1);
456-
}
451+
// Pass message as-is (including slash commands like /cost, /help, etc.)
452+
const processedMessage = message;
457453

458454
// Prepare authentication environment
459455
let authEnv: Record<string, string> = {};

0 commit comments

Comments
 (0)