Bash commands not working in ssh session #2201

Open
opened 2026-02-16 17:34:38 -05:00 by yindo · 7 comments
Owner

Originally created by @ispyinternet on GitHub (Oct 21, 2025).

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

Originally created by @ispyinternet on GitHub (Oct 21, 2025). ### 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_
yindo added the bug label 2026-02-16 17:34:38 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 21, 2025):

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

  • #3228: [Feature] Allow the user to run their favorite shell in opencode - discusses improvements to the ! command functionality and mentions that the current implementation may have limitations

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

@github-actions[bot] commented on GitHub (Oct 21, 2025): This issue might be a duplicate of existing issues. Please check: - #3228: [Feature] Allow the user to run their favorite shell in opencode - discusses improvements to the `!` command functionality and mentions that the current implementation may have limitations Feel free to ignore if none of these address your specific case.
Author
Owner

@veracioux commented on GitHub (Oct 21, 2025):

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

@veracioux commented on GitHub (Oct 21, 2025): What is the bash command you are running? Does `!echo x` work? Do normal messages with the LLM work?
Author
Owner

@ispyinternet commented on GitHub (Oct 22, 2025):

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.

@ispyinternet commented on GitHub (Oct 22, 2025): 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.
Author
Owner

@rekram1-node commented on GitHub (Oct 22, 2025):

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)

@rekram1-node commented on GitHub (Oct 22, 2025): 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)
Author
Owner

@wlfmnstr commented on GitHub (Oct 27, 2025):

@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.

@wlfmnstr commented on GitHub (Oct 27, 2025): @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.
Author
Owner

@rekram1-node commented on GitHub (Oct 28, 2025):

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

@rekram1-node commented on GitHub (Oct 28, 2025): I think there is a bug with how some things are shown visually when you have details off we will need to fix
Author
Owner

@ispyinternet commented on GitHub (Nov 6, 2025):

@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.

@ispyinternet commented on GitHub (Nov 6, 2025): > [@ispyinternet](https://github.com/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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2201