Add SSH connection information to web UI
This commit implements:
1. Added SSH information display to the web UI info button
2. Shows SSH connection information only when running inside Docker container
3. Constructs the full SSH hostname as "sketch-[session_id]"
4. Added copy-to-clipboard buttons for SSH commands
5. Styles the VSCode URL as a proper clickable link
6. Shows a warning message when SSH is not available
7. Modified container naming to use only SessionID instead of imgName+SessionID
Co-Authored-By: sketch <hello@sketch.dev>
diff --git a/webui/src/web-components/sketch-container-status.test.ts b/webui/src/web-components/sketch-container-status.test.ts
index b5e625d..db43a6d 100644
--- a/webui/src/web-components/sketch-container-status.test.ts
+++ b/webui/src/web-components/sketch-container-status.test.ts
@@ -22,6 +22,8 @@
},
outstanding_llm_calls: 0,
outstanding_tool_calls: [],
+ session_id: "test-session-id",
+ ssh_available: false,
};
test("render props", async ({ mount }) => {
@@ -78,6 +80,8 @@
message_count: 10,
os: "linux",
title: "Partial Test",
+ session_id: "partial-session",
+ ssh_available: false,
total_usage: {
input_tokens: 500,
start_time: "",