You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like it is launching the wrong code-server. There is one that launches the server (outside the integrated terminal) and one that only interacts with the current code-server instance (inside the integrated terminal).
Inside the integrated terminal, it is supposed to use lib/vscode/bin/remote-cli/code-server) which supports the --wait flag.
It is supposed to add lib/vscode/bin to PATH automatically but maybe that is not happening here, or maybe you have something that is overriding PATH?
I experimented with 4.144.0 and this worked for me:
$ which code-server
/tmp/code-server/lib/code-server-4.144.0/lib/vscode/bin/remote-cli/code-server
$ code-server --version
1.144.0
ee31cdbe02c07b3ba718007f221d14c890696c61
x64
$ export GIT_EDITOR="code-server --wait --reuse-window"
$ git rebase -i HEAD~10
hint: Waiting for your editor to close the file...
Possibly we should add --wait to the other code-server script so it will work even if the wrong one is called. 🤔
On both versions, which code-server returns /tmp/coder-script-data/bin/code-server. Looking at both versions' $PATH shows lib/vscode/bin/ is absent there too. It's possible there is something overriding PATH as I'm working through an organisation, but I don't think it's likely due to the nature of this problem (and PATH looks pretty normal, all things considered)
Running your export command doesn't fix the problem unfortunately
was this a typo or are you running major versions behind
The lib/vscode/bin/remote-cli/code-server script comes directly from VS Code without any modifications, it is not the same code-server script that we ship in the root bin (which is our own script that actually launches code-server), so the former shows VS Code's version, which is 1.144.0. We match code-server's minor/patch to the minor/patch of VS Code that is bundled which is why they are the same except the major.
It would probably make sense to patch the remote-cli/code-server script to show the code-server version instead, but we have not done that yet.
I would check if you have a ~/.bashrc or something might be setting PATH. My Coder workspace has this for PATH in the integrated terminal, in case it helps:
$ printenv PATH
/home/coder/.local/bin:/tmp/code-server/lib/code-server-4.144.0/lib/vscode/bin/remote-cli:/home/coder/.local/bin:/home/coder/.local/bin:/tmp/coder-script-data/bin:[omitted the rest]
Activity
linear-code commentedon Oct 29, 2026
CODE-95
code-asher commentedon Oct 29, 2026
It looks like it is launching the wrong code-server. There is one that launches the server (outside the integrated terminal) and one that only interacts with the current code-server instance (inside the integrated terminal).
Inside the integrated terminal, it is supposed to use
lib/vscode/bin/remote-cli/code-server) which supports the--waitflag.It is supposed to add
lib/vscode/bintoPATHautomatically but maybe that is not happening here, or maybe you have something that is overridingPATH?I experimented with 4.144.0 and this worked for me:
Possibly we should add
--waitto the other code-server script so it will work even if the wrong one is called. 🤔storyofwoe commentedon Oct 30, 2026
On both versions,
which code-serverreturns/tmp/coder-script-data/bin/code-server. Looking at both versions'$PATHshowslib/vscode/bin/is absent there too. It's possible there is something overridingPATHas I'm working through an organisation, but I don't think it's likely due to the nature of this problem (andPATHlooks pretty normal, all things considered)Running your
exportcommand doesn't fix the problem unfortunatelystoryofwoe commentedon Oct 30, 2026
Also, was this a typo or are you running major versions behind?
code-asher commentedon Oct 30, 2026
The
lib/vscode/bin/remote-cli/code-serverscript comes directly from VS Code without any modifications, it is not the samecode-serverscript that we ship in the rootbin(which is our own script that actually launches code-server), so the former shows VS Code's version, which is 1.144.0. We match code-server's minor/patch to the minor/patch of VS Code that is bundled which is why they are the same except the major.It would probably make sense to patch the
remote-cli/code-serverscript to show the code-server version instead, but we have not done that yet.I would check if you have a ~/.bashrc or something might be setting
PATH. My Coder workspace has this forPATHin the integrated terminal, in case it helps:Normally VS Code sets
remote-clion the PATH (https://github.com/microsoft/vscode/blob/2c33b50b16c472efe58357d1d2a8a5414bc23fbf/src/vs/server/node/extensionHostConnection.ts#L50) but a .bashrc or .profile or some such could still override it.