Skip to content

fix(onboarding): route token prompt through readline stdout#69

Merged
2witstudios merged 1 commit into
mainfrom
fix/onboarding-token-prompt
Jun 22, 2026
Merged

fix(onboarding): route token prompt through readline stdout#69
2witstudios merged 1 commit into
mainfrom
fix/onboarding-token-prompt

Conversation

@2witstudios

Copy link
Copy Markdown
Owner

Summary

  • Token prompt "Paste your PageSpace token: " was written to stderr before readline was set up, causing it to appear invisible or reordered in some terminals
  • Moved the prompt string into rl.question() so readline owns it on stdout — applied to both runOnboarding() and loginCommand()

Test plan

  • Run pagespace with no credentials — confirm Paste your PageSpace token: appears with cursor waiting on the same line
  • Run pagespace login — same check
  • pagespace status exits 0 after onboarding

🤖 Generated with Claude Code

Stderr + readline stdout interleaving caused the "Paste your PageSpace
token: " prompt to appear invisible or reordered in some terminals.
Move the prompt string into rl.question() so readline owns it on stdout
— same fix applied to both runOnboarding() and loginCommand().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@2witstudios, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 23 minutes and 22 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e375d34a-3ad6-4902-a339-4cef379dbf4c

📥 Commits

Reviewing files that changed from the base of the PR and between 248fee6 and dc8d6ca.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • bin/pagespace.mjs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/onboarding-token-prompt

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@2witstudios 2witstudios merged commit deef28c into main Jun 22, 2026
2 checks passed
@2witstudios 2witstudios deleted the fix/onboarding-token-prompt branch June 22, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant