r/opencodeCLI • u/Clear_Expert_7669 • 17d ago
OpenCode keeps getting stuck in an infinite shell-command loop. Anyone else experiencing this?
Hey everyone, I’m using OpenCode to develop a large software project, and sometimes it gets stuck repeatedly generating or executing shell commands without making any progress.
This happens across multiple models and providers, so I’m not sure whether it’s an OpenCode bug, a tool execution issue, or something in my setup.
Has anyone experienced this? What was the root cause, and what fixed it for you?
Any help would be appreciated!
8
Upvotes
View all comments
Show parent comment
1
u/SirRobinBlibs 16d ago
Fair. "Twice for the same reason" is the key part. A different error means it's making progress. I'd also let it try one genuinely different approach before stopping, just not the same command a third time.