Skip to content

[BUG] Shell escape (!) commands show no description in tool header #22112

@leoleoasd

Description

@leoleoasd

Description

When using the ! shell escape (e.g. !sleep 5), the Shell tool card in the web UI shows only "Shell" with no subtitle. When the agent invokes the bash tool, it provides a description field (e.g. "Sleep for 5 seconds") which appears as the subtitle next to "Shell". But the ! escape path in packages/opencode/src/session/prompt.ts creates the tool part with only { command: input.command } in the input -- no description.

Plugins

No response

OpenCode version

No response

Steps to reproduce

  1. run ! sleep 5s

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions