Make every question blocking and drop inbox priority

This commit is contained in:
Ian Gulliver
2026-10-16 08:35:49 -07:00
parent 1427814014
commit 78cca2fcbe
25 changed files with 268 additions and 322 deletions
+5 -10
View File
@@ -107,7 +107,7 @@ func (m *Manager) leadTools(l *live) []mcp.Tool {
m.mu.Unlock()
return "", err
}
return fmt.Sprintf("Responded to %s. The agent gets it once it is idle and has no other blocking question waiting.", c.ItemId), nil
return fmt.Sprintf("Responded to %s. The agent gets it once it is idle and has no other question waiting.", c.ItemId), nil
}),
tool("send_message",
@@ -563,18 +563,13 @@ func (m *Manager) listTasksText(ctx context.Context) (string, error) {
agent += " on " + sess.Model
}
}
blocked, fyi := 0, 0
open := 0
for _, i := range items {
if i.TaskId != t.Id {
continue
}
if i.Priority == api.Blocked {
blocked++
} else {
fyi++
if i.TaskId == t.Id {
open++
}
}
fmt.Fprintf(b, "- %s %q: %s; inbox %d blocked, %d fyi; worktree %s", t.Id, t.Title, agent, blocked, fyi, t.WorktreePath)
fmt.Fprintf(b, "- %s %q: %s; inbox %d open; worktree %s", t.Id, t.Title, agent, open, t.WorktreePath)
if t.TodoItem != nil {
fmt.Fprintf(b, "; from TODO item %q", *t.TodoItem)
}