Skip to content

Shell commands are broken in message history and in opencode run #5454

@jdanbrown

Description

@jdanbrown

Description

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.

OpenCode version

1.0.150

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

macOS 15.5

Terminal

VS Code terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions