feat(core): enhance session learnings summary hook with configurable output and descriptive names

This commit is contained in:
Aishanee Shah
2026-02-11 16:41:51 +00:00
parent 64e19fd60f
commit 4e60c886d2
5 changed files with 130 additions and 36 deletions

View File

@@ -797,6 +797,7 @@ export async function loadCliConfig(
noBrowser: !!process.env['NO_BROWSER'],
summarizeToolOutput: settings.model?.summarizeToolOutput,
sessionLearnings: settings.general?.sessionLearnings?.enabled,
sessionLearningsOutputPath: settings.general?.sessionLearnings?.outputPath,
ideMode,
disableLoopDetection: settings.model?.disableLoopDetection,
compressionThreshold: settings.model?.compressionThreshold,

View File

@@ -341,6 +341,16 @@ const SETTINGS_SCHEMA = {
'Automatically generate a session-learnings.md file when the session ends.',
showInDialog: true,
},
outputPath: {
type: 'string',
label: 'Output Path',
category: 'General',
requiresRestart: false,
default: undefined as string | undefined,
description:
'Directory where session-learnings files should be saved. Defaults to project root.',
showInDialog: true,
},
},
},
},