Skip to content

fix(trace-viewer): show ellipsis and copy full Return value#40593

Open
Skn0tt wants to merge 2 commits intomicrosoft:mainfrom
Skn0tt:fix-40527
Open

fix(trace-viewer): show ellipsis and copy full Return value#40593
Skn0tt wants to merge 2 commits intomicrosoft:mainfrom
Skn0tt:fix-40527

Conversation

@Skn0tt
Copy link
Copy Markdown
Member

@Skn0tt Skn0tt commented May 4, 2026

Summary

  • Move the 1000-char truncation in the Call tab from data prep into the render layer so the displayed value shows an ellipsis while the copy-to-clipboard button receives the full untruncated value.

Fixes #40527

Skn0tt added 2 commits May 4, 2026 11:02
The `trace snapshot` HTTP server hardcoded the top-level pageId for
every request and routed `/snapshot` (no trailing slash), so iframe
sub-frame requests returned the parent page's snapshot and the
renderer's iframe rewrite kept concatenating frame paths instead of
finding the prefix. Mirror the trace-viewer service worker: route
`/snapshot/`, parse the page-or-frame id from the path, and pass the
full URL as the snapshot cache key.

Fixes microsoft#40533
Previously the Call tab silently truncated object Return values to 1000
chars, and the copy-to-clipboard button copied the truncated string too.
Move the truncation to the render layer so the displayed text shows an
ellipsis but the copy button receives the full value.

Fixes microsoft#40527
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Test results for "MCP"

5 failed
❌ [webkit] › mcp/dashboard.spec.ts:186 › should start dashboard and annotate when no dashboard is running @mcp-windows-latest-webkit
❌ [webkit] › mcp/dashboard.spec.ts:208 › should enter annotate mode on fresh dashboard.tsx mount with annotate @mcp-windows-latest-webkit
❌ [webkit] › mcp/dashboard.spec.ts:362 › should switch screencast to -s session on show --annotate @mcp-windows-latest-webkit
❌ [webkit] › mcp/http.spec.ts:103 › http transport browser lifecycle (isolated) @mcp-windows-latest-webkit
❌ [webkit] › mcp/http.spec.ts:142 › http transport browser sigint @mcp-windows-latest-webkit

6874 passed, 1025 skipped


Merge workflow run.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Test results for "tests 1"

1 flaky ⚠️ [chromium-library] › library/video.spec.ts:647 › screencast › should capture full viewport `@chromium-ubuntu-22.04-arm-node20`

41655 passed, 784 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.

[Feature]: Trace Viewer - allow expanding or copying full "Return value" in Call tab

1 participant