Make every question blocking and drop inbox priority
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user