Skip to content

feat(dashboard): cancel CLI annotate on client disconnect#40347

Merged
Skn0tt merged 2 commits into
microsoft:mainfrom
Skn0tt:fix-40344-test
Apr 22, 2026
Merged

feat(dashboard): cancel CLI annotate on client disconnect#40347
Skn0tt merged 2 commits into
microsoft:mainfrom
Skn0tt:fix-40344-test

Conversation

@Skn0tt
Copy link
Copy Markdown
Member

@Skn0tt Skn0tt commented Apr 22, 2026

(#40344 with test fix)

pavelfeldman and others added 2 commits April 21, 2026 16:32
Migrate BrowserTracker to the mirrored BrowserContext lifecycle events.
When the last `--annotate` client socket closes, the server emits
`cancelAnnotate` so the dashboard disengages annotate mode and future
submissions fall back to saving as a download. Remove the superseded
`pick` CLI command in favor of the `show --annotate` workflow.
Fixes a race in 'should switch screencast to -s session on show --annotate'
where dashboard.evaluate() in sampleCenter() could be interrupted by the
in-flight navigation triggered by innerOpenDashboardApp's page.goto.
Awaiting #display visibility serializes against that navigation.
@Skn0tt Skn0tt changed the title test(dashboard): wait for #display before sampling pixels feat(dashboard): cancel CLI annotate on client disconnect Apr 22, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Test results for "MCP"

7 failed
❌ [firefox] › mcp/cli-devtools.spec.ts:141 › video-start-stop @mcp-windows-latest
❌ [firefox] › mcp/cli-devtools.spec.ts:155 › video-chapter @mcp-windows-latest
❌ [firefox] › mcp/cli-session.spec.ts:99 › delete-data @mcp-windows-latest
❌ [firefox] › mcp/cli-session.spec.ts:159 › workspace isolation - sessions in different workspaces are isolated @mcp-windows-latest
❌ [chromium] › mcp/dashboard.spec.ts:261 › should switch screencast to -s session on show --annotate @mcp-macos-latest
❌ [webkit] › mcp/dashboard.spec.ts:261 › should switch screencast to -s session on show --annotate @mcp-ubuntu-latest
❌ [webkit] › mcp/dashboard.spec.ts:261 › should switch screencast to -s session on show --annotate @mcp-windows-latest

6555 passed, 913 skipped


Merge workflow run.

@Skn0tt Skn0tt merged commit 10095c0 into microsoft:main Apr 22, 2026
34 of 38 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

Test results for "tests 1"

8 flaky ⚠️ [chromium-library] › library/video.spec.ts:719 › screencast › should work with video+trace `@ubuntu-22.04-chromium-tip-of-tree`
⚠️ [chromium-library] › library/video.spec.ts:647 › screencast › should capture full viewport `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-page] › page/page-request-continue.spec.ts:754 › propagate headers cross origin redirect after interception `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/video.spec.ts:476 › screencast › should capture static page in persistent context @smoke `@chromium-ubuntu-22.04-node24`
⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1080 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-page] › page/page-emulate-media.spec.ts:144 › should keep reduced motion and color emulation after reload `@firefox-ubuntu-22.04-node20`
⚠️ [playwright-test] › ui-mode-test-output.spec.ts:118 › should collapse repeated console messages for test `@ubuntu-latest-node20`
⚠️ [playwright-test] › ui-mode-trace.spec.ts:433 › should work behind reverse proxy `@windows-latest-node20`

41304 passed, 847 skipped


Merge workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants