fix: pass config.projects to metadataToSession in restore path
The 3750f76 commit added a required `projects` parameter to metadataToSession for inferProjectId support, but the restore() call site missed it, causing a TypeScript build error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d667332ab4
commit
2345c9d80c
|
|
@ -997,7 +997,7 @@ export function createSessionManager(deps: SessionManagerDeps): SessionManager {
|
|||
// metadataToSession sets activity: null, so without enrichment a crashed
|
||||
// session (status "working", agent exited) would not be detected as terminal
|
||||
// and isRestorable would reject it.
|
||||
const session = metadataToSession(sessionId, raw);
|
||||
const session = metadataToSession(sessionId, raw, config.projects);
|
||||
const plugins = resolvePlugins(project);
|
||||
await enrichSessionWithRuntimeState(session, plugins, true);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue