feat(connections): extract shared OAuth flow and auto-authenticate from empty state#2543
Open
viktormarinho wants to merge 1 commit intomainfrom
Open
feat(connections): extract shared OAuth flow and auto-authenticate from empty state#2543viktormarinho wants to merge 1 commit intomainfrom
viktormarinho wants to merge 1 commit intomainfrom
Conversation
Extract the full OAuth flow (popup → token save → query invalidation) from connection/index.tsx into a shared authenticateConnection() helper so it can be reused across components. - New: apps/mesh/src/web/lib/authenticate-connection.ts - connection/index.tsx: handleAuthenticate now delegates to the helper - no-llm-binding-empty-state.tsx: "Connect OpenRouter" now triggers OAuth immediately (stays on Home) instead of navigating to the connection detail page Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Contributor
🧪 BenchmarkShould we run the Virtual MCP strategy benchmark for this PR? React with 👍 to run the benchmark.
Benchmark will run on the next push after you react. |
Contributor
Release OptionsShould a new version be published when this PR is merged? React with an emoji to vote on the release type:
Current version: Deployment
|
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
connection/index.tsxintoauthenticate-connection.ts— a shared helper usable by any componentconnection/index.tsx:handleAuthenticatedelegates to the helper (no behavior change)no-llm-binding-empty-state.tsx: "Connect OpenRouter" now triggers OAuth immediately in a popup, staying on the Home page, instead of navigating away to the connection detail pageTest plan
🤖 Generated with Claude Code
Summary by cubic
Extracted the OAuth flow into a shared helper and enabled one-click OpenRouter authentication from the empty chat state without leaving Home. This reduces duplication and refreshes UI state automatically after auth.
New Features
Refactors
Written for commit 727aa37. Summary will update on new commits.