Results 534 comments of Asher

Maybe if no file is provided we should spawn normally.

The logic is here: https://github.com/coder/code-server/blob/5bc26e90cbf17c9e79d5646fd93838fc0082d9ab/src/node/cli.ts#L735-L766 If `process.env.VSCODE_IPC_HOOK_CLI` is set we unconditionally try to open a file in the existing instance (`VSCODE_IPC_HOOK_CLI` contains the path to a socket that can be...

Yeah this is expected if running inside the integrated terminal. Also in the integrated terminal `code-server` will use the upstream script since 4.5.2 so unsetting VSCODE_IPC_HOOK_CLI may no longer work...

I volunteered to take this since I was also going to do https://github.com/coder/coder/issues/3666 since that will touch the reconnection code anyway but it is looking like it will be a...

I believe this is as designed; code-server will prefer the last opened directory to whatever is passed on the command line. This behavior can be prevented with `--ignore-last-opened` to always...

Oh yeah you are right I had the same thoughts which is the reason we initially implemented it such that the path was preferred. I originally wrote in [this issue](https://github.com/coder/code-server/issues/1132):...

So looking at the commit history I think this happened during the switch to upstream's server. Upstream's implementation was preferring the last opened over the provided path so that naturally...

Agreed that it would be cool to handle this in the UI and it should be pretty straightforward, we just need to implement a pinentry script that talks to code-server...

There is no way to achieve this currently but it would be pretty trivial to implement. I think the main question would just be how exactly we want to implement...

Wow my comment showed up almost three months later. :hourglass: