Skip to content

fix(mobile): keep the source worktree when starting a thread on a branch - #6

Draft
devin-ai-integration[bot] wants to merge 25 commits into
mainfrom
devin/1789842099-mobile-worktree-thread
Draft

devin-ai-integration[bot] wants to merge 25 commits into
mainfrom
devin/1789842099-mobile-worktree-thread

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

What Changed

On iOS, "New thread on branch" from a worktree thread could open the composer as "New worktree · From origin/main" instead of "Current worktree · ".

Cause: the provider's auto-pick-base-branch effect runs in the same commit as the route writing the thread's branch/worktree into the draft, and its stale view (worktree mode, no branch) overwrote that write.

Fix: the effect checks the draft's live workspaceSelection and skips if a branch or non-worktree mode is already set. Fresh worktree drafts still auto-pick a base branch.

Why

Repro (iOS, default env mode = worktree): open the + sheet for the project and cancel, then open it for a different project and cancel, then long-press a worktree thread of the first project → New thread on branch. Sheet shows New worktree / From origin/main and sending creates a new worktree. After the fix it shows Current worktree / and the thread lands on the existing worktree.

UI Changes

Before After
before after

Verified on the iOS simulator; mobile test/typecheck/lint pass. Not verified on a physical device or Android.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Link to Devin session: https://app.devin.ai/sessions/d97ba361e2e1443194895bffb3a59079
Open in Devin Desktop: https://app.devin.ai/desktop/session/d97ba361e2e1443194895bffb3a59079?variant=devin
Requested by: @SunkenInTime

yordis and others added 24 commits September 18, 2026 15:55
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…7861)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
…exists (pingdotgg#12540)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: shivam <91240327+shivamhwp@users.noreply.github.com>
)

Co-authored-by: shivam <91240327+shivamhwp@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Sep 19, 2026
The predicate helper and its truth-table tests only restated the guard; the
bug lives in effect ordering, which a pure function cannot exercise. Read the
draft snapshot inside the effect and explain the race there.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for 9a74517.

This comment will update automatically after the next completed run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants