Repository navigation
Include Coder support bundles in workspace diagnostics - #363
Merged
Merged
Conversation
Workspace log archives previously lacked Coder deployment and workspace diagnostics, so troubleshooting connection issues required collecting a separate support bundle. In this change, we added a Coder support bundle to the Toolbox ZIP generated by an environment's Collect logs action. The plugin uses the existing deployment login to collect diagnostics for the selected workspace and its agent, when available. Collection supports cancellation and has a two-minute timeout. If it fails, the plugin preserves the other Toolbox diagnostics and adds a failure report instead of a partial bundle. We also documented where bundle collection is available and added tests for collection, cancellation, timeout, and cleanup.
code-asher
approved these changes
Sep 17, 2026
We merged the latest workspace progress reporting changes from main and resolved overlapping additions while preserving support-bundle collection and coverage for both features.
The fixed two-minute limit could interrupt a valid diagnostic collection, and the plugin discarded an inherited session token that would normally take precedence over stored credentials. We changed support-bundle collection to wait until the Coder CLI finishes or the user cancels. The plugin still terminates the process on cancellation, while the CLI can now use inherited credentials according to its normal precedence. We also removed redundant header-command cleanup without changing the existing header configuration behavior. We updated the README to describe the revised behavior and removed the obsolete timeout test. The CLI manager and diagnostic collector tests passed, including cancellation and process cleanup coverage.
Collaborator
Author
Demo-support-bundle-on-single-workspace.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Workspace log archives previously lacked Coder deployment and workspace diagnostics, so troubleshooting connection issues required collecting a separate support bundle.
In this change, we added a Coder support bundle to the Toolbox ZIP generated by an environment's Collect logs action. The plugin uses the existing deployment login to collect diagnostics for the selected workspace and its agent, when available.
Collection supports cancellation and has a two-minute timeout. If it fails, the plugin preserves the other Toolbox diagnostics and adds a failure report instead of a partial bundle.
We also documented where bundle collection is available and added tests for collection, cancellation, timeout, and cleanup.