From 5f3130dec6e991ec7abef6100344b23ac6aad2ff Mon Sep 17 00:00:00 2001 From: Raunak Raj <71929976+bajrangCoder@users.noreply.github.com> Date: Wed, 24 Jun 2026 16:34:13 +0530 Subject: [PATCH] fix: slash commands for newly created ACP sessions --- src/pages/chat/index.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/chat/index.tsx b/src/pages/chat/index.tsx index 4367e53..7ee65b6 100644 --- a/src/pages/chat/index.tsx +++ b/src/pages/chat/index.tsx @@ -569,7 +569,9 @@ export default function ChatConversationPage({ return { sessionId: nextSessionId, configOptions: attached.configOptions, - availableCommands: attached.availableCommands, + availableCommands: attached.availableCommands.length + ? attached.availableCommands + : result.availableCommands, messages: attached.messages, revision: attached.revision, syncing: attached.syncing, @@ -1356,7 +1358,9 @@ export default function ChatConversationPage({ return { sessionId: nextSessionId, configOptions: attached.configOptions, - availableCommands: attached.availableCommands, + availableCommands: attached.availableCommands.length + ? attached.availableCommands + : result.availableCommands, messages: attached.messages, revision: attached.revision, syncing: attached.syncing,