all: s/title/slug/, adjust branch handling
There are two intertwined changes here.
First, replace title with slug, and precommit with commit-message-style.
The slug makes enough of a title, and it provides a single human-readable
identifier we can use everywhere.
Second, construct the branch name on the fly instead of storing it,
out of slug, branch prefix, and retryNumber.
This removes some duplicated data, and makes the retry loop
easier to follow and reason about.
diff --git a/webui/src/web-components/sketch-container-status.test.ts b/webui/src/web-components/sketch-container-status.test.ts
index eca625b..ded2917 100644
--- a/webui/src/web-components/sketch-container-status.test.ts
+++ b/webui/src/web-components/sketch-container-status.test.ts
@@ -10,7 +10,7 @@
initial_commit: "abcdef1234567890",
message_count: 42,
os: "linux",
- title: "Test Session",
+ slug: "test-session",
total_usage: {
input_tokens: 1000,
output_tokens: 2000,
@@ -76,7 +76,7 @@
hostname: "partial-host",
message_count: 10,
os: "linux",
- title: "Partial Test",
+ slug: "partial-test",
session_id: "partial-session",
ssh_available: false,
total_usage: {