Add team tasks: several agents in one worktree sharing a board

This commit is contained in:
Ian Gulliver
2026-10-18 08:48:57 -07:00
parent 7f62df19d2
commit 6bcde13b2f
31 changed files with 1392 additions and 439 deletions
+4 -1
View File
@@ -46,7 +46,7 @@ func leadActor(login string) string {
}
func humanActor(actor string) bool {
return actor != "byre" && actor != agentActor && !strings.HasSuffix(actor, leadActor(""))
return actor != "byre" && actor != agentActor && actor != boardActor && !strings.HasSuffix(actor, leadActor(""))
}
func (m *Manager) LeadSessions(ctx context.Context, owner string) ([]api.AgentSession, error) {
@@ -536,6 +536,9 @@ func (m *Manager) signalText(ctx context.Context, ev api.Event) (string, error)
if ev.Payload["summary"] != true {
return "", nil
}
if member, _ := ev.Payload["member"].(string); member != "" {
return fmt.Sprintf("%s's agent %q finished a turn:\n%s", m.taskLabel(ctx, deref(ev.TaskId)), member, clip(fmt.Sprint(ev.Payload["result"]), 1500)), nil
}
return fmt.Sprintf("%s finished a turn:\n%s", m.taskLabel(ctx, deref(ev.TaskId)), clip(fmt.Sprint(ev.Payload["result"]), 1500)), nil
}
return "", nil