Add team tasks: several agents in one worktree sharing a board
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user