Code-Server bug where it says "Terminal output not available" even though it works on Kilo Code
Before submitting your bug report
- [x] I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- [x] I believe this is a bug. I'll try to join the Continue Discord for questions
- [x] I'm not able to find an open issue that reports the same bug
- [x] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: Ubuntu (Windows 11 for the client)
- Continue version: v1.2.2
- IDE version: code-server 4.19.0 984fb135dc0baa822f8031f1c639b1fd953a6291 with Code 1.84.2
- Model: anthropic.claude(rest of model version goes here)
- config:
name: "My Continue Assistant"
version: "1.0.0"
schema: "v1"
models:
- name: "Claude Sonnet"
provider: "bedrock"
model: "anthropic.claude(insert version here, I confirmed it's supported)"
roles:
- chat
- edit
- apply
- summarize
context:
- name: "code"
provider: "code"
- name: "folder"
provider: "folder"
- name: "codebase"
provider: "codebase"
OR link to agent in Continue hub:
Description
So the issue is when I try to have it run terminal commands I get this error in Code-Server: "Terminal output not available. This is only available in local development environments and not in SSH environments for example." I reached out to the code-server folks and they confirmed it is not an error on their end, but the Continue extension. Also I was able to confirm that there is a working solution, Kilo Code implements some kind of integration with the terminal that works on code-server.
To reproduce
- Install Code-Server, any Linux distro should work.
- Install the Continue extension and integrate it with any LLM
- Tell that LLM to run a terminal command (e.g. find .) and tell the output
- Approve the terminal command to be ran
- See the following error: "Terminal output not available. This is only available in local development environments and not in SSH environments for example."
Log output
Let me know if you need additional logs, but I think this one that error message should be good enough.
Got the same problem long before , and finally decide to look for it then surprized to see this issue only reported 3 days ago... Many of other AI extensions for code-server work well with run_terminal_command tool, Continue being such a powerful product should support it as well.
I was just looking at how to support this better. Curious would you expect all terminal commands to run in the code server or only some of them? Was thinking about terminal commands processing code might need to be local while commands like npm are remote. Your thoughts?
My exceptation is that it should simply work just like manually typing in the terminal panel: Continue invoke tool like 'run_terminal_command' uname, the command gets executed in the terminal panel and returns 'Linux', and Continue gets the result. That's all.
@chezsmithy In my opinion all commands should run on the remote environment where code-server is running. Since everything is in a remote environment the local desktop that you're accessing code-server is in the web browser, so it probably would only work remote regardless.
It appears that #7859 would solve this issue! Glad to see that there are some others having this issue and are looking forward to the resolution! Also #7861 was created and looks to be the same as this issue.
Hey just wanted to mention that Roo Code doesn't have this issue, just wanted to let you know. Perhaps you could pull in some of those changes if this PR doesn't work out? Thanks!
Hey just wanted to mention that Roo Code doesn't have this issue, just wanted to let you know. Perhaps you could pull in some of those changes if this PR doesn't work out? Thanks!
That is great there is a workaround in other tools, and if Roo Code solves this feel free to leverage it. It looks like there is an open ended question to the PR author that has not been addressed. If you have context you can provide there to speed up code review, it would be appreciated.
@bdougie @RomneyDa Context for this PR 👉 https://github.com/continuedev/continue/pull/7859 that was never merged.
Seems that it's not actually a limitation of code-server (or openvscode or similar), but rather an if statement that just doesn't run the commands.
I tested by recompiling from source, applying that PR's changes and installing from the VSIX.
Before: The command would just get pasted in the terminal and never actually run (like said above). After: Works as expected.
I imagine there are environments where the if statement matters. Is there a way to filter those out so the if isn't triggered and the commands run on code-server?
For code-server specifically you don't need to do anything special, the problem is Continue doesn't even attempt to run the commands.
Just stumbled into this, is there a workaround or at least some plan to address this issue?
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
Same issue here. vscode is running remotely and the terminal commands are not executed but forwarded to the open terminal in vscode.
Bumping to make sure this doesn't get closed like https://github.com/continuedev/continue/pull/7859 :)
Same problem, just found it on Windows with wsl
same problem in OSX
Same on Linux, I really love using continue but will have to find an alternative if no solution is offored :(
+1 on WSL
+1 on WSL
+1 on WSL