feat(connect): report desktop connection incidents - #3074
Draft
reachjalil wants to merge 2 commits into
Draft
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
@reachjalil is attempting to deploy a commit to the Different AI Team on Vercel. A member of the Team first needs to authorize it. |
This was referenced Jul 24, 2026
Collaborator
Author
|
PR chain: #3072 Diagnostics portal → #3073 Den relay → #3074 desktop client. Each PR targets |
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.
Value
The desktop currently collapses intermittent OpenWork Connect failures to “disconnected.” If the user was offline, behind a failing VPN/proxy, hitting TLS/DNS trouble, receiving an HTTP error, or losing the MCP during initialize/tools discovery, the evidence is gone by the time support joins them.
This PR gives users who explicitly opt in a bounded, user-visible incident reporter:
openwork-cloudMCP configuration only after opt-inThis makes failures supportable for consenting users without collecting prompts, tokens, URLs, tool payloads, or member identity.
Opt-in guarantee — disabled by default
A fresh install, an upgrade with no stored diagnostics choice, a missing preference, or malformed preference data all resolve to disabled. Until the user explicitly enables Share desktop Connect diagnostics, the desktop:
x-openwork-connect-clientcorrelation headerOnly the exact stored value
connectionDiagnosticsEnabled: trueenables reporting. Turning the preference off immediately clears the local UUID, retry queue, and failure state. This behavior fails closed when local storage is unavailable or unreadable.Scope
This is the desktop/local-server slice only. It does not modify Den, the diagnostics service, plugins, or OpenCode core. The MCP transport being diagnosed is Streamable HTTP over DNS/TCP/TLS; there is no UDP path here.
The small
packages/typesincident contract is identical to the contract in the diagnostics and Den sibling PRs so this branch independently builds fromdev. Merge this after the diagnostics and Den slices; the identical contract patch then drops out.Checks on the current opt-in revision
git diff --check— passedEarlier feature-branch checks, before the opt-in follow-up commit:
use memoand chunk-size warningsManual verification
After the Den slice is deployed:
No production deployment or live on-prem customer verification is included.
Split 3 of 3. Merge after the diagnostics portal and Den relay.