Skip to content

feat(network): link the troubleshooting guide from the slow-connection tooltip - #1219

Open
MaxonT wants to merge 1 commit into
coder:mainfrom
MaxonT:contrib/1217-auto
Open

MaxonT wants to merge 1 commit into
coder:mainfrom
MaxonT:contrib/1217-auto

Conversation

@MaxonT

@MaxonT MaxonT commented Nov 26, 2026

Copy link
Copy Markdown

Hi, this adds a link to the networking troubleshooting docs in the slow-connection tooltip, so someone seeing that warning can click straight through to the help page.

Fixes #1217

Thanks for scoping this so precisely in the issue, including which docs section fits a relay and what to do for direct connections; the change follows it directly.

While the slow-connection warning is active, the status bar tooltip now ends its action row with a Troubleshooting guide link, next to the latency test, network check and threshold actions:

  • relay connection (network.p2p false): https://coder.com/docs/admin/networking/troubleshooting#common-problems-with-direct-connections
  • direct connection: the page root, since no section covers slow direct connections.

The link is inside the same isWarningActive branch as the other actions, so it does not appear without the warning. It is a plain https link, so TOOLTIP_COMMANDS is unchanged. I added an Unreleased entry to CHANGELOG.md.

Tests in test/unit/remote/networkStatus.test.ts: the existing slow-connection test now checks the direct link and the non-warning test checks it is absent; a new test checks the relay anchor. On main (v1.18.3), vitest run test/unit/remote/networkStatus.test.ts gives 20 passed with the change; with the original networkStatus.ts restored, the two tests that check the link fail. eslint on both files and tsc --noEmit report nothing. I did not run the rest of the test suite, the integration tests or prettier, and I did not look at the tooltip in a running VS Code window, so the rendering of the link is not checked by eye.

…n tooltip

Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T00:16:30.999761Z e77197e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Link networking troubleshooting docs from the slow-connection tooltip

1 participant