Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(agent): remove chat switch locked message (#19755)
p0ny601d0eadcb7d
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 3b5ce4f26a..884ef0de6f 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -2989,7 +2989,6 @@"archive-chat-confirmation": "Archive this chat?","delete-chat-confirmation": "Delete this chat?","chat-list-label": "Chats",- "chat-switch-locked": "Finish the running chat before switching to another one.","chat-default-title": "New chat","chat-archived-label": "Archived","chat-status-idle": "Idle",diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 0e8eb0dba2..b576ca32cc 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -2498,7 +2498,6 @@"archive-chat-confirmation": "¿Archivar este chat?","delete-chat-confirmation": "¿Eliminar este chat?","chat-list-label": "Chats",- "chat-switch-locked": "Finaliza el chat en ejecución antes de cambiar a otro.","chat-default-title": "Nuevo chat","chat-archived-label": "Archivado","chat-status-idle": "Inactivo",diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 64da4eb4bd..ffc94d79de 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -2498,7 +2498,6 @@"archive-chat-confirmation": "このチャットをアーカイブしますか?","delete-chat-confirmation": "このチャットを削除しますか?","chat-list-label": "チャット",- "chat-switch-locked": "別のチャットに切り替える前に、実行中のチャットを完了してください。","chat-default-title": "新しいチャット","chat-archived-label": "アーカイブ済み","chat-status-idle": "待機中",diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex b032f3e56d..5f8c44d114 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -2498,7 +2498,6 @@"archive-chat-confirmation": "Lưu trữ chat này?","delete-chat-confirmation": "Xóa chat này?","chat-list-label": "Các chat",- "chat-switch-locked": "Hãy hoàn tất chat đang chạy trước khi chuyển sang chat khác.","chat-default-title": "Chat mới","chat-archived-label": "Đã lưu trữ","chat-status-idle": "Rảnh",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 0f1e8530b5..6f500865ec 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -2989,7 +2989,6 @@"archive-chat-confirmation": "要归档这个聊天吗?","delete-chat-confirmation": "要删除这个聊天吗?","chat-list-label": "聊天",- "chat-switch-locked": "请先完成当前运行中的聊天,再切换到其他聊天。","chat-default-title": "新聊天","chat-archived-label": "已归档","chat-status-idle": "空闲",diff --git a/frontend/src/plugins/agent/components/AgentWindow.test.ts b/frontend/src/plugins/agent/components/AgentWindow.test.tsindex 395c2c54fb..f7512b2217 100644--- a/frontend/src/plugins/agent/components/AgentWindow.test.ts+++ b/frontend/src/plugins/agent/components/AgentWindow.test.ts@@ -45,8 +45,6 @@ const i18n = createI18n({close: "Close",resize: "Resize","chat-list-label": "Chats",- "chat-switch-locked":- "Finish the running chat before switching to another one.","new-chat": "New chat","rename-chat-placeholder": "Enter a chat name","archive-chat": "Archive",@@ -176,9 +174,6 @@ describe("AgentWindow", () => {.findAll("button").find((button) => button.text() === "New chat");- expect(wrapper.find("[data-agent-chat-lock-message]").text()).toContain(- "Finish the running chat before switching to another one."- );expect(currentRow?.attributes("disabled")).toBeUndefined();expect(otherRow?.attributes("disabled")).toBe("");expect(newChatButton?.attributes("disabled")).toBe("");diff --git a/frontend/src/plugins/agent/components/AgentWindow.vue b/frontend/src/plugins/agent/components/AgentWindow.vueindex bc66236e5d..66c790fccf 100644--- a/frontend/src/plugins/agent/components/AgentWindow.vue+++ b/frontend/src/plugins/agent/components/AgentWindow.vue@@ -162,7 +162,6 @@ const currentChatTokenUsageLabel = computed(() =>count: tokenFormatter.format(agentStore.currentChat?.totalTokensUsed ?? 0),}));-const isChatSwitchLocked = computed(() => agentStore.hasRunningChat);const isChatCreationDisabled = computed(() => agentStore.hasRunningChat);function syncSize(width: number, height: number) {@@ -619,13 +618,6 @@ onBeforeUnmount(() => {<h2 class="text-xs font-semibold uppercase tracking-wide text-gray-500">{{ $t("agent.chat-list-label") }}</h2>- <p- v-if="isChatSwitchLocked"- class="mt-1 text-xs text-amber-600"- data-agent-chat-lock-message- >- {{ $t("agent.chat-switch-locked") }}- </p></div><buttonclass="rounded-md border px-2 py-1.5 text-xs font-medium text-gray-600 hover:bg-gray-100 disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-gray-400"