fix(chromadb): honor cloud tenant and database

Closes #4486
This commit is contained in:
t8y2 committed 2026-08-13 18:26:48 +00:00
1 parent 98f5c52f8e
commit 9b983441d7
7 files changed
+217 -62

No files matched your search

+1 -1
View File
@@ -4161,7 +4161,7 @@ export const useConnectionStore = defineStore("connection", () => {
async function loadVectorCollections(connectionId: string, database?: string) {
const config = getConfig(connectionId);
const isMilvus = config?.db_type === "milvus";
const effectiveDb = database || config?.database || "default";
const effectiveDb = database || config?.database || (config?.db_type === "chromadb" ? "default_database" : "default");
// Milvus groups collections under a per-database node; other vector stores stay flat under the connection.
const node = isMilvus && database ? findNode(treeNodes.value, `${connectionId}:${database}`) : findConnectionNode(connectionId);
if (!node) return;