From 485603fd30105c5fb768d6e325b3f5aac7097b2d Mon Sep 17 00:00:00 2001 From: Jokin Date: Mon, 13 Jul 2026 23:18:34 +0200 Subject: [PATCH] Saved connections and stacks open remote on the right panel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Local left, remote right — the commander convention. Panel-dropdown connects still target the panel they were opened from. Co-Authored-By: Claude Fable 5 --- ui/src/app/app.ts | 8 ++------ ui/src/app/panels.service.ts | 5 +++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ui/src/app/app.ts b/ui/src/app/app.ts index 8e6d4b2..a688ed1 100644 --- a/ui/src/app/app.ts +++ b/ui/src/app/app.ts @@ -92,12 +92,8 @@ export class App { if (action.startsWith('connect:')) { const connection = await this.findConnection(action.slice('connect:'.length)); if (connection) { - void this.panels.connectPanel( - this.panels.activeSide(), - connection, - connection.name, - connection.localDir, - ); + // remote goes right, local stays left — the commander convention + void this.panels.connectPanel('right', connection, connection.name, connection.localDir); } return; } diff --git a/ui/src/app/panels.service.ts b/ui/src/app/panels.service.ts index 698c2d6..f7c9bef 100644 --- a/ui/src/app/panels.service.ts +++ b/ui/src/app/panels.service.ts @@ -335,8 +335,9 @@ export class PanelsService { this.newWorkspace(); } // connectPanel resolves the panel synchronously (before awaiting), so - // firing these back-to-back binds each connection to its own tab - void this.connectPanel('left', connection, connection.name, connection.localDir); + // firing these back-to-back binds each connection to its own tab. + // Remote goes right, local stays left — the commander convention. + void this.connectPanel('right', connection, connection.name, connection.localDir); } }