Thanks to visit codestin.com
Credit goes to github.com

Skip to content

docs: add Coder Desktop stale-tunnel recovery and improve macOS log capture - #26735

Merged
nickvigilante merged 14 commits into
mainfrom
docs/desktop-macos-restart-recovery
Aug 14, 2026
Merged

docs: add Coder Desktop stale-tunnel recovery and improve macOS log capture#26735
nickvigilante merged 14 commits into
mainfrom
docs/desktop-macos-restart-recovery

Conversation

@blinkagent

@blinkagent blinkagent Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

What

Adds a Recovering from a stale tunnel section to the Coder Desktop user guide, with separate macOS and Windows procedures, and tightens the existing macOS log-collection instructions.

Why

Users in the field have hit a state where Coder Desktop's menu bar / tray shows Coder Connect as enabled but the embedded tunnel is no longer working:

  • workspace.coder fails to resolve (No such host), or
  • DNS returns stale fd60:627a:a42b::/48 addresses that no longer route, causing coder ssh, file sync, and the directory picker to hang.

Related issues:

Until the underlying state-management gap is fixed in the apps, the docs should give users (and support) a safe, repeatable way to recover without rebooting.

Changes

docs/user-guides/desktop/index.md:

  1. New "Recovering from a stale tunnel" section under Troubleshooting:
    • macOS: stop the VPN configuration with scutil --nc stop, quit the app via osascript, restart the helper daemon in place with launchctl kickstart -k system/com.coder.Coder-Desktop.Helper, flush DNS caches, then relaunch.
      • Includes a warning to not use launchctl bootout, which removes the daemon from launchd's system domain entirely and is not re-bootstrapped on app relaunch.
      • Includes a verification step using the built-in sentinel hostname is.coder--connect--enabled--right--now.coder (defined in tailnet/conn.go as IsCoderConnectEnabledFmtString) so users don't need a workspace name to confirm the tunnel is healthy.
      • Uses dig @fd60:627a:a42b::53 (explicit server) and dscacheutil -q host -a name because plain dig does not respect the macOS system resolver.
    • Windows: stop the app and Coder Desktop service, flush DNS, restart, then verify the NRPT rule and Wintun adapter. Notes that ipconfig /flushdns does not reset the embedded resolver and that filtering agents (e.g., Zscaler) may still shadow .coder lookups.
  2. macOS log-collection improvements:
    • Switch the predicate from subsystem == "com.coder.Coder-Desktop" to subsystem BEGINSWITH "com.coder.Coder-Desktop" so the export captures the app, helper daemon, and network extension (which all log under prefixed subsystems).
    • Add a log stream example for live tailing while reproducing an issue.

Verification

  • npx markdownlint-cli2 docs/user-guides/desktop/index.md — 0 errors.
  • macOS recovery steps were validated end-to-end on a real install (the kickstart -k form, in particular, was confirmed to restart the helper without breaking the install, unlike bootout).

Created on behalf of @mdanter

@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Docs preview

Check off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here.

@github-actions github-actions Bot added the community Pull Requests and issues created by the community. label Jun 26, 2026
@blinkagent blinkagent Bot changed the title docs(desktop): add stale-tunnel recovery and improve macOS log capture docs: add Coder Desktop stale-tunnel recovery and improve macOS log capture Jun 26, 2026
@coderagents

coderagents Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Documentation Check

Updates Needed

  • docs/user-guides/desktop/index.md - Three emdash (U+2014) characters in prose have been replaced with periods. All three occurrences are fixed.

Automated review via Coder Agents

@github-actions github-actions Bot added the stale This issue is like stale bread. label Jul 8, 2026
@github-actions github-actions Bot closed this Jul 12, 2026

```shell
vpn_name=$(scutil --nc list | grep "com.coder.Coder-Desktop" | awk -F'"' '{print $2}' | tail -n1)
if [ -n "$vpn_name" ]; then scutil --nc stop "$vpn_name"; fi

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does the same thing as toggling off Coder Connect in the UI

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ethanndickson agreed, it's just additional documentation to do the same thing via the CLI.

Comment on lines +199 to +208
3. Restart the helper daemon in place:

```shell
sudo launchctl kickstart -k system/com.coder.Coder-Desktop.Helper
```

> [!WARNING]
> Do not use `launchctl bootout` here. `bootout` removes the daemon from
> launchd's system domain entirely, and relaunching the app does not
> re-bootstrap it. Use `kickstart -k` to restart it in place.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restarting the helper shouldn't be necessary, has this been observed to actually resolve the issue, or was this just suggested by blink?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ethanndickson This has not been observed to resolve the issue, it's just documenting the restart process and related subprocesses without having to restart a laptop/workstation.

@nickvigilante nickvigilante reopened this Jul 14, 2026
@linear-code

linear-code Bot commented Jul 14, 2026

Copy link
Copy Markdown

DOCS-562

DOCS-563

DOCS-572

@nickvigilante nickvigilante left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved for style and structure only, with changes.

Comment thread docs/user-guides/desktop/index.md Outdated
Comment thread docs/user-guides/desktop/index.md Outdated
Comment thread docs/user-guides/desktop/index.md Outdated
Comment thread docs/user-guides/desktop/index.md Outdated
Comment thread docs/user-guides/desktop/index.md Outdated
@github-actions github-actions Bot removed the stale This issue is like stale bread. label Jul 15, 2026
@github-actions github-actions Bot added the stale This issue is like stale bread. label Jul 22, 2026
@matifali matifali removed stale This issue is like stale bread. community Pull Requests and issues created by the community. labels Jul 22, 2026
@matifali

Copy link
Copy Markdown
Member

@mdanter and @nickvigilante is it good to merge?

@nickvigilante nickvigilante left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and approved for style only, and the content looks reasonable. I'd wait for one more review though before merging.

Comment thread docs/user-guides/desktop/index.md Outdated
Comment thread docs/user-guides/desktop/index.md Outdated
Comment thread docs/user-guides/desktop/index.md Outdated
Comment thread docs/user-guides/desktop/index.md Outdated
Comment thread docs/user-guides/desktop/index.md Outdated
Comment thread docs/user-guides/desktop/index.md Outdated
Comment thread docs/user-guides/desktop/index.md Outdated
Comment thread docs/user-guides/desktop/index.md Outdated
@github-actions github-actions Bot added the stale This issue is like stale bread. label Jul 30, 2026
@github-actions github-actions Bot closed this Aug 2, 2026
@nickvigilante nickvigilante reopened this Aug 3, 2026
@nickvigilante
nickvigilante requested a review from a team as a code owner August 3, 2026 16:52
@nickvigilante

Copy link
Copy Markdown
Contributor

@mdanter Can we get your review on this PR?

@github-actions github-actions Bot removed the stale This issue is like stale bread. label Aug 4, 2026
@mdanter

mdanter commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

@nickvigilante looks good from my perspective. Thank you for the stylistic improvements!

@nickvigilante
nickvigilante merged commit 043bebb into main Aug 14, 2026
30 checks passed
@nickvigilante
nickvigilante deleted the docs/desktop-macos-restart-recovery branch August 14, 2026 16:31
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants