We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b56299 commit 9c362d3Copy full SHA for 9c362d3
src/vs/workbench/api/common/extHostMcp.ts
@@ -270,7 +270,12 @@ class McpHTTPHandle extends Disposable {
270
this._mode = { value: HttpMode.Http, sessionId: nextSessionId };
271
}
272
273
- if (this._mode.value === HttpMode.Unknown && res.status >= 400 && res.status < 500) {
+ if (this._mode.value === HttpMode.Unknown &&
274
+ // We care about 4xx errors...
275
+ res.status >= 400 && res.status < 500
276
+ // ...except for 401 and 403, which are auth errors
277
+ && res.status !== 401 && res.status !== 403
278
+ ) {
279
this._log(LogLevel.Info, `${res.status} status sending message to ${this._launch.uri}, will attempt to fall back to legacy SSE`);
280
this._sseFallbackWithMessage(message);
281
return;
0 commit comments