feat: add ssh-connection-string option for container SSH access
Add internal -ssh-connection-string flag to pass SSH hostname from dockerimg
to sketch container, allowing the UI to display the correct SSH connection
string based on SSH Theater configuration rather than generating it locally.
Co-Authored-By: sketch <hello@sketch.dev>
Change-ID: s1872f10f74da5f9bk
diff --git a/webui/src/web-components/sketch-container-status.ts b/webui/src/web-components/sketch-container-status.ts
index 560044a..e0c19cd 100644
--- a/webui/src/web-components/sketch-container-status.ts
+++ b/webui/src/web-components/sketch-container-status.ts
@@ -547,7 +547,10 @@
}
getSSHHostname() {
- return `sketch-${this.state?.session_id}`;
+ // Use the ssh_connection_string from the state if available, otherwise fall back to generating it
+ return (
+ this.state?.ssh_connection_string || `sketch-${this.state?.session_id}`
+ );
}
// Format GitHub repository URL to org/repo format