fix: agent createAgentStore uses wrong CAS path (~/.uwf/cas instead of ~/.ocas)
CI / check (pull_request) Failing after 8m23s

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.
This commit is contained in:
2026-06-02 23:19:14 +08:00
parent e899c11b92
commit 34ce190e5f
+1 -1
View File
@@ -108,7 +108,7 @@ export type AgentStore = {
};
export async function createAgentStore(storageRoot: string): Promise<AgentStore> {
const store = createFsStore(getCasDir(storageRoot));
const store = createFsStore(getGlobalCasDir());
const schemas = await registerAgentSchemas(store);
return { storageRoot, store, schemas };
}