Skip to content

feat: support opening trace view - #811

Merged
sheremet-va merged 65 commits into
mainfrom
trace-report-preview
Sep 9, 2026
Merged

feat: support opening trace view#811
sheremet-va merged 65 commits into
mainfrom
trace-report-preview

Conversation

@hi-ogawa

@hi-ogawa hi-ogawa commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

This PR add per-test actions to open trace view focused layout of html report in an extension-managed webview. The webview tab is reused when switching tests and auto reselects/refreshes when the report is regenerated.

There are some design choices, but for now, the mechanism is tried to be kept simple. Future follow-ups may include:

  • add to command-palette to open the trace view based on last run (not from the explicitly selected test)
  • use artifact data in extension host directly to build trace view UI instead of relying on html reporter output.
  • use watch mode UI (or use onTestArtifactRecord) so it can renders streamed trace view of running test.
  • show trace line location marker in editor gutters

Example

Screen.Recording.2026-09-08.at.19.36.03.mov

hi-ogawa and others added 5 commits September 3, 2026 18:07
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Comment thread packages/extension/src/api.ts Outdated
hi-ogawa and others added 6 commits September 4, 2026 11:12
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>

# Conflicts:
#	packages/shared/src/index.ts
#	packages/worker-legacy/src/index.ts
#	packages/worker/src/index.ts
@hi-ogawa
hi-ogawa changed the base branch from main to refactor/worker-config-metadata September 4, 2026 02:31
hi-ogawa and others added 14 commits September 4, 2026 11:34
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Comment thread pnpm-workspace.yaml Outdated
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
},
"devDependencies": {
"@vitest/utils": "catalog:latest",
"vite": "catalog:latest",

@hi-ogawa hi-ogawa Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why, but this was needed for typecheck. Otherwise it looks like type check loads Vite 7 and Vite 8 at the same time somewhere.

hi-ogawa and others added 21 commits September 9, 2026 11:30
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
@hi-ogawa
hi-ogawa marked this pull request as ready for review September 9, 2026 04:57
hi-ogawa and others added 2 commits September 9, 2026 14:53
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>

@sheremet-va sheremet-va left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks dope!

Comment thread README.md

export default defineConfig({
test: {
reporters: [...configDefaults.reporters, 'html'],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general I don't like asking the user to update their configs since we can set any config we like when initiating Vitest, but I think it's fine for the initial version.

@sheremet-va
sheremet-va merged commit 11fb29a into main Sep 9, 2026
5 checks passed
@sheremet-va
sheremet-va deleted the trace-report-preview branch September 9, 2026 08:39
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.

2 participants