Give each workflow run a parent task with no agent

This commit is contained in:
Ian Gulliver
2026-10-21 09:02:09 -07:00
parent d062d7ccae
commit a130b9556d
23 changed files with 661 additions and 474 deletions
+7 -4
View File
@@ -195,7 +195,7 @@ private struct TaskPane: View {
@ViewBuilder
private var tabBody: some View {
switch store.focus.tab {
switch store.shownTab {
case .transcript:
ChatView(kind: .task(store.selectedTaskId))
.id("\(store.selectedTaskId ?? "")/\(store.selectedTaskId.flatMap { store.pickedMember($0) } ?? "")")
@@ -342,16 +342,19 @@ private struct TabStrip: View {
}
private func info() -> Info {
let tab = store.focus.tab
let workflow = store.selectedTaskId.flatMap { store.findTask($0) }?.workflowRun != nil
let tab = store.shownTab
let run = store.selectedTaskId.flatMap { store.findTask($0) }?.workflow != nil
let team = store.selectedTaskId.map { !store.team($0).isEmpty } ?? false
let order = taskTabs.filter { t in
if run {
return t == .workflow || t == .project
}
if t == tab {
return true
}
switch t {
case .board: return team
case .workflow: return workflow
case .workflow: return false
default: return true
}
}