From cf704873d94d33bbf9b7a569e20b9f10df7a68e8 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 15 Jun 2026 13:33:07 +0200 Subject: [PATCH] refac --- .../src/lib/components/automations/AutomationsPanel.svelte | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cptr/frontend/src/lib/components/automations/AutomationsPanel.svelte b/cptr/frontend/src/lib/components/automations/AutomationsPanel.svelte index f8391fa..754a767 100644 --- a/cptr/frontend/src/lib/components/automations/AutomationsPanel.svelte +++ b/cptr/frontend/src/lib/components/automations/AutomationsPanel.svelte @@ -335,10 +335,8 @@ class="text-[11px] text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors duration-75" onclick={() => { const ws = detail?.workspace; - if (ws) { - goto(`/?workspace=${encodeURIComponent(ws)}`); - } - setTimeout(() => openChatTab(run.chat_id!), 300); + const wsParam = ws ? `workspace=${encodeURIComponent(ws)}&` : ''; + goto(`/?${wsParam}chatId=${encodeURIComponent(run.chat_id!)}`); }} > {$t('automations.viewChat')}