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
feat(mobile): clone or locate a task's repository from Tasks' Not in Orca sheet - #51817
In Tasks' GitHub Project view, starting a workspace for an item whose repository wasn't in Orca ended at "Add this repository from the desktop app". Now that sheet offers to clone the repository to the computer, or to pick its folder if a copy is already there. Then it carries on and starts the item's workspace.
Files
Added
Deleted
Net
Test
0
0
0
0
Prod
21
$\color{#1a7f37}{\Huge{\mathbf{+}}}$343
$\color{#cf222e}{\Huge{\mathbf{−}}}$98
$\color{#1a7f37}{\Huge{\mathbf{+}}}$245
What Changed
Before: "Repository not in Orca" with a sentence about the desktop, plus Open in GitHub / Copy repository.
After:
"Not in Orca" with the repository as subtitle and two rows above the old ones.
Clone to swaps the same drawer to the Clone view with https://<the Project's GitHub host>/<owner>/<repo>.git filled in.
Choose its folder… swaps it to the folder browser (the drawer fills, as bot import's does).
These are views of the Not in Orca drawer itself, never a sheet over it; Back (header or Android) steps back one view and from the first one returns to the prompt.
Once the new project is listed and its GitHub identity resolves, the item's Create Workspace runs again. Each item that's waiting keeps its own entry. They run one at a time, since a create fills the one workspace draft, and each matches on the GitHub Project host its add started from.
If the added folder isn't that repository, the same sheet comes back rather than starting work in the wrong project.
A clone left running and finishing later continues the item that started it, even if another one was opened meanwhile.
Hosts without mobile.project-admission.v1 keep the old sheet.
Why
It reuses #51814's add views and the host's own add/clone rules, so Tasks gets no second copy. The continuation re-runs the item's own matching (origin, fork parent, Enterprise host) against the refreshed list, instead of trusting that whatever was added is the right repository.
Linked Issue
#24018: this adds the Tasks entry point; the New workspace one is in #51814.
Visual Proof
Not captured. The sheet appears only in GitHub Project mode, which needs a read:project login that the test host doesn't have (the approved mock was rebuilt from code for the same reason). The Clone and folder views it shows are the ones captured in #51814.
Testing
Typecheck, lint, React Doctor and pnpm check:changed (45 checks) pass on the stack.
Reviewed paths: a missing repository with a known slug offers both rows; an unknown slug, or an older host, keeps the old copy; continuation waits for the listing and slug readiness, runs once, and survives a failed reread.
Not run live, for the reason above.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
No new test: the matching it relies on is the existing GitHub Project repository match.
Performance
None while nothing is pending. The continuation effect returns at once without a waiting item, and when one is waiting it scans the listed repositories once per listing change until the item runs. Tasks never asks servers for their capability; it adds only to the paired computer.
Risk
If the continuation misfires, the item's Create Workspace either doesn't start (the user taps it again) or the Not in Orca sheet comes back. It never creates in a different repository, because the item's own repository match decides. A plain revert restores the old sheet.
Level: Low
AI Disclosure
Review
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
I stated the risk: what could break, for whom, and how to back it out
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
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.
No actionable comments were generated in the recent review.
Walkthrough
Mobile adds a shared host-folder browser and a project-admission flow for adding folders, cloning repositories, and creating repositories. New-worktree and task flows expose these options and handle admitted repositories. Bot import now uses the shared folder browser. Desktop host-path browsing uses shared path helpers.
Merge Risk: Low · up to a078f
The new Tasks and New workspace add-project flows work in the main path. Several edge-case rough spots remain: folder names with backslashes, hidden folders, retrying a failed clone, overlapping admissions, and one untranslated Portuguese label. These are worth following up on but are not likely to cause serious failures.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: Tasks' Not in Orca sheet gains a way to clone or locate a task's repository. The changeset adds clone and folder options to the Tasks missing-repository drawer (mobile…
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.
Description check
The description follows the template with the ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, and Checklist sections all filled in with substantive content. The Visual…
Full details: Title check
Explanation
The title names the main change: Tasks' Not in Orca sheet gains a way to clone or locate a task's repository. The changeset adds clone and folder options to the Tasks missing-repository drawer (mobile-tasks-project-detail-drawer, use-mobile-tasks-add-project, AddProjectDrawers) and a continuation that re-runs Create Workspace. The title is specific and matches the primary objective.
Full details: Description check
Explanation
The description follows the template with the ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, and Checklist sections all filled in with substantive content. The Visual Proof section explains why no capture was made, which the template allows only as N/A with a reason, and the author gives a reason tied to the test environment. The Linked Issue cites #24018 but the template asks for a 'Fixes #' issue link, and the description says the issue covers only the Tasks entry point. The Testing section says the change was not run live, yet the manual-testing box is unchecked while the automated-tests box is checked, and no new tests were added. The AI Disclosure section is empty. The Review section is empty. Overall the description is mostly complete with a few gaps: the linked issue format, the Visual Proof justification, the unfilled AI Disclosure, and the unclear testing claims.
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: ee1e121c-4017-4a7d-84c6-fc6da18ffbe8
Commits
Reviewing files that changed from the base of the PR and between bd2f865 and a078f60.
Files selected for processing: 11
mobile/src/i18n/locales/de.json
mobile/src/i18n/locales/en.json
mobile/src/i18n/locales/es.json
mobile/src/i18n/locales/fr.json
mobile/src/i18n/locales/ja.json
mobile/src/i18n/locales/ko.json
mobile/src/i18n/locales/pt.json
mobile/src/i18n/locales/ru.json
mobile/src/i18n/locales/tr.json
mobile/src/i18n/locales/zh-Hant.json
mobile/src/i18n/locales/zh.json
Files skipped from review as they are similar to previous changes: 10
mobile/src/i18n/locales/de.json
mobile/src/i18n/locales/en.json
mobile/src/i18n/locales/es.json
mobile/src/i18n/locales/fr.json
mobile/src/i18n/locales/ja.json
mobile/src/i18n/locales/pt.json
mobile/src/i18n/locales/ru.json
mobile/src/i18n/locales/tr.json
mobile/src/i18n/locales/zh-Hant.json
mobile/src/i18n/locales/zh.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Tasks' Not in Orca sheet now offers cloning or choosing an existing folder on a supported paired computer.
Tasks can add a missing repository and continue that item's workspace creation.
Review scope used the full PR because the previous and current commits have different merge bases with the supplied target.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Item has no matching repository] --> B[Not in Orca]
B --> C[Clone or choose folder]
C --> D[Queue item and original GitHub host]
D --> E[Refresh repository list]
E --> F[Wait for cached lookup and free workspace form]
F --> G[Retry item repository match]
G --> H[Open workspace form]
G --> B
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Clone replaces newer project pick
Start a clone in New workspace, go Back to the project picker, and choose another project before the clone finishes. opening.current changes only when another add opens, so the clone still finishes with current: true. This callback then selects the cloned project and can clear the source attached to the newer pick. Pressing Create afterward can start the workspace in the wrong repository.
Track later project picks too, and only refresh the list when the user has moved on.
A GitHub Project item whose repository wasn't in Orca ended at "Add this
repository from the desktop app". The sheet now offers Clone to the computer
(URL filled in from the item's repository and GitHub host) and Choose its
folder, using New workspace's add sheets. Once the project is listed and its
GitHub identity resolves, the item's Create Workspace runs again; a folder that
isn't that repository brings the sheet back instead. Hosts that can't take a
project from the phone keep the old sheet.
… Not in Orca drawer
They opened as a second sheet over Tasks. The Not in Orca drawer now swaps its
own content to the add views (filling for the folder browser), Back from the
first one shows the prompt again, and an added project closes the drawer before
the item's create runs. The drawer moves to its own file.
The reason will be displayed to describe this comment to others. Learn more.
Retry accepts the wrong checkout
For a github.com item, choosing a different Git checkout whose path ends in /owner/repo can still open the item's workspace form there. A failed GitHub lookup, or a checkout with a non-GitHub origin, leaves repository: null, which githubProjectRepoSlugReady accepts. This retry then calls the existing matcher, whose fallback trusts the folder name.
Require a resolved origin or fork-parent match before continuing automatically. Otherwise, show Not in Orca again.
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.
#51814 merged; this is now based on main.
ELI5
In Tasks' GitHub Project view, starting a workspace for an item whose repository wasn't in Orca ended at "Add this repository from the desktop app". Now that sheet offers to clone the repository to the computer, or to pick its folder if a copy is already there. Then it carries on and starts the item's workspace.
What Changed
https://<the Project's GitHub host>/<owner>/<repo>.gitfilled in.mobile.project-admission.v1keep the old sheet.Why
It reuses #51814's add views and the host's own add/clone rules, so Tasks gets no second copy. The continuation re-runs the item's own matching (origin, fork parent, Enterprise host) against the refreshed list, instead of trusting that whatever was added is the right repository.
Linked Issue
#24018: this adds the Tasks entry point; the New workspace one is in #51814.
Visual Proof
Not captured. The sheet appears only in GitHub Project mode, which needs a
read:projectlogin that the test host doesn't have (the approved mock was rebuilt from code for the same reason). The Clone and folder views it shows are the ones captured in #51814.Testing
Typecheck, lint, React Doctor and
pnpm check:changed(45 checks) pass on the stack.Reviewed paths: a missing repository with a known slug offers both rows; an unknown slug, or an older host, keeps the old copy; continuation waits for the listing and slug readiness, runs once, and survives a failed reread.
Not run live, for the reason above.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
No new test: the matching it relies on is the existing GitHub Project repository match.
Performance
None while nothing is pending. The continuation effect returns at once without a waiting item, and when one is waiting it scans the listed repositories once per listing change until the item runs. Tasks never asks servers for their capability; it adds only to the paired computer.
Risk
If the continuation misfires, the item's Create Workspace either doesn't start (the user taps it again) or the Not in Orca sheet comes back. It never creates in a different repository, because the item's own repository match decides. A plain revert restores the old sheet.
Level: Low
AI Disclosure
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)