macOS client panes and transcript

This commit is contained in:
Ian Gulliver
2026-10-16 23:30:57 -07:00
parent 14d7ad4631
commit 00cd1ed958
23 changed files with 5059 additions and 739 deletions
-24
View File
@@ -5,30 +5,6 @@ import SwiftUI
let exitedCode = 4000
let internalErrorCode = 1011
struct TerminalSpike: View {
@Environment(Store.self) private var store
@ViewState private var status = ""
var body: some View {
VStack(alignment: .leading) {
HStack {
Text("Shell in the task's worktree")
Text(status)
.foregroundStyle(.secondary)
}
if let taskId = store.selectedTaskId {
if store.findTask(taskId)?.status != .active {
Text("The task is closed; its worktree is gone.")
} else {
TerminalHost(api: store.api, taskId: taskId, status: $status)
}
} else {
Text("No task selected.")
}
}
}
}
struct TerminalHost: NSViewRepresentable {
let api: API
let taskId: String