You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Open fresh desktop profiles in a ~ folder workspace - #37898
A fresh desktop profile now opens in an ordinary folder workspace at the OS home directory, with its existing shell. The initial repo group is named ~, so it reads as the user's home directory. Onboarding Continue saves the visibly selected default agent and opens it through the normal launcher in that workspace. First use and Help replay share the same completion behavior.
Initialization runs only when no saved profile document exists. The ordinary folder record, selected workspace, fresh-profile defaults and inherited telemetry consent are published through the existing atomic profile publication. Existing saved profiles, including empty catalogs, deleted groups and user-renamed groups, stay unchanged. Generic remote/headless stores do not opt in. These are intended boundaries; there is no new setting, saved marker, workspace type, directory creation or special agent launcher.
The rightmost + retains ordinary last-project workspace creation and the chosen default agent; FolderPlus opens Add Project. Completion retains the original shell and existing agent tabs. A failed settings save keeps onboarding open without launching anything. Empty profiles keep Add Project as the fallback. The separate Set up later change is tracked in #38028.
Independent review and the reference comparison are complete. Real macOS and Windows QA covered initialization, exact shell directory, Explorer and graceful restart. Real Claude and Codex first-use and Help-replay flows each reached a reply with the selected agent, retaining the shell and prior tabs. Screenshots, driver identities, stopped PIDs and real configuration hashes were inspected. This evidence carries across main merges and test-only corrections; the later name-only change is a tests-row flow.
The latest blocking conflict was resolved by merging main a5da3ed in d5c5ac3. This retains main's current host-owned launch path and the captured workspace owner. Import paths follow main's module moves. Five material profile-initialization cases remain from two suites main removed; unrelated deleted coverage stays deleted. A selector and request type moved unchanged to satisfy lint. Test-only 81879bb corrects a relocated dynamic import. Both retained independent reviewers accept the integration; the retained Codex reviewer verified the final import/lint-only corrections, carrying the Claude production receipt; prior real QA carries across this merge.
Validation on final 2b2e79b: all 54 tests in ten focused suites passed. Final local changed check passed 29/32; code quality printed zero findings, broad units remained incomplete with truncated output, and typechecks remained queued at the explicit two-minute limits. All exact-head GitHub checks passed, including twelve unit shards, static analysis/typecheck, changed E2E, both packages, persistence and all three WSL distributions. Prior 41 rename-owning and 22 merge-owning tests and all real-run proof remain recorded; no full local gate pass is claimed.
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
New profile initialization builds persisted defaults with a Home repository and active local workspace. Profile stores can initialize Home when enabled and no profile document exists; startup disables this in serve mode. Onboarding completion continues into a selected workspace or opens Add Project when none is selected. Agent launches can retain the captured workspace execution host, and workspace activation reports explicit outcomes. The changes also centralize local project record creation and adjust folder-workspace lookup behavior.
Merge Risk: Low · up to f0fd9
Profiles created from a serve-mode window can unexpectedly include Home. Failed profile creation can leave an extra listed profile, and unexpected launch errors lack diagnostics. These are bounded risks to address or accept before merging.
Pre-merge checks: 3 · 2
Failed checks: 2 warnings
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 32.14% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta…
Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check
The description explains the changes and reports test results, but it omits most template sections. It also lacks visual proof and a risk and rollback assessment.
Use the template headings. Add a plain-language summary, the problem and alternatives, and an actual linked issue if required. Attach before-and-after visual proof. Add reproducible test steps, a risk level, affected users and rollback guid…
Passed checks: 3 passed
Check name
Status
Explanation
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Title check
The title "Open fresh desktop profiles in a ~ folder workspace" matches the main change: fresh desktop profiles now start in a folder workspace at the OS home directory. The changeset adds Home initia…
Full details: Title check
Explanation
The title "Open fresh desktop profiles in a ~ folder workspace" matches the main change: fresh desktop profiles now start in a folder workspace at the OS home directory. The changeset adds Home initialization in new-profile state, the persistence store, and onboarding completion, all of which the title covers. It is concise and specific. It does not mention onboarding completion, which is a secondary but related part of the change.
Full details: Docstring Coverage
Explanation
Docstring coverage is 32.14% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 28 functions across 47 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Full details: Description check
Resolution
Use the template headings. Add a plain-language summary, the problem and alternatives, and an actual linked issue if required. Attach before-and-after visual proof. Add reproducible test steps, a risk level, affected users and rollback guidance. Complete the review, upstream-boundary and checklist sections, and add AI disclosure if applicable.
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Fresh desktop profiles start in an ordinary folder workspace at the OS home directory, with the initial repo group named ~. Onboarding Continue saves the visible agent selection and opens it through normal workspace activation. Existing saved and renamed groups remain unchanged. Set up later is tracked separately in #38028.
Brennan authorized squash-merging this PR, followed by #38028. A blocking main conflict required merging a5da3ed in d5c5ac3. The resolution preserves main’s current host-owned launcher and the captured workspace owner. Relocated imports were updated; only five material profile-initialization cases were retained from two suites main deleted. The pure selector and request type were extracted unchanged for lint. Both retained reviewers accept the production merge. Test-only 81879bb corrects one dynamic import in the relocated launcher suite. Final 2b2e79b consolidates identical imports and adds fixture SAFETY comments; the retained Codex reviewer accepted both corrections with Claude’s d5c5ac3 production receipt carried to 2b2e79b under the review workflow’s CI-only correction rule: the later commits change only an existing test import, import grouping and fixture comments. Codex narrowly verified those exact deltas; behavior and assertions are unchanged. Prior app QA carries; this merge introduces no new user behavior.
Validation on 2b2e79b: ten focused suites passed all 54 tests. Final local changed check passed 29/32; code quality printed zero new findings, broad units produced truncated output and typecheck remained queued before the explicit two-minute limits. No full local pass is claimed. All exact-head GitHub checks passed, including twelve unit shards, static analysis/typecheck, changed E2E, both packages, persistence and all three WSL distributions. GitHub reports CLEAN and MERGEABLE, out of draft. Prior 41 rename-owning and 22 merge-owning tests and app proof carry.
QA carry: real macOS Claude and Codex first-use/Help-replay runs at cddbdf9 reached a reply while preserving the shell and prior tabs. Earlier Windows/macOS exact-directory, Explorer and graceful-restart evidence remains valid. Screenshots, driver identities, stopped PIDs and real configuration hashes were inspected. The initial review head 1bcde73 and subsequent main merges/test-only corrections, including 2e232f1, retain that evidence. Later shipped change 8a47976 changes only the initial display name from Home to ~ (tests-row flow); 3a5d41d is a main merge with a behavior-preserving conflict resolution; bd21600 and afa0597 are test-only. No run-row behavior changed and no agent-response or whole-QA replay was needed.
For Brennan's review
Flow
This PR: requested agent replies in Home
Fresh onboarding, Claude
Help replay, Codex; jump to final step
Fresh onboarding, Codex
Help replay, Claude
Before this PR, both first use and Help replay opened Add Project:
Log unexpected launch exceptions before returning a refusal.
When openAgentInNewTab throws, the catch block discards the original error. Some callers show a generic toast for the returned null, but no boundary preserves the exception for diagnostics. The previous implementation propagated these exceptions instead of discarding them.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
⚠️ Outside diff range comments (1)
Minor · Report the activation outcome from both onboarding… · onboarding-folder-agent-launch.ts:96-117
src/renderer/src/lib/onboarding-folder-agent-launch.ts:96-117 Minor · Functional Correctness · Quick win
Report the activation outcome from both onboarding launch paths.
When the selected workspace disappears, activateAndRevealWorktree(...) returns an unnotified workspace-missing refusal. The non-structured path discards it. The structured path stops before opening the provisional session but does not report it.
Use the outcome API and reportAgentWorkspaceActivation(...). Keep the existing boolean behavior when no agent is selected. The reporter preserves notifications for missing workspaces and does not duplicate path-blocked notifications.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
⚠️ Outside diff range comments (1)
Minor · Preserve the serve-mode Home exclusion for newly created profiles. · orca-profiles.ts:169-175
src/main/ipc/profiles/orca-profiles.ts:169-175 Minor · Functional Correctness · Quick win
Preserve the serve-mode Home exclusion for newly created profiles.
When a serve-mode process opens a window, a user can create a local or cloud-linked profile through the registered handlers. Both handlers currently initialize the profile with Home. This violates the initializeHomeWorkspace: !state.isServeMode contract.
Thread !state.isServeMode through the existing lifecycle options and let the shared initializer create the default state without Home when it is false. Apply the option to both creation handlers.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
… sign-in probe and onboarding trust prompt
- setup-script-import: imported setups are saved from the Review setup
script dialog since #37937.
- github-url-smart-input-transition: the GitLab source lists through
gitlab:listWorkItems since #32005, so stub that channel.
- structured-chat-tabs-open-close: the Claude catalog probe also sends an
initialize request for sign-in discovery since #37191.
- golden-core-flows: onboarding launches the chosen agent in the fresh ~
workspace (#37898), whose first launch asks the per-repo agent folder
trust question (#38946); answer it before adding a project.
… sign-in probe and onboarding trust prompt (#39983)
- setup-script-import: imported setups are saved from the Review setup
script dialog since #37937.
- github-url-smart-input-transition: the GitLab source lists through
gitlab:listWorkItems since #32005, so stub that channel.
- structured-chat-tabs-open-close: the Claude catalog probe also sends an
initialize request for sign-in discovery since #37191.
- golden-core-flows: onboarding launches the chosen agent in the fresh ~
workspace (#37898), whose first launch asks the per-repo agent folder
trust question (#38946); answer it before adding a project.
Co-authored-by: OrcaWin <[email protected]>
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
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.
A fresh desktop profile now opens in an ordinary folder workspace at the OS home directory, with its existing shell. The initial repo group is named
~, so it reads as the user's home directory. Onboarding Continue saves the visibly selected default agent and opens it through the normal launcher in that workspace. First use and Help replay share the same completion behavior.Initialization runs only when no saved profile document exists. The ordinary folder record, selected workspace, fresh-profile defaults and inherited telemetry consent are published through the existing atomic profile publication. Existing saved profiles, including empty catalogs, deleted groups and user-renamed groups, stay unchanged. Generic remote/headless stores do not opt in. These are intended boundaries; there is no new setting, saved marker, workspace type, directory creation or special agent launcher.
The rightmost + retains ordinary last-project workspace creation and the chosen default agent; FolderPlus opens Add Project. Completion retains the original shell and existing agent tabs. A failed settings save keeps onboarding open without launching anything. Empty profiles keep Add Project as the fallback. The separate Set up later change is tracked in #38028.
Independent review and the reference comparison are complete. Real macOS and Windows QA covered initialization, exact shell directory, Explorer and graceful restart. Real Claude and Codex first-use and Help-replay flows each reached a reply with the selected agent, retaining the shell and prior tabs. Screenshots, driver identities, stopped PIDs and real configuration hashes were inspected. This evidence carries across main merges and test-only corrections; the later name-only change is a tests-row flow.
The latest blocking conflict was resolved by merging main a5da3ed in d5c5ac3. This retains main's current host-owned launch path and the captured workspace owner. Import paths follow main's module moves. Five material profile-initialization cases remain from two suites main removed; unrelated deleted coverage stays deleted. A selector and request type moved unchanged to satisfy lint. Test-only 81879bb corrects a relocated dynamic import. Both retained independent reviewers accept the integration; the retained Codex reviewer verified the final import/lint-only corrections, carrying the Claude production receipt; prior real QA carries across this merge.
Validation on final 2b2e79b: all 54 tests in ten focused suites passed. Final local changed check passed 29/32; code quality printed zero findings, broad units remained incomplete with truncated output, and typechecks remained queued at the explicit two-minute limits. All exact-head GitHub checks passed, including twelve unit shards, static analysis/typecheck, changed E2E, both packages, persistence and all three WSL distributions. Prior 41 rename-owning and 22 merge-owning tests and all real-run proof remain recorded; no full local gate pass is claimed.