Skip to content

[Hackathon] Add "test open <id>" / "--web" to jump from the terminal to the dashboard #121

Description

@Andy00L

Discord Username / User ID

interferon0

What does this improvement do?

The CLI already computes a dashboard deep-link (resolvePortalUrl in src/lib/facade.ts, attached as dashboardUrl to run output and meta.portalUrl on history) but only ever prints it as text — there is zero browser-opening code in src/. Add test open plus a --web flag on test result, test run --wait, test rerun --wait, and test failure summary that opens the OS browser at that URL, with a --no-browser companion that only prints the URL (SSH/headless/CI/agents). This is the gh browse / cypress open pattern: a failing run's video/DOM/timeline lives in the dashboard, and today reaching it means copy-pasting a URL the CLI already built.

Details / implementation notes

Spawn open / xdg-open / start via node:child_process with an args array (never a shell string). When resolvePortalUrl returns undefined (unknown host), print a clear "no dashboard for this endpoint" line and exit non-zero. The URL builder already refuses userinfo and non-https production hosts, so the safety half is done. No new dependency. Tests: injected spawner per platform, --no-browser prints only, unknown-host error path. PR to follow once assigned.

Confirmations

  • I have searched existing issues and this is not a duplicate.
  • I have provided my Discord identity above for reward coordination.

Metadata

Metadata

Assignees

Labels

hackathonCLI hackathon submissionsin-progressAssigned and actively being worked on

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions