Skip to content

Create a local-only support bundle when the deployment is unreachable #1249

Todo

Description

@EhabY

When the deployment is unreachable, Coder: Create Support Bundle fails. The bundle runs coder login and coder support bundle, and both need the deployment: the CLI exits when ResolveWorkspace fails. A lost network is a common reason VS Code gives up on the remote connection, so the bundle fails in the situation where you most want one.

The extension's own logs are local and still useful offline: the Coder extension logs, the VS Code window logs, the Remote SSH logs, the SSH proxy logs, and the locally recorded telemetry.

Proposal

If the deployment is unreachable, create a bundle that holds only the local logs, and say so in the result notification. When the deployment is reachable again, the full bundle adds the deployment and workspace diagnostics.

Keep offering the full bundle

#1245 stores the connection failure and offers a bundle on the next successful connection, until you save a bundle or dismiss the offer. A local-only bundle must not count as saved:

  • If you save a local-only bundle, keep the failure stored so that the next connection still offers the full bundle.
  • If you save a full bundle or dismiss the offer, clear the failure.

The command returns the saved bundle today. To tell the prompt which kind it got, it needs to return the kind too, for example { uri, scope: "full" | "local" }.

Open questions

  • Should the local-only bundle run without confirmation when the CLI is unreachable, or should the extension ask first so that you can wait for the network instead?
  • Should the next offer mention that you already have a local-only bundle?

Activity

  1. linear-code commented on Dec 6, 2026

    @linear-code
  2. self-assigned this
    on Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions