feat(diagnostics): add Connect debug proxy - #2979
Merged
reachjalil merged 4 commits intoJul 22, 2026
Merged
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. |
reachjalil
marked this pull request as ready for review
July 22, 2026 07:00
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.
Summary
This is a standalone diagnostics deployable. It does not modify Den API/Web, the OpenWork server, desktop, or OpenCode.
Related to #2975.
Scenario → expected diagnostics
defaultready; nofirstFailure; initialize and tools/list succeedauth-expiredWWW-Authenticateinvalid tokenengine_needs_auth/invalid_mcp_token; initialize trace shows HTTP 401forbiddenengine_needs_auth/wrong_mcp_resource; initialize trace shows HTTP 403downden-outageslowhangflaky-3missing-toolstools/listremovesexecute_capabilityin JSON and SSEcloud_tools_missing/cloud_tools_missing; tools_list succeeds with missing tool evidencebad-protocol1900-01-01corrupttoken-mint-fail/v1/mcp/tokenand current/api/den/v1/mcp/tokenreturn 503cloud_mcp_token_mint_failedbefore engine deliveryAuthentication and routing
DEBUG_PROXY_ACCESS_KEYauthorizes proxy use, is consumed from the generated URL path, and is never forwarded to Denopenwork-cloudMCP traffic then traverse the selected scenarioresourceand URL-encodedopenwork://den-authbase are rewritten to the scenario URL so the desktop does not switch back to the upstream originSecurity and operations
DEBUG_PROXY_ALLOWED_UPSTREAMSis enforced on decoded override hosts; non-HTTPS overrides are rejected except explicit loopback development originsflaky-Ncounters and the 100-row log are intentionally best-effort per Vercel instanceChecks
pnpm --filter @openwork-ee/diagnostics test— passed, 46 testspnpm --filter @openwork-ee/diagnostics build— passed; Next production build recognizes the control, catch-all, and Proxy routespnpm --filter @openwork-ee/diagnostics smoke:debug-proxy— passed against a spawned mock Den; verified Den HTML bootstrap, root-relative/_nextrouting, root-relative/api/dendesktop handoff, encoded base rewrite, routing-cookie removal, default MCP initialize/tools-list pass-through, auth-expired 401, and missing-tools tamperingManual/live verification
Deployment and exact desktop recovery steps are documented in
ee/apps/diagnostics/README.md.