Skip to content

[FEATURE]: Move sessions between projects by dragging them on Home #59049

Open

Description

@lego37

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

On the Home screen, sessions are grouped by project. I would like to drag a session row onto another project row to move that session there.

The server already exposes POST /api/session/:sessionID/move, and Desktop uses it in the "Session location unavailable" recovery flow. There is still no normal way to move a healthy session between projects from the Home screen. Users either recreate the session or ask the agent to call session_move.

The interaction would be desktop-first: pick up a session, drop it on a project, and show the same success/failure feedback as the recovery flow. It would stay within one server and would not change project ordering, which already has its own gesture. The client can sync the session before calling the API so the session.moved event patches the store.

Proposed behavior:

  • Drag a session row; highlight valid project targets; drop to move.
  • Only projects on the same server are valid.
  • The current project is not a target; unreachable servers reject the drop.
  • Show a "Session moved" toast and update the row from session.moved.
  • Keep project reordering on dnd-kit; use native HTML5 drag only for sessions.

Earlier requests (#24708, #23249, #21400) asked for a migration dialog or TUI flow and were closed before the session.move API existed. This request is s about the missing desktop affordance, not a new data model.

I have a small local patch for this UI and can open a focused PR after design approval. Would maintainers be open to this interaction?

Activity

  1. opencode-agent commented on Oct 25, 2026

    @opencode-agent
    Contributor

    Thanks for the detailed proposal, @lego37! You're asking for a desktop-first way to move a session to another project: drag its row on Home onto a project row, using the existing session.move API, with the same success/failure feedback as the "Session location unavailable" recovery flow.

    I've marked this as a feature request so maintainers can consider the interaction. Since you have a patch ready, please wait for their feedback on the design before opening a PR.

    Related issues and PRs that may help:

  2. pskraemer11 commented on Nov 3, 2026

    @pskraemer11

    One addition to the proposal: a drop target on Home covers discovery, but not sessions opened in a tab, and not keyboard-only use.

    The Desktop app already has a complete move implementation for the missing-directory recovery flow (packages/app/src/session/composer/location-missing.tsx): useDirectoryPicker plus session.move plus the session.location.moving / moveFailed toasts. Wiring the same mutation to a "Move to project…" item in the session location card (SessionLocation in packages/app/src/session/session-identity-header.tsx, opened from the project badge in the session header) would reuse that path, with session.moved already re-indexing the session in server-sync.tsx.

    So if the drag gesture lands, a menu entry sharing the same code path would be a small follow-up rather than a second feature. Happy to test a build on Windows.

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