Saved connections and stacks open remote on the right panel

Local left, remote right — the commander convention. Panel-dropdown
connects still target the panel they were opened from.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jokin
2026-07-13 23:18:34 +02:00
co-authored by Claude Fable 5
parent d22bc9b4e2
commit 485603fd30
2 changed files with 5 additions and 8 deletions
+2 -6
View File
@@ -92,12 +92,8 @@ export class App {
if (action.startsWith('connect:')) { if (action.startsWith('connect:')) {
const connection = await this.findConnection(action.slice('connect:'.length)); const connection = await this.findConnection(action.slice('connect:'.length));
if (connection) { if (connection) {
void this.panels.connectPanel( // remote goes right, local stays left — the commander convention
this.panels.activeSide(), void this.panels.connectPanel('right', connection, connection.name, connection.localDir);
connection,
connection.name,
connection.localDir,
);
} }
return; return;
} }
+3 -2
View File
@@ -335,8 +335,9 @@ export class PanelsService {
this.newWorkspace(); this.newWorkspace();
} }
// connectPanel resolves the panel synchronously (before awaiting), so // connectPanel resolves the panel synchronously (before awaiting), so
// firing these back-to-back binds each connection to its own tab // firing these back-to-back binds each connection to its own tab.
void this.connectPanel('left', connection, connection.name, connection.localDir); // Remote goes right, local stays left — the commander convention.
void this.connectPanel('right', connection, connection.name, connection.localDir);
} }
} }