-
Notifications
You must be signed in to change notification settings - Fork 41
Add command to run a coder speedtest against a workspace #750
Copy link
Copy link
Description
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:
- Executes
coder speedtestagainst the currently connected workspace via the CLI. - Shows progress using VS Code's progress notification (
vscode.window.withProgress) while the test runs (the test takes ~5s by default). - 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. - Optionally open the saved file — after saving, prompt the user with the option to open the file in the editor.
- The command should use
--output jsonto get structured results. - 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.
Reactions are currently unavailable