Skip to content

Add command to run a coder speedtest against a workspace #750

@spikecurtis

Description

@spikecurtis

coder speedtest tests the end-to-end connection speed of the tailnet tunnel to a workspace. Add this as a command to allow users to diagnose whether any perceived slowness is attributable to the networking.

Scope

Implement a Coder: Speed Test command that:

  1. Executes coder speedtest against the currently connected workspace via the CLI.
  2. Shows progress using VS Code's progress notification (vscode.window.withProgress) while the test runs (the test takes ~5s by default).
  3. Saves the JSON output — after the test completes, present a save dialog (vscode.window.showSaveDialog) so the user can save the JSON results to disk.
  4. Optionally open the saved file — after saving, prompt the user with the option to open the file in the editor.
  5. The command should use --output json to get structured results.
  6. The command should be available in the Command Palette when connected to a workspace.

JSON output format

The coder speedtest --output json command produces structured output like:

{
  "overall": {
    "start_time_seconds": 0,
    "end_time_seconds": 5.04,
    "throughput_mbits": 911.91
  },
  "intervals": [
    {
      "start_time_seconds": 0,
      "end_time_seconds": 1.00,
      "throughput_mbits": 803.03
    }
  ]
}

UX

  • Command Palette: Coder: Speed Test
  • Progress notification while the test runs.
  • Save dialog for the JSON output file after completion.
  • Option to open the file after saving.

Follow-up

  • ENG-2302 — Proactive slowness detection (prompt users to run this command automatically) and speedtest JSON visualization in a lightweight webview.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions