You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenCode repeatedly executes a command non stop #5356
I have created a commit command (commit.md) I used to automatically create commits. Usually after I am done making changes, I call this command with /commit. Most of the time it works fantastic. However, every once in a while it goes into a loop continuously committing the same thing over and over again. See below my git history
You can see the session just keeps executing the command. It is entirely possible this maybe my command definition or even the model of my choosing, so I apologize if this is not a bug. The screen shot below shows how the command had pushed the code to my git repo, and immediately after that, began the process again.
You are correct. I use different models depending on the task I am doing
for this commits I use opencode/grok-code.
Note that I usually run some agent using some model, and then call commit.
Often times after calling commit, I immediately create a new session to start working on something else, while the older session finishes its work. I don't know if this has something to do or not.
Here is the session. I did an export. Hopefully, this is what you mean.
Activity
github-actions commentedon Dec 11, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Dec 11, 2025
I see this with certain models, id be super surprised if u got this with sonnet 4.5 even if it wss on copilot
rekram1-node commentedon Dec 11, 2025
any chance u can share session
zibler commentedon Dec 12, 2025
You are correct. I use different models depending on the task I am doing
for this commits I use opencode/grok-code.
Note that I usually run some agent using some model, and then call commit.
Often times after calling commit, I immediately create a new session to start working on something else, while the older session finishes its work. I don't know if this has something to do or not.
Here is the session. I did an export. Hopefully, this is what you mean.
session-ses_4f48.md
[-]OpenCode repeatedly execute a command non stop[/-][+]OpenCode repeatedly executes a command non stop[/+]github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.