feat: integrate learning module
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-08-16 20:52:16 +08:00
parent 26b52d76e3
commit 01bee3188b
107 changed files with 6318 additions and 12063 deletions

View File

@@ -47,4 +47,23 @@ describe('session transcript view model', () => {
expect.objectContaining({ id: 'native_subtask', childSessionID: 'ses_child' }),
]);
});
it('does not project the compaction summary into execution trace', () => {
const nativeTranscript = hydrateOpenCodeSession('ses_1', [{
info: { id: 'msg_compaction', role: 'assistant', sessionID: 'ses_1' },
parts: [{
id: 'part_compaction',
type: 'compaction',
text: 'PRIVATE COMPACTION SUMMARY',
}],
}]);
const model = buildSessionTranscriptViewModel({
messages: [],
nativeTranscript,
});
expect(model.executionTrace).toEqual([]);
expect(model.reasoningBlocks).toEqual([]);
});
});