Repository navigation
Description
Note
🤖 Claude Opus 5.5 posting on behalf of coledeb
Area
apps/web, where desktop's project grouping and machine picker live. apps/desktop would also fit. apps/mobile is the client that differs.
Summary
For a project with no Git remote, mobile and desktop give different answers about where it lives. Mobile's new-thread screen treats same-named folders on different machines as one project and lets you choose any of them as the machine. Desktop treats each copy as a separate project, locked to its own machine. Both apps read the same projects from the same server, so one of them isn't behaving as intended. I'm not sure which one, so I'm asking here rather than opening a PR.
- Desktop groups projects with
deriveLogicalProjectKey. With norepositoryIdentity, it falls back to the per-machine key, souseLogicalProjectEnvironmentsoffers only that copy's machine: projectGrouping.ts#L162-L183 - Mobile matches by repository, then by folder name, then by title: new-task-project-selection.ts#L114 and new-task-flow-provider.tsx#L886. Mobile has had the title match since July. fix(mobile): switching machines in a new task finds the project in a Windows folder #43828 kept the folder-name fallback working for Windows paths.
Steps to reproduce
- Link at least two machines. On each one, add a plain folder with the same name and no
.git, e.g.Notes, as a project. - Mobile: start a new thread in
Notesand open the machine picker. It lists every machine that has the folder. - Desktop: open the project switcher, or start a new thread in
Notes. There is oneNotesproject per machine, and each one's machine picker shows only its own machine.
Expected behavior
Both apps give the same answer. Either desktop groups non-Git copies the way mobile matches them, or mobile's folder-name and title fallback isn't intended and the picker should only list machines whose copy shares a repository identity.
Actual behavior
My General Stuff folder has no Git remote and exists on 4 linked machines (2 Macs, 2 Windows PCs). On mobile, a new thread in it can run on any of the 4. On desktop, the project switcher lists 4 separate General Stuff projects. With the Mac mini's copy open, the machine picker offers only the Mac mini, not the other 3.
Impact
Minor bug or occasional failure
Version or commit
Desktop 0.1.14-nightly.20261129.5452, current iOS app. Code links are at df2cbe39.
Environment
macOS desktop app and iOS app. Projects on 2 Macs and 2 Windows PCs.
Screenshots
Workaround
Pick the right per-machine copy by hand on desktop, or make the folder a Git repo with a shared remote. That doesn't suit synced non-code folders.
Related, for context: #22664 and #24728 (Ideas: grouping non-Git folders across machines), and #23531, an explicit grouping-ID feature that was closed as out of scope. This issue doesn't ask for that feature. It only asks which client's existing behavior is correct.
Activity