mirror of
https://github.com/mikeyobrien/ralph-orchestrator.git
synced 2026-04-25 07:05:57 +03:00
[GH-ISSUE #157] [Bug]: ralph looping to infinity #60
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ralph-orchestrator#60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @matbgn on GitHub (Feb 5, 2026).
Original GitHub issue: https://github.com/mikeyobrien/ralph-orchestrator/issues/157
Operating system
Ubuntu 24.04
Ralph version
ralph 2.4.4
AI backend
OpenCode
Hat preset / workflow
code-assist
Steps to reproduce
Expected behavior
Some ending at some point...
Actual behavior
But maybe I missed something here. So feel free to tell me if any breaking changes or config should be adapted.
Logs or error output
Config / preset file
@matbgn commented on GitHub (Feb 5, 2026):
OK I could not bisect to a defined ralph version so far, I tried several versions today and even if on Tuesday afternoon CET it was perfectly working with v2.4.3, I suspect something changed in the closing XML of this model.
Can anyone try with
opencode/kimi-k2.5-freeand confirm he can reproduce the issue?@The-Zona-Zoo commented on GitHub (Feb 7, 2026):
I saw this behavior too. I suspect maybe something is wrong with hate config because instead of
hat @ claudedisplaying in the TUI, it gets stuck in a loop always runningralph @ claude@matbgn commented on GitHub (Feb 13, 2026):
Many thanks @mikeyobrien for the final mile!
Could you please trigger a npm patch release for test?
@matbgn commented on GitHub (Feb 14, 2026):
Thank you both @mikeyobrien and @The-Zona-Zoo
Unfortunately, it seems it didn't solve it entirely (see GIF below). Did you try with opencode? As I think it's more sensible to it than claude.
Here is a free config just in case you need it:
@The-Zona-Zoo commented on GitHub (Feb 14, 2026):
Is that the full config? You will need to make use of the default_publishes to avoid getting stuck I think.
@matbgn commented on GitHub (Feb 14, 2026):
I just reran the init command for code assist but see no difference with the one I posted in the first comment.
Do I miss anything here?
@matbgn commented on GitHub (Feb 14, 2026):
I tried to reproduce it by injecting the model (from ollama) to claude code to be sure it's related to the model handling.
Here is the config I tried:
Setup:
ralph.yml
Same issue so it's not unique to opencode only
@The-Zona-Zoo commented on GitHub (Feb 14, 2026):
actually based on the gif, it seems like the issue is that the model isnt executing things autonomously and is instead asking for user input, and as soon as that happens the iteration is over and the default publishes moves to the next hat, but since the model does the same thing every iteration, nothing really ends up happening
@matbgn commented on GitHub (Feb 14, 2026):
No my understanding is still no proper termination event generated. Because it happen for almost any other tasks other than the Claude's inbuilt models.
But more simply are you able to produce another or the same behavior with opencode?
@The-Zona-Zoo commented on GitHub (Feb 14, 2026):
Your config file has his. I'm assuming the model is failing to publish any event, therefore ralph uses "task.complete" as the default publish event, and then just loops right back to itself because that's what your config file is telling it to do.
@matbgn commented on GitHub (Feb 15, 2026):
Thank you for the valuable feedback even if I'm not understanding all of it's implications.
Would you like to propose a fix for @mikeyobrien 's review?
Here the code to be fixed:
github.com/mikeyobrien/ralph-orchestrator@e66e0d7c6b/presets/code-assist.yml (L97)@matbgn commented on GitHub (Feb 25, 2026):
Just installed version 2.6.0, it's finally working! Thank you guys!!!
Just a 2 cents remark for any reader interested in the OpenCode config, only this config is working:
NOT THIS ONE:
cli:backend: "custom"
command: "opencode"
args:
- "run"
- "-m"
- "opencode/minimax-m2.5-free"
prompt_mode: "arg"
@matbgn commented on GitHub (Feb 25, 2026):
But interestingly, it's only working with this old hat:
Not with this new one:
github.com/mikeyobrien/ralph-orchestrator@63f8c7851e/presets/code-assist.ymlAny clue why? @The-Zona-Zoo or @mikeyobrien ? Do you think it's a regression introduced by https://github.com/mikeyobrien/ralph-orchestrator/pull/146 ?
@matbgn commented on GitHub (Feb 25, 2026):
Ok, after some study, my best guess is the absence of scratchpad definition I would say (I know it was voluntary removed):