-
Notifications
You must be signed in to change notification settings - Fork 6
fix: break delegate→plan-mode→approve infinite loop #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -173,8 +173,13 @@ def check_workflow_continuation() -> bool: | |
| # This mimics ralph-wiggum's loop mechanism | ||
| output = { | ||
| "decision": "block", | ||
| "reason": "continue", | ||
| "systemMessage": "⚡ Workflow continuation: Proceeding to STAGE 1 execution.", | ||
| "reason": ( | ||
| "PLAN ALREADY APPROVED. Execute Stage 1 NOW directly from the existing " | ||
| "approved plan in context. DO NOT call /workflow-orchestrator:delegate. " | ||
| "DO NOT call EnterPlanMode. DO NOT re-enter plan mode. " | ||
| "Render the dependency graph and start spawning Wave 0 agents." | ||
| ), | ||
| "systemMessage": "⚡ Continuing to STAGE 1 execution (plan already approved).", | ||
| } | ||
| print(json.dumps(output)) # noqa: T201 | ||
| logger.debug("Output block decision with 'continue' reason") | ||
|
Comment on lines
173
to
185
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1. Continuation sentinel removed python_stop_hook's continuation path is documented as injecting a special "continue" sentinel, but the PR replaces the literal "reason": "continue" with a long instruction string while leaving comments/logging that still assume a "continue" reason. If any downstream logic (or Claude Code hook semantics) relies on the sentinel value, workflow auto-continuation may stop working or behave inconsistently. Agent Prompt
Comment on lines
173
to
185
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1. python_stop_hook.py hard-blocks tools The modified stop hook emits a hard-blocking response (decision: block) as part of its continuation behavior. This violates the policy that only python_posttooluse_hook.py may hard-block tool execution. Agent Prompt
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.