Skip to content

!ls shell command produces no output while other commands work (macOS) #17530

@GOWxx

Description

@GOWxx

Description

Description:
When using the ! shell mode prefix in TUI, the ls command (including ls -la, ls -l) produces no output, while other shell commands like !pwd and !echo "test" work correctly and display output.
Steps to Reproduce:

  1. Open OpenCode TUI
  2. Type !ls or !ls -la
  3. Press Enter
  4. Observe: No output is displayed
    Expected: Directory listing should appear
    Actual: Blank output for ls commands only
    Working Commands:
  • !pwd → outputs /Users/xxx/path
  • !echo "test" → outputs test
    Failing Commands:
  • !ls → no output
  • !ls -la → no output
    Environment:
  • OpenCode version: (1.2.26)
  • OS: macOS (darwin)
  • Shell: zsh
    Additional Context:
  • Related to but different from Shell mode (! prefix) produces blank output on v1.2.16 #15987 (which affects all shell commands)
  • The Bash tool works correctly when invoked by the agent in conversation

Plugins

none

OpenCode version

1.2.26

Steps to reproduce

  1. Open OpenCode TUI
  2. Type !ls or !ls -la
  3. Press Enter
  4. Observe: No output is displayed
    Expected: Directory listing should appear
    Actual: Blank output for ls commands only
Image

Screenshot and/or share link

Image Image

Operating System

macOS 26.3.1

Terminal

kitty

Metadata

Metadata

Assignees

Labels

No labels
No labels

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