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:
Prateek 2026-02-19 01:23:31 +05:30
parent d667332ab4
commit 2345c9d80c
1 changed files with 1 additions and 1 deletions

View File

@ -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);