Skip to content

feat(mobile): clone or locate a task's repository from Tasks' Not in Orca sheet - #51817

Merged
AmoabaKelvin merged 10 commits into
mainfrom
mobile-tasks-add-project
Nov 29, 2026
Merged

AmoabaKelvin merged 10 commits into
mainfrom
mobile-tasks-add-project

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

#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.

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)

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

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.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • 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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 7

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 99343dd5-50cc-4298-9bef-0fae5d38400d
Commits

Reviewing files that changed from the base of the PR and between f44167e and f7de8f8.

Files selected for processing: 59

  • config/mobile-localization-coverage-allowlist.json
  • mobile/src/bots/MobileBotExportFolderPage.tsx
  • mobile/src/bots/MobileBotImportExportSteps.tsx
  • mobile/src/bots/MobileBotImportSheet.tsx
  • mobile/src/bots/bot-import-host-reads.ts
  • mobile/src/components/feedback/IndeterminateProgressBar.tsx
  • mobile/src/components/list/ListGroup.tsx
  • mobile/src/components/list/MiddleClippedText.tsx
  • mobile/src/components/sheets/PickerListDrawer.tsx
  • mobile/src/host-folders/HostFolderBrowserPage.tsx
  • mobile/src/host-folders/host-directory-read.ts
  • mobile/src/host-folders/host-folder-paths.test.ts
  • mobile/src/host-folders/host-folder-paths.ts
  • 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
  • mobile/src/new-workspace/creation/forms/NewWorktreeFormSheet.tsx
  • mobile/src/new-workspace/creation/forms/new-worktree-modal-types.ts
  • mobile/src/new-workspace/creation/modal/NewWorktreeModal.tsx
  • mobile/src/new-workspace/creation/modal/NewWorktreeModalController.tsx
  • mobile/src/new-workspace/creation/modal/NewWorktreeModalDrawers.tsx
  • mobile/src/new-workspace/creation/modal/use-new-workspace-add-project.ts
  • mobile/src/new-workspace/creation/modal/use-new-worktree-drawer-navigation.ts
  • mobile/src/new-workspace/creation/runtime/use-new-workspace-repositories.ts
  • mobile/src/project-admission/AddProjectChoices.tsx
  • mobile/src/project-admission/AddProjectDrawers.tsx
  • mobile/src/project-admission/AddProjectFormSheets.tsx
  • mobile/src/project-admission/project-admission-operations.ts
  • mobile/src/project-admission/use-add-project-flow.ts
  • mobile/src/project-admission/use-clone-target-check.ts
  • mobile/src/project-admission/use-project-admission-hosts.ts
  • mobile/src/tasks/MobileTasksLegacySurface.tsx
  • mobile/src/tasks/item-detail/mobile-tasks-detail-styles.ts
  • mobile/src/tasks/mobile-tasks-project-workspace-types.ts
  • mobile/src/tasks/project-board/mobile-tasks-project-detail-drawer.tsx
  • mobile/src/tasks/project-board/use-mobile-tasks-add-project.ts
  • mobile/src/tasks/project-board/use-mobile-tasks-project-workspace-comment-actions.tsx
  • mobile/src/tasks/screen-state/use-mobile-tasks-route-and-item-state.tsx
  • src/main/runtime/files/server-browse/browse-git-repo-marker.ts
  • src/main/runtime/files/server-browse/runtime-server-environment-commands.ts
  • src/main/runtime/rpc/methods/files/files.ts
  • src/main/runtime/rpc/server/runtime-rpc-mobile-method-routing.ts
  • src/main/runtime/rpc/server/runtime-rpc-mobile-project-methods.ts
  • src/renderer/src/components/sidebar/host-path-browser/RemoteFileBrowser.tsx
  • src/renderer/src/components/sidebar/host-path-browser/RemoteFileBrowserBreadcrumbs.tsx
  • src/renderer/src/components/sidebar/host-path-browser/remote-file-browser-entry-actions.ts
  • src/renderer/src/components/sidebar/host-path-browser/remote-file-browser-path-preview-resolver.ts
  • src/renderer/src/components/sidebar/host-path-browser/use-remote-file-browser-filter-key-commands.ts
  • src/shared/file-access/host-browse-paths.ts
  • src/shared/remote-runtime/protocol/mobile-runtime-capabilities.ts
  • src/shared/rpc-contract/filesystem/files-params.ts
Files with no reviewable changes: 1

  • mobile/src/bots/MobileBotExportFolderPage.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Comment thread mobile/src/i18n/locales/pt.json Resolved
@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-tasks-add-project branch 3 times, most recently from a4a06a9 to bd2f865 Compare November 29, 2026 03:25
@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Confidence Score: 3/5 · The PR should not merge until automatic retries confirm the checkout and late clones stop replacing newer project choices.RetriggerView in GreptileConfidence Score: 3/5

[Medium impact] The change affects workspace creation from mobile Tasks' GitHub Project view.

The PR should not merge until automatic retries confirm the checkout and late clones stop replacing newer project choices.

Findings

  1. P1 Retry accepts the wrong checkout ▶
  2. P1 Clone replaces newer project pick ▶

Summary

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
Loading

Reviews (5) · Last reviewed commit: "fix(mobile): match a waiting task create..." · Reviewed by Greptile

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c11b9230-2acf-4177-a0d8-fa4f05a415e7
Commits

Reviewing files that changed from the base of the PR and between a4a06a9 and bd2f865.

Files selected for processing: 11

  • mobile/src/components/list/MiddleClippedText.tsx
  • mobile/src/host-folders/host-folder-paths.test.ts
  • mobile/src/host-folders/host-folder-paths.ts
  • mobile/src/new-workspace/creation/modal/use-new-workspace-add-project.ts
  • mobile/src/new-workspace/creation/runtime/use-new-workspace-repositories.ts
  • mobile/src/project-admission/AddProjectDrawers.tsx
  • mobile/src/project-admission/AddProjectFormSheets.tsx
  • mobile/src/project-admission/add-project-flow-types.ts
  • mobile/src/project-admission/use-add-project-flow.ts
  • mobile/src/tasks/MobileTasksLegacySurface.tsx
  • mobile/src/tasks/project-board/use-mobile-tasks-add-project.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-tasks-add-project branch from bd2f865 to a078f60 Compare November 29, 2026 03:43
@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-tasks-add-project branch from a078f60 to 2fb2749 Compare November 29, 2026 07:32
@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-tasks-add-project branch from 2fb2749 to 5e8ff36 Compare November 29, 2026 22:15
Comment on lines +81 to +85
// A clone that lands after another add opened is listed, but doesn't take the pick from what the user chose since.
if (current) {
admitRepo(repo, host.executionHost)
} else {
relist(host.executionHost)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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.
@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-tasks-add-project branch from 5e8ff36 to 619b72f Compare November 29, 2026 22:27
Comment on lines +107 to +109
pending.current = pending.current.filter((waiting) => waiting !== ready)
// Looks again once this create settles, for one that didn't open a draft.
void createWorkspaceFromProjectRow(ready.row, ready.githubHost).finally(() =>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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.

@AmoabaKelvin
AmoabaKelvin merged commit 629d47d into main Nov 29, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant