Repository navigation
Open a $20 credit checkout from beam setup and drop semicolons from CLI copy - #2001
Merged
Merged
Conversation
…LI copy Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
jackf-beamcloud
approved these changes
Oct 13, 2026
jackf-beamcloud
left a comment
Contributor
There was a problem hiding this comment.
Looks good: Enter at the credits step POSTs {total_cents_amount: 2000} to <auth_url>/cli/checkout with the context's own token (matches internal-api#321), only opens https URLs from a 201, and falls back to the dashboard link otherwise. The rest is copy and the 0.1.280 bump. Non-blocking: if the gateway's first sentence is the one carrying the link (e.g. "Add credits at https://..."), credit_reason will still print the URL, and if neither checkout nor a link is available the user only sees the error after pressing Enter.
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.
At the credits step,
beam setupnow shows one sentence ("This workspace has no credits yet."), and pressing Enter opens a $20 Stripe Checkout for the signed-in account through internal-api's newPOST /v2/oauth/cli/checkout(beam-cloud/internal-api#321). If that endpoint isn't available, it opens the dashboard credits page as before. The header no longer shows the workspace ID, and success reads "Added credits". The sentence is derived from the gateway's message, so the new wording shows against both the current and the updated internal-api messages.CLI, onboarding and login messages no longer use semicolons. Bumps the SDK to 0.1.280.
Validation: 601 SDK tests passed, 2 skipped. New onboarding cases cover the checkout request and the URL it opens, the fallback to the credits page, and the one-sentence reason for old and new server messages. Ruff passed on the changed files.
Made with Cursor
Summary by cubic
Pressing Enter at the credits step in
beam setupnow opens a $20 Stripe Checkout for the signed-in account, falling back to the dashboard credits page if checkout is unavailable.Written for commit 9df60de. Summary will update on new commits.