adf56b5b8a2ee2f003aa53e705604cc0e26dead3
note: You are running `vp test` as a Vite+ built-in command. If you meant to run the test npm script, use `vpr test` instead.

 RUN  v5.0.5 /home/ubuntu/wt/pr-24658/apps/server

 ✓ src/preview/ServerBrowser.test.ts > tells the desktop once per thread when its agent turns start and end 52ms
 ✓ src/preview/ServerBrowser.test.ts > preview_open reports its navigation timeout instead of the request budget 27ms
 ✓ src/preview/ServerBrowser.test.ts > explicit desktop targets (desktop runtime) fail without creating a server tab 21ms
 ✓ src/preview/ServerBrowser.test.ts > explicit desktop targets (undefined runtime) fail without creating a server tab 10ms
 ✓ src/preview/ServerBrowser.test.ts > a pending viewer goto allows a corrected URL and text input 12ms
 ✓ src/preview/ServerBrowser.test.ts > a pending viewer goBack allows a corrected URL and text input 9ms
 ✓ src/preview/ServerBrowser.test.ts > a pending viewer goForward allows a corrected URL and text input 10ms
 ✓ src/preview/ServerBrowser.test.ts > a pending viewer reload allows a corrected URL and text input 10ms
 ✓ src/preview/ServerBrowser.test.ts > agent recordings encode at the last reported frame rate ([]) 12ms
 ✓ src/preview/ServerBrowser.test.ts > agent recordings encode at the last reported frame rate ([ 30 ]) 8ms
 ✓ src/preview/ServerBrowser.test.ts > agent recordings encode at the last reported frame rate ([ 60 ]) 8ms
 ✓ src/preview/ServerBrowser.test.ts > agent recordings encode at the last reported frame rate ([ 60, undefined ]) 7ms
 ✓ src/preview/ServerBrowser.test.ts > agent recordings encode at the last reported frame rate ([ 60, 30 ]) 8ms
 ✓ src/preview/ServerBrowser.test.ts > enforces provider ownership and explicit targets when a session has multiple tabs 19ms
 ✓ src/preview/ServerBrowser.test.ts > streams to a read-only viewer without allowing takeover, input, or viewport changes 9ms
 ✓ src/preview/ServerBrowser.test.ts > takeover waits for the running agent and revokes snapshot refs before returning control 12ms
 ✓ src/preview/ServerBrowser.test.ts > reports a pending dialog without evaluating the page and resolves it explicitly 12ms
 ✓ src/preview/ServerBrowser.test.ts > a tab opened to a file the browser cannot show reports the file to download 16ms
 ✓ src/preview/ServerBrowser.test.ts > a late failure from a request that predates tracking leaves a newer navigation loading 10ms
 ✓ src/preview/ServerBrowser.test.ts > only the controlling viewer's copy and cut keys reach its clipboard 7ms
 ✓ src/preview/ServerBrowser.test.ts > a page download is saved, offered to the controller, and listed for the agent (delete fails: false) 16ms
stdout | src/preview/ServerBrowser.test.ts > a rejected download releases the original and keeps no saved copy (save failed)
[15:44:20.219] WARN (#1185): server preview download failed {
  cause: Error: save interrupted
      at Object.saveAs (/home/ubuntu/wt/pr-24658/apps/server/src/preview/ServerBrowser.test.ts:1041:50)
      at saveDownload (/home/ubuntu/wt/pr-24658/apps/server/src/preview/ServerBrowser.ts:954:7)
}

 ✓ src/preview/ServerBrowser.test.ts > a page download is saved, offered to the controller, and listed for the agent (delete fails: true) 20ms
 ✓ src/preview/ServerBrowser.test.ts > a rejected download releases the original and keeps no saved copy (save failed) 32ms
 ✓ src/preview/ServerBrowser.test.ts > a rejected download releases the original and keeps no saved copy (oversized) 12ms
 ✓ src/preview/ServerBrowser.test.ts > a page's file picker goes to the controller and takes its uploaded files 12ms
 ✓ src/preview/ServerBrowser.test.ts > only the current controller can answer a file picker 11ms
 ✓ src/preview/ServerBrowser.test.ts > agents read a human's tab with no arguments and act on it only while nobody drives 18ms
 ✓ src/preview/ServerBrowser.test.ts > a session's own tab stays its default while other sessions' tabs are listed 14ms
 ✓ src/preview/ServerBrowser.test.ts > preview_open picks a reported profile by id or name and defaults to the reported one 14ms
 ✓ src/preview/ServerBrowser.test.ts > a system tab clears the light Playwright forces on attach, without redoing it 9ms
 ✓ src/preview/ServerBrowser.test.ts > a tab opens light when asked and its popups keep it 10ms
 ✓ src/preview/ServerBrowser.test.ts > a tab opens dark when asked and its popups keep it 11ms

 Test Files  1 passed (1)
      Tests  32 passed (32)
   Start at  15:44:17
   Duration  2.41s (import 49%, transform 26%, tests 21%, setup 5%)

