fix: use getSessionsDir for metadata path in summary polling
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b6559b8a3f
commit
a5655aeb1b
|
|
@ -509,7 +509,8 @@ export function createLifecycleManager(deps: LifecycleManagerDeps): LifecycleMan
|
|||
try {
|
||||
const info = await agent.getSessionInfo(session);
|
||||
if (info?.summary && info.summary !== session.metadata?.["summary"]) {
|
||||
updateMetadata(config.dataDir, session.id, { summary: info.summary });
|
||||
const sessionsDir = getSessionsDir(config.configPath, project.path);
|
||||
updateMetadata(sessionsDir, session.id, { summary: info.summary });
|
||||
}
|
||||
} catch {
|
||||
// Agent info extraction failed — non-fatal, skip
|
||||
|
|
|
|||
Loading…
Reference in New Issue