Skip to content

Bash commands not working in ssh session #3320

Closed

Description

@ispyinternet

Description

I'm using opencode on a remote server via SSH. Using iterm (which fixed my copy and paste issues) but if I try to run a bash command with ! it seems perhaps the output is swalled, nothing enters the conversation, when I hit ! I get a slightly different input bar (coloured left border) and a space after before I can enter my command.

OpenCode version

v0.15.10

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Oct 21, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. veracioux commented on Oct 21, 2025

    @veracioux
    Contributor

    What is the bash command you are running? Does !echo x work?
    Do normal messages with the LLM work?

  3. ispyinternet commented on Oct 22, 2025

    @ispyinternet
    Author

    LLM is working fine. Any ! command, will start like a conversation 'Generating...' and then there is no output. Back to regular llm conversation (plan or build). Tried with wezterm, iterm (mac), vscode terminal.

    I'm almost certain this was working before I upgrade to v.15.10, I remember first downloading opencode and testing as I went through the docs, and I don't have it installed on any local machine, so must have been on that host.

  4. rekram1-node commented on Oct 22, 2025

    @rekram1-node
    Contributor

    when you do a ! invocation it will source your bashrc or zshrc and run it with your shell of choice, is there a chance that the sourcing takes a while due to some script?

    What shell are you using? on the host i guess (or wherever opencode is running)

  5. wlfmnstr commented on Oct 27, 2025

    @wlfmnstr

    @ispyinternet - hey I was just stuck with this exact behavior for a WHILE.

    Turns out you stop seeing any bash commands that you submit as well as their output when you have "Tool Details" toggled off. This results in submitting something like: ! echo hello and it appearing to just send it to the model and not produce any output...

    Toggle tool details on/off via /details command and I'll bet you'll start seeing your ! commands working again :)

    This should probably be mentioned prominently in the docs under the bash commands section.

  6. rekram1-node commented on Oct 28, 2025

    @rekram1-node
    Contributor

    I think there is a bug with how some things are shown visually when you have details off we will need to fix

  7. ispyinternet commented on Nov 6, 2025

    @ispyinternet
    Author

    @ispyinternet - hey I was just stuck with this exact behavior for a WHILE.

    Turns out you stop seeing any bash commands that you submit as well as their output when you have "Tool Details" toggled off. This results in submitting something like: ! echo hello and it appearing to just send it to the model and not produce any output...

    Toggle tool details on/off via /details command and I'll bet you'll start seeing your ! commands working again :)

    This should probably be mentioned prominently in the docs under the bash commands section.

    /details did indeed fix the issue! Bit of a gotcha, but thanks for the tip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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