Repository navigation
Offer human_task_cancel in delegated runs of leads - #355
Merged
danielehrhardt merged 1 commit intoNov 1, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
human_tasks_listandhuman_task_cancelare now offered in delegated runs, so a lead can withdraw a team agent's task without asking anything. The change is committed ongodmode/93-offer-human-task-cancel-in-delegated-run(4242821), and it was already up to date withorigin/main.canWithdrawinpackages/core/src/mcp/tools.ts). Before, they neededcanAskandfollowupsAllowed, so delegated runs never saw them. Taking a task back asks the human nothing, so that gate was wrong.human_task_createis still only offered where it was before.withdrawHumanTask: a reason is required, Daniel's own tasks and closed ones can't be taken, and a task that holds up a blocked ticket is refused.packages/core/test/human-tasks.test.ts. A delegated run of the built-in agent sees both tools but nothuman_task_create, lists a team agent's task and withdraws it with a reason. A delegated run of a plain agent can't create a task but can withdraw its own.human-tasks.test.ts(30 tests) andmcp.test.ts(78 tests) pass, andpnpm -r typecheckis clean. I didn't check that the new test fails without the fix.Task #93 · done by Self-Healer with Godmode Bot