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
[Bug]: iOS share into T3 Code ignores "Use last project" and always asks for a project #38756
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/mobile
Steps to reproduce
On iOS, have two or more projects, with Settings → General → New threads → Use last project on (the default).
Open or start a thread in a project, so it becomes the last project used on the device.
In Photos (or any app), share an image to T3 Code.
Expected behavior
The share draft starts in the last project used, the same way the global New thread does when Use last project is on. It should fall back to the project picker only when there's no usable last project, or when the setting is off.
Actual behavior
The share draft ignores Use last project. If you have more than one project, you have to pick one every time.
From the code on main: #24741 wired the preference into newTaskDestination() in apps/mobile/src/features/threads/new-task-project-selection.ts. Its description says "share drafts keep main's behaviour, including auto-selecting a sole project", so shares were left out of scope. Share drafts go through resolveDraftProjectSelection() instead. That function auto-selects only when there's exactly one project scope, and otherwise returns pick. It never reads useLastProject or the remembered last project. I couldn't find any discussion on #24741 saying shares should be excluded on purpose.
A possible fix: when incomingShareId is set and no project is explicitly selected, resolve the project the same way newTaskDestination() does (current project, then last project, with the archived check). Keep the existing rule that cancelling the picker doesn't discard the share.
Impact
Minor bug or occasional failure
Version or commit
iOS app, current release; code checked on main @ e48d6f3
Environment
iOS (iPhone)
Logs or stack traces
No response
Screenshots, recordings, or supporting files
No response
Workaround
Pick the project manually in the picker after sharing.
Activity