From a9211af9ca6e48e35a4659a1fa84dd5fc321e504 Mon Sep 17 00:00:00 2001 From: devinfoley <139239+devinfoley@users.noreply.github.com> Date: Tue, 1 Dec 2026 07:06:10 +0000 Subject: [PATCH] fix(tool-access): drop code comments from OAuth redirect-policy check Addresses Greptile review: CONTRIBUTING.md forbids code comments in PRs. The rationale stays in the PR description. Co-Authored-By: Claude Opus 5.5 --- server/src/middleware/error-handler.ts | 2 -- .../tool-access/oauth/provider-failure-diagnostics.ts | 9 --------- 2 files changed, 11 deletions(-) diff --git a/server/src/middleware/error-handler.ts b/server/src/middleware/error-handler.ts index 80c40c7e1cc..72dc2c937ad 100644 --- a/server/src/middleware/error-handler.ts +++ b/server/src/middleware/error-handler.ts @@ -220,8 +220,6 @@ export function errorHandler( ); // An unreachable public provider catalog still answers 503 with its // retry guidance, but it is the provider's outage, not a server fault. - // An OAuth provider refusing Paperclip's callback URL is its redirect - // policy; the person still gets the 502 and its remediation. reportCrash( reportableError, req, diff --git a/server/src/services/tool-access/oauth/provider-failure-diagnostics.ts b/server/src/services/tool-access/oauth/provider-failure-diagnostics.ts index 10af1064c29..d84c08f641c 100644 --- a/server/src/services/tool-access/oauth/provider-failure-diagnostics.ts +++ b/server/src/services/tool-access/oauth/provider-failure-diagnostics.ts @@ -17,15 +17,6 @@ export function oauthProviderFailureDiagnosticsFor(error: unknown): Readonly