Repository navigation
Fix mobile folder workspace visibility - #5679
Conversation
|
Ready to review this PR? Stage has broken it down into 7 individual chapters for you: Chapters generated by Stage for commit d082496 on Jun 18, 2026 5:56am UTC. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 63cb910d38053fa10e379fc26ea9c457398269d4 and d082496. 📒 Files selected for processing (7)
💤 Files with no reviewable changes (4)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthroughThis pull request adds folder-workspace as a first-class workspace kind across the codebase. The shared 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (3)
mobile/app/h/[hostId]/session/[worktreeId].tsx (2)
797-797: ⚡ Quick winDocument the folder workspace ID format convention.
The
folder:prefix detection is correct, but a brief comment explaining this format would help maintainability if the convention ever changes.📝 Suggested comment
+ // Why: folder workspace routes use the format 'folder:<id>' per the backend + // mobile session terminal creation (see TerminalWorkspaceLaunchScope). const isFolderWorkspaceRoute = worktreeId.startsWith('folder:')
4175-4189: ⚡ Quick winAdd comment explaining why git controls are hidden for folder workspaces.
This conditional rendering is driven by a non-obvious constraint (folder workspaces are not git repositories and don't support git operations). As per coding guidelines, adding a short comment would help future developers understand why this button is conditionally rendered.
📝 Suggested comment
+ {/* Why: folder workspaces are not git repositories, so hide git-specific + actions for those routes. */} {!isFolderWorkspaceRoute && ( <PressableAs per coding guidelines: "When writing or modifying code driven by a design doc or non-obvious constraint, add a comment explaining why the code behaves the way it does."
Source: Coding guidelines
mobile/src/components/WorktreeListRow.tsx (1)
67-69: 💤 Low valueConsider adding a brief comment to document the folder metadata fallback strategy.
The metadata derivation logic for folder workspaces uses a fallback chain (comment → path → 'Folder'), which is non-obvious from the surrounding code. A brief one-liner would improve maintainability.
📝 Suggested comment
const isFolderWorkspace = item.workspaceKind === 'folder-workspace' + // Why: folder workspaces display comment or path as meta; git workspaces show branch const folderMeta = item.comment?.trim() || item.path || 'Folder' const metaText = isFolderWorkspace ? folderMeta : displayBranch(item.branch)As per coding guidelines: "When writing or modifying code driven by a design doc or non-obvious constraint, add a comment explaining why the code behaves the way it does."
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: eedc6a98-90a0-4e0f-9435-d6667ef042d7
📥 Commits
Reviewing files that changed from the base of the PR and between 62fc723 and 63cb910d38053fa10e379fc26ea9c457398269d4.
📒 Files selected for processing (7)
mobile/app/h/[hostId]/index.tsxmobile/app/h/[hostId]/session/[worktreeId].tsxmobile/src/components/WorktreeListRow.tsxmobile/src/worktree/workspace-list-sections.tssrc/main/runtime/orca-runtime.test.tssrc/main/runtime/orca-runtime.tssrc/shared/runtime-types.ts
Co-authored-by: Orca <[email protected]>
63cb910 to
d082496
Compare
Co-authored-by: Orca <[email protected]>
Summary
Fixes #5665
Verification
Made with Orca 🐋