feat: offer to open the token-creation page during token-based connects - #26
Merged
Merged
Conversation
Token-based integration and cloud connects (Honeycomb, Datadog, Axiom, Better Stack, Devin, Cursor, Factory, Cloudflare, ...) now say explicitly that a credential must be created and pasted, ask "Open <url> in your browser?" (Y opens it directly at the provider's token-creation page via the existing openBrowser helper), and then prompt for the paste. In non-interactive mode nothing changes except the missing-flag error now includes the token-creation URL as a hint. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01216vVfPt7yoPrJd6aMeBm7
boristane
approved these changes
Aug 12, 2026
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.
Requested by boris · Slack thread
Before
For token-based providers (e.g.
polylane integration connect --type honeycomb), the wizard showed the provider instructions and the token-creation URL in a note, then went straight to a hidden input. It wasn't clear enough that the user has to go create an API token, and they had to copy the URL into a browser themselves.After
The credential step now:
openBrowserhelper (same one the GitHub/Slack connect flow uses).Non-TTY /
--non-interactivebehavior is unchanged (no prompts, no browser): theMissing required flag: --api-keyerror now just includes the token-creation URL as its hint.How
Implemented once in
secretStep(src/commands/helpers.ts), the shared wizard step behind every credential prompt — so it uniformly covers Honeycomb, Datadog (API + app keys), Axiom, Better Stack (all three tokens), Devin, Cursor, Factory, and the token-basedcloud connectproviders (Cloudflare, Fly.io, PlanetScale, Modal, Render, …). The per-provider token-creation URLs already existed in the codebase asSecretPromptOptions.linkon every call site, so no new metadata or hardcoded map was needed.Ctrl+C/back on the new confirm behaves like backing out of the step, matching the existing wizard back-navigation.Testing
npm run typecheck(against the live OpenAPI spec via codegen),npm run lint,npm test— all green (183/183 tests).integration connect --type honeycomb --region us --non-interactiveerrors withMissing required flag: --api-keyand hintOpen Honeycomb: https://ui.honeycomb.io— no prompt, exit non-zero.y), then the hidden paste prompt — in that order.🤖 Generated with Claude Code
https://claude.ai/code/session_01216vVfPt7yoPrJd6aMeBm7
Generated by Claude Code