mirror of
https://github.com/cline/cline.git
synced 2026-09-19 10:13:34 +08:00
* fix: use vscode.env.asExternalUri for auth callback URLs in VS Code Web The OAuth callback redirect was broken in VS Code Web (code serve-web) environments because the callback URL used a raw vscode:// URI scheme, which the OS would route to the local desktop VS Code app instead of the web instance. This change wraps both getCallbackUrl() and getIdeRedirectUri() with vscode.env.asExternalUri() which properly transforms URIs based on the environment: - Desktop VS Code: unchanged (vscode://...) - VS Code Remote SSH: adds remote authority for proper routing - VS Code Web: transforms to HTTPS URL that routes through the web server Fixes #5109 (remaining callback redirect issue) Related: #2152 * fix: use HTTP-based auth callback for VS Code Web mode In VS Code Web (code serve-web), vscode:// URIs redirect to the desktop app instead of staying in the browser. This change uses AuthHandler (local HTTP server) for the auth callback in web mode, matching how CLI/standalone already handles auth. - getCallbackUrl: use AuthHandler when UIKind.Web - getIdeRedirectUri: return empty in web mode to avoid vscode:// redirect * fix: add fallback for openExternal RPC for JetBrains compatibility The openExternal host bridge RPC is not implemented in the JetBrains plugin, causing sign-in to fail silently. This adds a fallback to the 'open' npm package when the host RPC fails with UNIMPLEMENTED. Fixes #9164, #9137, #9138
Changesets
Hello and welcome! This folder has been automatically generated by @changesets/cli, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it in our repository
We have a quick list of common questions to get you started engaging with this project in our documentation