Show HTML pages in a task view beside the transcript

This commit is contained in:
Ian Gulliver
2026-10-21 17:52:04 -07:00
parent af9c750298
commit 585c8ba5f8
16 changed files with 600 additions and 102 deletions
+4
View File
@@ -34,6 +34,10 @@ final class Forwards {
return c.url
}
func name(_ taskId: String, _ port: Int) -> String? {
localPorts.keys.first { $0.taskId == taskId && $0.port == port }?.name
}
func load(_ api: API, _ taskId: String) async {
do {
set(taskId, try await api.client.listPreviews(path: .init(taskId: taskId)).ok.body.json)