Skip to content

The agent that grows with you

test(desktop): read the session-scoped tab id in the tombstone test

Brooklyn Nicholson572e4f4fad32
diff --git a/apps/desktop/src/store/preview.test.ts b/apps/desktop/src/store/preview.test.ts
index be7a4f5de16..1bac19bbb3a 100644
--- a/apps/desktop/src/store/preview.test.ts
+++ b/apps/desktop/src/store/preview.test.ts
@@ -363,7 +363,8 @@ describe('preview store', () => {
it('tombstones a confirmed-missing tab in place without closing it', () => {
openPreview(fileTarget('/work/demo.html'))
openPreview(fileTarget('/work/keep.html'))
- const demoId = 'file:file:///work/demo.html'
+ // File tab ids are session-scoped; read the real one instead of rebuilding it.
+ const demoId = $previewTabs.get().find(tab => tab.target.url === fileTarget('/work/demo.html').url)!.id
markPreviewTabMissing(demoId)