feat(setup): recover rejected client imports safely - #258
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 22 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. 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, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughUnsafe guided client-entry imports now preserve failure reasons, retain only safe setup inputs, and route users to manual transport setup. CLI and Console flows clear rejected imported data, while documentation and tests cover the recovery behavior and redaction guarantees. ChangesGuided import recovery
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant runSetupCommand
participant runGuidedClientEntryImport
participant runInitCommand
participant ConfigFile
User->>runSetupCommand: Select import and client entry
runSetupCommand->>runGuidedClientEntryImport: Attempt guided import
runGuidedClientEntryImport-->>runSetupCommand: Return manual-recovery outcome
runSetupCommand->>runInitCommand: Start reviewed manual transport setup
runInitCommand->>ConfigFile: Write manual configuration
ConfigFile-->>User: Complete setup
Possibly related PRs
Poem
Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/cli/setup-client-entry-import.ts`:
- Around line 26-34: Update the ClientEntryImportSetupError constructor to set
this.name to "ClientEntryImportSetupError" after calling the CliUsageError
constructor, matching the naming convention used by ClientEntryImportError while
preserving existing inheritance and importReason behavior.
In `@src/console/console-assets.ts`:
- Around line 1186-1198: The manual recovery handlers redundantly query the
onboarding form instead of using the existing closure reference. Update
bindClientEntryManualRecoveryAction and the corresponding code around the other
referenced handler to accept or reuse clientEntryOnboardingForm, removing the
duplicate byId("client-entry-onboarding-form") lookup while preserving the
textarea-clearing behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 5f26cc86-d4d2-4962-bf32-3be797cc1826
📒 Files selected for processing (9)
README.mddocs/cli.mdsrc/cli/setup-client-entry-import.tssrc/cli/setup.tssrc/console/console-assets.tssrc/console/console-server.tstests/console-server.test.tstests/readme-product-contract.test.tstests/setup-command.test.ts
|
CodeRabbit rate-limit exception for the current head cd9e9c9:
The existing CHANGES_REQUESTED decision applies only to superseded head 9ab88f1 and has no unresolved threads. Dismissing that stale bot review under the documented rate-limit exception. |
Summary
Security impact
Validation results
Part of #204.