Merge session format migration into live assistant stream

This commit is contained in:
Tianyi Cui committed 2026-09-02 19:02:32 +08:00
commit 42542e9a3d
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -812,7 +812,7 @@ function rawSessionLog(session: Session): string {
...header.parentSession === undefined ? {} : { parentSession: header.parentSession },
...header.isSeeded ? { seedLength: Number(session.inheritedEventCount) } : {},
...header.origin === undefined ? {} : { origin: header.origin },
...header.delegationDepth === undefined ? {} : { delegationDepth: header.delegationDepth },
delegationDepth: header.delegationDepth ?? 0,
...header.agentPreset === undefined ? {} : { agentPreset: header.agentPreset },
}),
...packChunkRuns(session.snapshotEvents()).map(record => JSON.stringify(record)),
@@ -1,7 +1,7 @@
{
"unit": {
"name": "session_projcache",
"version": 6
"version": 7
},
"global": null,
"tables": {
@@ -74,7 +74,7 @@ describe('WebWorker preview VFS example', () => {
}>
}
}
expect(cache.unit).toEqual({ name: 'session_projcache', version: 6 })
expect(cache.unit).toEqual({ name: 'session_projcache', version: 7 })
expect(cache.tables.sessions[VFS_EXAMPLE_SESSION_IDS.main]).toMatchObject({
identity: {
formatVersion: SESSION_FORMAT_VERSION,