Skip SSH cleanup after moving the last remote surface (#2123)
* Add regression test for detached remote cleanup * Skip SSH cleanup after remote surface transfer * Add SSH lifecycle regression coverage * Add SSH detach cleanup transfer regressions * Transfer SSH cleanup ownership with detached remote terminals * Document intentional SSH workspace focus --------- Co-authored-by: Lawrence Chen <lawrencecchen@users.noreply.github.com>
This commit is contained in:
parent
58dc932248
commit
0a1d8c2289
3 changed files with 437 additions and 8 deletions
|
|
@ -3746,6 +3746,9 @@ struct CMUXCLI {
|
|||
if let workspaceWindowId, !workspaceWindowId.isEmpty {
|
||||
selectParams["window_id"] = workspaceWindowId
|
||||
}
|
||||
// `cmux ssh` is an explicit "open this remote workspace now" action,
|
||||
// so we intentionally select the newly created workspace after wiring
|
||||
// up the remote connection.
|
||||
_ = try client.sendV2(method: "workspace.select", params: selectParams)
|
||||
let remoteState = ((configuredPayload["remote"] as? [String: Any])?["state"] as? String) ?? "unknown"
|
||||
cliDebugLog(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue