Fix Cloudflare provider connect prompts in VS Code#10020
Open
mujtaba93 wants to merge 3 commits intoKilo-Org:mainfrom
Open
Fix Cloudflare provider connect prompts in VS Code#10020mujtaba93 wants to merge 3 commits intoKilo-Org:mainfrom
mujtaba93 wants to merge 3 commits intoKilo-Org:mainfrom
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (4 files)
Reviewed by gpt-5.5-2026-04-23 · 1,429,085 tokens |
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.
Context
Fixed a bug where the VS Code Settings → Providers → Connect dialog for Cloudflare Workers AI and Cloudflare AI Gateway only collected the API key, ignoring required fields (Account ID and Gateway ID). The TUI and upstream OpenCode handled this correctly, but the VS Code dialog was not rendering the provider-defined prompts.
Implementation
The fix involved four changes across the webview and extension:
The root cause was that ProviderAuthMethod includes an optional prompts array that providers can use to request additional fields (e.g., Cloudflare's accountId and gatewayId), but the VS Code dialog was ignoring this array and only rendering the API key field.
How to Test