fix(mcp): surface OAuth completion errors (#34145)

This commit is contained in:
Aiden Cline 2026-06-26 22:21:16 -05:00 committed by GitHub
commit e1e0304a96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 11 deletions

View file

@ -263,7 +263,7 @@ mcpTest.instance(
expect(yield* mcp.finishAuth(name, "invalid-code")).toEqual({
status: "failed",
error: "OAuth completion failed",
error: "OAuth completion failed: Token exchange failed",
})
const entry = yield* auth.get(name)
expect(entry?.tokens?.accessToken).toBe("working-token")