Skip to content

Commit 6852018

Browse files
committed
fix: shared terminals
1 parent 06ad5f9 commit 6852018

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app/composables/useShare.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ export function useShare() {
7474

7575
connectControlWs(data.shareId, "host", "host");
7676

77-
// Desktop host always uses relay mode (SSH stays local)
78-
if (opts.serverUrl) {
77+
// Connect relay WS whenever session is relay mode:
78+
// - remote server URL (desktop sharing via Railway) — hostSessionId forced to undefined
79+
// - local sharing with no SSH session (desktop local mode) — hostSessionId not set
80+
if (opts.serverUrl || !opts.hostSessionId) {
7981
connectRelayWs(data.shareId);
8082
}
8183

0 commit comments

Comments
 (0)