fix(webworker-runtime): restore v1 title cache fixture

This commit is contained in:
_Kerman 2026-08-28 11:53:17 +08:00
parent 5c9ca1f25b
commit f6d4f2149d
3 changed files with 5 additions and 29 deletions

View file

@ -13,17 +13,9 @@
},
"rows": {
"title": {
"ver": 2,
"ver": 1,
"seq": 198,
"val": {
"title": "WebWorker Preview Showcase",
"messageSeqs": [],
"source": {
"kind": "user"
},
"eventSeq": 2,
"updatedAt": 1787472000002
}
"val": "WebWorker Preview Showcase"
}
}
}

View file

@ -64,14 +64,8 @@ describe('WebWorker preview VFS example', () => {
identity: { createdAt: 1_787_472_000_000, cwd: '/dsh/workspace' },
rows: {
title: {
ver: 2,
val: {
title: VFS_EXAMPLE_TITLE,
messageSeqs: [],
source: { kind: 'user' },
eventSeq: 2,
updatedAt: 1_787_472_000_002,
},
ver: 1,
val: VFS_EXAMPLE_TITLE,
},
},
})

View file

@ -396,17 +396,7 @@ export function buildVfsExampleFiles(): ReadonlyMap<string, string> {
[VFS_EXAMPLE_SESSION_IDS.main]: {
identity: { createdAt: CREATED_AT, cwd: WORKSPACE },
rows: {
title: {
ver: 2,
seq: main.events.at(-1)?.seq ?? -1,
val: {
title: VFS_EXAMPLE_TITLE,
messageSeqs: [],
source: { kind: 'user' },
eventSeq: 2,
updatedAt: CREATED_AT + 2,
},
},
title: { ver: 1, seq: main.events.at(-1)?.seq ?? -1, val: VFS_EXAMPLE_TITLE },
},
},
},