mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 18:24:57 +00:00
fix(subagents): reconcile orphaned restored runs
This commit is contained in:
committed by
Peter Steinberger
parent
cd3927ad67
commit
c3b3065cc9
@@ -16,7 +16,11 @@ vi.mock("../config/config.js", () => ({
|
||||
}));
|
||||
|
||||
vi.mock("../config/sessions.js", () => ({
|
||||
loadSessionStore: () => ({}),
|
||||
loadSessionStore: () => ({
|
||||
"agent:main:subagent:child-1": { sessionId: "sess-child-1", updatedAt: 1 },
|
||||
"agent:main:subagent:expired-child": { sessionId: "sess-expired", updatedAt: 1 },
|
||||
"agent:main:subagent:retry-budget": { sessionId: "sess-retry", updatedAt: 1 },
|
||||
}),
|
||||
resolveAgentIdFromSessionKey: (key: string) => {
|
||||
const match = key.match(/^agent:([^:]+)/);
|
||||
return match?.[1] ?? "main";
|
||||
|
||||
Reference in New Issue
Block a user