From 34ce190e5f2c31d186c62842ed3f58c191760c65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E6=9C=88?= Date: Tue, 2 Jun 2026 23:19:14 +0800 Subject: [PATCH] fix: agent createAgentStore uses wrong CAS path (~/.uwf/cas instead of ~/.ocas) createAgentStore was calling getCasDir(storageRoot) which resolves to ~/.uwf/cas/, but since Phase 3 all CAS data lives in ~/.ocas/. getActiveThreadEntry already used getGlobalCasDir() correctly, causing a split where thread lookup succeeded but CAS node reads failed. Found during e2e walkthrough after Phase 0-5 migration. --- packages/workflow-util-agent/src/storage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/workflow-util-agent/src/storage.ts b/packages/workflow-util-agent/src/storage.ts index 6dbb214..34f14fa 100644 --- a/packages/workflow-util-agent/src/storage.ts +++ b/packages/workflow-util-agent/src/storage.ts @@ -108,7 +108,7 @@ export type AgentStore = { }; export async function createAgentStore(storageRoot: string): Promise { - const store = createFsStore(getCasDir(storageRoot)); + const store = createFsStore(getGlobalCasDir()); const schemas = await registerAgentSchemas(store); return { storageRoot, store, schemas }; } -- 2.43.0