Skip to content

[Bug]: iOS share into T3 Code ignores "Use last project" and always asks for a project #38756

Closed

Description

@LloydPowell771

Before submitting

  • 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

  1. On iOS, have two or more projects, with Settings → General → New threads → Use last project on (the default).
  2. Open or start a thread in a project, so it becomes the last project used on the device.
  3. 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.


Related: #25391 (closed by #24741), #38499.

Written by Claude Opus 5.5, reviewed by Lloyd Powell.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions