Repository navigation
Sonny: group the lead's tasks by state in /status, and let the lead resolve them - #244
Conversation
…esolve them /status puts the lead first, then its tasks under Needs you (waiting on an approval, asking the person, or failed), Working, Ready for review (finished, its last reply linking a pull request), Idle, and Resolved, counted until `r` shows them. Open questions are read from a task's last few items rather than the asks file. Leads get a `resolve_task` declared tool. The lead's Sonny keeps each mark beside the store with the lead's turn that made it, live and from the replayed history, and closes the task's window; a task turn numbered after it reopens the task. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHMFbX9bEQkppDjeSi
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 98f17041b3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… the last turn A lead that waits on a task and resolves it in the same turn left a task turn numbered after its own, so the mark never held. A mark now records the task's newest turn finished when the call was made (or, replayed, when the lead's turn ended), so one still running stays unresolved. A question asked before more work in the same turn fell outside the last four items. An idle agent's whole last turn is now read for an open ask, once per turn. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHMFbX9bEQkppDjeSi
|
@codex review Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2a38f5c3ab
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
A replayed resolve_task call recomputed its boundary from the end of the lead's turn, which could take in work sent to the task after the resolve. A mark now names the call that made it, and a replay of that call leaves it as it is. An open question is now closed the way the pinned questions are: only by the person's "You asked:" answer naming it, one answer per question. A message of the person's own, or a reaction, answers nothing, and an idle agent's newest 400 nodes are read for it, once per turn it ended. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHMFbX9bEQkppDjeSi
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 826750c880
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…work; resolve_task stays the lead's Protocol 20 adds "inherit": false to a declared tool, which a bot the declaring one creates does not take; Sonny declares resolve_task so. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHMFbX9bEQkppDjeSi
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHMFbX9bEQkppDjeSi
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHMFbX9bEQkppDjeSi
George asked for Sonny to break a lead's tasks into categories the way the claude.ai project coordinator does: working, waiting on you, waiting on review, idle, resolved.
What changes
/statusputs the lead first. Its tasks follow, grouped by where they stand:/pull/Nor GitLab/-/merge_requests/N). The PR shows on the facts line asowner/repo#N.1 resolved · r shows them).rshows or hides them in the status screen.The header counts tasks, not the lead:
calc · 6 tasks · 2 need you · 1 working · 1 to review.grouped
resolved shown with r
Resolving is a declared tool, not a CLI. This follows the client-tools rule from #224 and #225. Leads get
resolve_task {task}, whose fixed result is "Resolved."STORE.resolved/TASK.jsonas{turn, call}.turnis the task's newest turn that had finished when the call was made.lead resolving a task
resolve_taskstays the lead's (daemon, protocol 20). A declared tool can now carry"inherit": false, and a bot created by the declaring bot doesn't take that tool. A fork still keeps it. Sonny declaresresolve_taskthis way, so tasks never see it.Open asks come from history now, not the asks file. For an idle task,
/statusreads its newest 400 nodes, once per turn. A question stays open until the person'sYou asked: QUESTIONanswer names it, which is the rule the pinned panel uses. Unrelated messages and reactions close nothing. A running task shows its work, and a question that's still open shows again when its turn ends. The ask-tool thread is removing~/.agent/sonny/asks, so the card no longer depends on that file.Known limits
ghwould be a later addition.Testing
cargo test --workspacepasses, except the two sandfs tests insonny/tests/task.rs. They need FUSE, which this container doesn't have, and they fail onmainhere too. CI installs fuse3.inherit: false.old-docslive.old-docsnew work moved it out of Resolved.🤖 Generated with Claude Code