Repository navigation
Fix stale SSH workspace connection status #9085
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+6,212
−173
Merged
Changes from 12 commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
2219e55
test: cover authoritative SSH terminal liveness
daa6739
fix: derive SSH status from terminal liveness
a671d84
fix: close SSH terminal lifecycle races
4a36c33
fix: authenticate SSH terminal readiness
28e95a4
Merge remote-tracking branch 'origin/main' into issue-9068-stale-ssh-…
40843eb
fix: bind SSH liveness to terminal authority
1e7c376
Merge remote-tracking branch 'origin/main' into issue-9068-stale-ssh-…
79679f2
fix: make Dock SSH readiness transactional
d8442e1
Merge remote-tracking branch 'origin/main' into issue-9068-stale-ssh-…
69835ec
test: assert remote terminal end acceptance
32099ee
test: reject retired PTY lifecycle readiness
f68c6e3
fix: revalidate PTY lifecycle at readiness commit
71faa1d
Merge remote-tracking branch 'origin/main' into issue-9068-stale-ssh-…
f222eb5
test: cover remote readiness lifecycle races
990c896
fix: harden remote terminal lifecycle ownership
0df2518
Merge remote-tracking branch 'origin/main' into issue-9068-stale-ssh-…
d21edba
test: cover stale remote terminal generations
ee64a06
fix: authenticate remote terminal lifecycle callbacks
34a04cc
Merge remote-tracking branch 'origin/main' into issue-9068-stale-ssh-…
48b78ba
fix: bound remote lifecycle commit side effects
8d33f12
chore: document remote lifecycle ownership boundaries
c2df39c
test: cover reordered remote readiness callbacks
b8c00ed
fix: order remote terminal lifecycle callbacks
bc3c755
test: cover remaining SSH lifecycle ordering gaps
4bb94f1
fix: close remaining SSH lifecycle ordering gaps
14ae938
test: cover lossy SSH liveness reconciliation
d29b50e
fix: make SSH liveness reconciliation resilient
f2c694e
test: cover remaining SSH liveness races
23eb81e
fix: close remaining SSH liveness races
e2292a1
test: cover Mosh and transient SSH readiness
8256a14
fix: make terminal readiness authoritative
e40c75f
Merge remote-tracking branch 'origin/main' into issue-9068-stale-ssh-…
376fdbb
test: cover premature terminal readiness
30958ff
fix: require proven terminal readiness
b932a0b
Merge remote-tracking branch 'origin/main' into issue-9068-stale-ssh-…
506827d
test: pass Dock readiness attempt generation
5f5f178
test: cover remote lifecycle review regressions
47adc66
fix: preserve remote lifecycle routing
32676ec
Merge remote-tracking branch 'origin/main' into issue-9068-stale-ssh-…
3fb4237
fix: retire orphaned remote lifecycles
67b1646
test: cover raw SSH readiness gating
f4003be
fix: decouple raw SSH readiness reporting
ad45ff6
test: cover restored SSH lifecycle reporting
8dfe003
fix: restore SSH lifecycle authority
b6866f7
test: cover SSH lifecycle review regressions
90f158b
fix: close SSH lifecycle review gaps
ad80a66
test: cover bounded SSH readiness lifecycle
0d8775f
fix: bound persistent SSH readiness retries
f200aef
test: expose queued SSH readiness duplicates
7559341
fix: coalesce persistent SSH readiness delivery
aa067d2
Merge remote-tracking branch 'origin/main' into issue-9068-stale-ssh-…
2aef5ee
fix: compile remote lifecycle app adapters
c2d7bc5
Merge branch 'main' of https://github.com/manaflow-ai/cmux into issue…
168910a
fix: satisfy ssh readiness closeout policy
b7d8b52
Merge branch 'main' of https://github.com/manaflow-ai/cmux into issue…
5ac19c1
Merge branch 'main' of https://github.com/manaflow-ai/cmux into issue…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...cket/Sources/CmuxControlSocket/Coordinator/Workspace/ControlRemotePTYLifecycleOwner.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| /// The broker-owned transport attachment for one current PTY lifecycle. | ||
| public struct ControlRemotePTYLifecycleOwner: Sendable, Equatable { | ||
| /// The broker transport identity that owns the lifecycle. | ||
| public let transportKey: String | ||
| /// The exact attachment identifier registered for the lifecycle. | ||
| public let attachmentID: String | ||
|
|
||
| /// Creates a lifecycle owner snapshot. | ||
| /// | ||
| /// - Parameters: | ||
| /// - transportKey: The broker transport identity. | ||
| /// - attachmentID: The exact registered attachment identifier. | ||
| public init(transportKey: String, attachmentID: String) { | ||
| self.transportKey = transportKey | ||
| self.attachmentID = attachmentID | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...ces/CmuxControlSocket/Coordinator/Workspace/ControlWorkspaceRemoteTerminalAuthority.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| /// Authenticated authority for a terminal readiness report. | ||
| public enum ControlWorkspaceRemoteTerminalAuthority: Sendable, Equatable { | ||
| /// A non-persistent relay generation identified by its listening port. | ||
| case relayPort(Int) | ||
| /// A persistent PTY generation authenticated by its broker transport. | ||
| case persistentTransport(String) | ||
| } |
11 changes: 11 additions & 0 deletions
11
...cket/Coordinator/Workspace/ControlWorkspaceRemoteTerminalSessionConnectedResolution.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| public import Foundation | ||
|
|
||
| /// The outcome of `workspace.remote.terminal_session_connected`, after the | ||
| /// coordinator has validated the workspace, surface, and optional relay port. | ||
| public enum ControlWorkspaceRemoteTerminalSessionConnectedResolution: Sendable, Equatable { | ||
| /// No tracked remote terminal matches the requested workspace and surface. | ||
| case notFound | ||
| /// The terminal handshake was recorded. `workspaceID` is absent when a | ||
| /// window-scoped Dock owns the terminal after its launch workspace closed. | ||
| case resolved(windowID: UUID?, workspaceID: UUID?, remoteStatus: JSONValue) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.