refactor(onboard): centralize reused dashboard metadata - #5130
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThis PR refactors dashboard port selection and sandbox reuse state management by extracting duplicated logic into dedicated, testable resolver functions. The main onboarding flow is simplified by adopting these helpers in sandbox creation and sandbox reuse paths. ChangesDashboard and Sandbox Reuse State Refactoring
🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
PR Review AdvisorFindings: 0 needs attention, 0 worth checking, 0 nice ideas Consider writing more tests for
This is an automated advisory review. A human maintainer must make the final merge decision. |
E2E Advisor RecommendationRequired E2E: Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
Vitest E2E Scenario RecommendationRequired Vitest E2E scenarios: Dispatch required Vitest E2E scenarios:
Full Vitest E2E advisor summaryVitest E2E Scenario AdvisorBase: Required Vitest E2E scenarios
Optional Vitest E2E scenarios
Relevant changed files
|
Selective E2E Results — ✅ All requested jobs passedRun: 27269640744
|
|
✨ Related open issues: |
Summary
Centralizes the reused-sandbox dashboard update path so interactive and non-interactive sandbox reuse share the same forward, CHAT_UI_URL, Hermes dashboard, and registry metadata handling. This draft PR is stacked on #5128 and keeps behavior unchanged while removing duplicated createSandbox logic.
Related Issue
Refs #3802
Changes
src/lib/onboard/sandbox-reuse.tsfor reused dashboard forward and metadata updates.createSandboxwith the shared helper.Type of Change
Verification
Targeted checks run:
GitHub validation:
PR check suite: passing after commit
2d9d81a84PR Review Advisor: passing, 0 needs attention / 0 worth checking / 0 nice ideas
CodeRabbit: skipped while draft
Required live E2E:
double-onboard-e2eandtoken-rotation-e2epassed in https://github.com/NVIDIA/NemoClaw/actions/runs/27269640744Required scenario E2E:
ubuntu-repo-cloud-openclawpassed in https://github.com/NVIDIA/NemoClaw/actions/runs/27269640556npx prek run --all-filespassesnpm testpassesTests added or updated for new or changed behavior
No secrets, API keys, or credentials committed
Docs updated for user-facing behavior changes
npm run docsbuilds without warnings (doc changes only)Doc pages follow the style guide (doc changes only)
New doc pages include SPDX header and frontmatter (new pages only)
Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit