Make task state store-owned and signal its changes to the lead
This commit is contained in:
@@ -710,16 +710,13 @@ func (m *Manager) listTasksText(ctx context.Context) (string, error) {
|
||||
if t.TodoItem != nil {
|
||||
started[*t.TodoItem] = true
|
||||
}
|
||||
agent := "no agent"
|
||||
agent := string(t.State)
|
||||
sess, found, err := m.liveSession(ctx, t.Id)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
if found {
|
||||
agent = fmt.Sprintf("agent %s", sess.State)
|
||||
if sess.Model != "" {
|
||||
agent += " on " + sess.Model
|
||||
}
|
||||
if found && sess.Model != "" {
|
||||
agent += "; agent on " + sess.Model
|
||||
}
|
||||
open := 0
|
||||
for _, i := range items {
|
||||
|
||||
Reference in New Issue
Block a user