Skip to content

Sidebar: a listed (remote) session row ignores ⌘-click and middle-click; no new tab as a local row gives #559

Closed

Description

@SSFSKIM

Problem & intent

In the sidebar, a row for a session on another machine (a listed row, src/renderer/src/sidebar/ListedRow.tsx) opens only by a plain click or Enter. It ignores ⌘-click and middle-click. A row for a local session (src/renderer/src/sidebar/SessionRow.tsx, lines 74 to 75) and a Needs you row (NeedsYou.tsx, lines 135 to 136) open a new tab on both.

What a person meets: with one remote session open in an unpinned tab, a plain click on a second listed row replaces that tab. To see two remote sessions side by side they have to pin the first tab, then click the second, then split. ⌘-click, which does this for local sessions, does nothing different from a click.

Found on master 37f68b4 by P5 O15 M2b's wake case, whose scene needed two remote sessions in two panes; read again on master 0e1718b.

The opener contract already carries the choice: RemoteOpener = (listed, how?: { newTab: boolean }) (src/renderer/src/sessions/remote-openers.ts), and both lanes' openers honour how.newTab with useLayout.getState().openTab(...) (lane-a/remote-connect.ts line 26, lane-b/remote-connect.ts line 59; added for the resume chooser's ⌘Enter, P5 O7 M8). ListedRow's activate calls open(listed) without it.

Intent: a listed row answers ⌘-click and middle-click as a local session row does, with a tab of its own.

Constraints

  • App-side (renderer). It reaches master only after P5 O15 has recorded the build it verifies (F); see docs/doperpowers/plans/2026-11-10-p5-o15-recomposition.md.
  • No change to the opener contract or to main: how.newTab exists.
  • With no opener registered for the lane, a click keeps today's behaviour (the row is selected and its hover card shows).
  • Enter stays a plain open. Whether ⌘Enter on a focused row should open a new tab follows whatever SessionRow does at build time.

Success criteria

  • ⌘-click on a listed row opens that session in a new tab and leaves the current tab as it was, for lane A and lane B.
  • Middle-click does the same.
  • A plain click is unchanged.
  • A component test for ListedRow covers the three inputs against a registered opener (the opener receives { newTab: true } for the first two and no how, or newTab: false, for the third).
  • P5 O15 M2b's wake scene in e2e/remote-latency.spec.ts may drop its pin-first step, or keep it; either way it stays green.

Open questions

  • openListed(appSessionId) in remote-openers.ts (the path Needs you, ⌘⇧J and a notification click take for a listed session) calls open(listed) with no how. Check whether a ⌘-click on a Needs you row for a remote session loses its new-tab intent there; if it does, pass it through in the same change.

Decision log

  • 2026-11-10, the MAWS architect: registered instead of fixed in O15's branches, because O15 freezes the app's behaviour until F is recorded and this is not part of the 16 acceptance items. The wake scene works around it by pinning the first tab.

Activity

  1. added
    bug
    on Nov 10, 2026
  2. SSFSKIM commented on Nov 10, 2026

    @SSFSKIM
    OwnerAuthor

    [board] ready-for-implementer: App-side: lands after P5 O15 records F. Buildable from the body.

  3. added
    status:ready-for-implementer
    priority:P2
    on Nov 10, 2026
  4. added 4 commits that reference this issue on Nov 13, 2026
  5. removed
    status:ready-for-implementer
    on Nov 13, 2026
  6. SSFSKIM commented on Nov 13, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: landed in #632 (master 1157a39)

  7. SSFSKIM commented on Nov 13, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed with PR #632 (master 1157a39, master-first merge of 6373a3e, tree-equal).

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

    bugpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions