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
Shell commands are broken in message history and in opencode run #5454
Bug 1: Shell commands are broken in message history
Send message !date → observe that ! changes the input box into "Shell" mode, and then date is input into the box and run as a shell command (correct)
Press up to recall your last message → date is recalled into the input box, but it isn't switched into Shell mode, so when you send it it's incorrectly sent as a message to the model instead of as a command to the shell
Bug 2: Shell commands are broken in opencode run
opencode run '!date' → sends the string !date to the model instead of running date as a shell command
Is the fancy switch into Shell mode actually worthwhile, or would it be better overall to remove that and just interpret messages that start with ! as shell commands? That would be one way to fix both of these issues by doing less, as well as any potential other issues that might be lurking.
changed the title [-]Shell commands are broken in message history[/-][+]Shell commands are broken in message history and in `opencode run`[/+]on Dec 12, 2025
Activity
[-]Shell commands are broken in message history[/-][+]Shell commands are broken in message history and in `opencode run`[/+]github-actions commentedon Dec 12, 2025
This issue might be a duplicate of existing issues. Please check:
!) is broken on Windows Powershell #4671: shell mode (!) is broken on Windows Powershell (Windows-specific shell execution)opencode runand TUI exits hang on v0.15+ #3213:opencode runand TUI exits hang on v0.15+ (related toopencode runcommand issues)Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Dec 12, 2025
Yeah run doesn't support shell mode, not sure how that'd work either since it just loads things into context, it doesn't trigger inference
rekram1-node commentedon Dec 12, 2025
The other part is a bug tho
fix: restore shell mode when recalling commands from history
fix: record shell mode in history (resolves #5454) (#5551)
jdanbrown commentedon Dec 15, 2025
Thanks! Confirmed working in 1.0.159.
fix: record shell mode in history (resolves anomalyco#5454) (anomalyc…
fix: record shell mode in history (resolves #5454) (#5551)
fix: record shell mode in history (resolves anomalyco#5454) (anomalyc…
fix: record shell mode in history (resolves anomalyco#5454) (anomalyc…
fix: record shell mode in history (resolves #5454) (#5551)
fix: record shell mode in history (resolves anomalyco#5454) (anomalyc…
fix: record shell mode in history (resolves anomalyco#5454) (anomalyc…