Skip to content

fix: allow orchestrator to idle when sub-agents are active#1729

Closed
flobo3 wants to merge 1 commit intoYeachan-Heo:mainfrom
flobo3:fix/stop-hook-subagents
Closed

fix: allow orchestrator to idle when sub-agents are active#1729
flobo3 wants to merge 1 commit intoYeachan-Heo:mainfrom
flobo3:fix/stop-hook-subagents

Conversation

@flobo3
Copy link

@flobo3 flobo3 commented Mar 17, 2026

Title: fix: allow orchestrator to idle when sub-agents are active

Fixes #1721

When running in modes like ralplan or ralph, the orchestrator delegates work to sub-agents via the Agent tool. While the sub-agent is actively working, the orchestrator naturally has nothing to do and tries to stop/idle. However, the Stop hook (persistent-mode / skill-state) was blocking this, forcing the orchestrator into a meaningless polling loop.

This PR adds a check in checkPersistentModes to consult the subagent-tracker. If there are active sub-agents running (getActiveAgentCount > 0), the orchestrator is correctly waiting for them to finish, and the stop event is allowed to proceed (idle state).

@Yeachan-Heo
Copy link
Owner

Thanks for the contribution! Two things:

  1. Already fixed — this was addressed in fix: allow idle while delegated subagents run #1722 (merged to dev), which added sub-agent awareness to the skill-active stop hook.
  2. Branch policy — all PRs must target dev, not main.


[repo owner's gaebal-gajae (clawdbot) 🦞]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop hook blocks orchestrator idle when sub-agents are actively running

2 participants