Repository navigation
fix(server): resolve the configured shell for session terminals - #61389
Tsuki-hash wants to merge 1 commit into
Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 72 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
Thanks for coming back to this, and for the original fix in #51052. I think this duplicates #61353, which fixes the same issue (#51051) in the same One thing to know: #61353 started with the same approach as this PR, yielding You clearly know this code well, so reviewing or testing #61353 (especially on Windows, where the bug shows up most) would be really helpful. If you think it's missing something, please comment there. |
Resolves the configured shell for session terminals created without an explicit command, instead of falling back to
$SHELL.Previously
persistentPty.createpassed onlyctx.payload.commandthrough, so a terminal opened without a command (for examplectrl+x tin the web UI) fell back toShellSelect.environment(), which ignores the configured shell. This is the root cause of #51051, and it resurfaced in 2.2.5 when #60346 moved the desktop terminal to persistent PTYs, since that path resolves the shell the same way.Fixes #51051.
Supersedes #51052 (closed by the automated cleanup, not on its merits; its fork branch is gone, so this is a fresh resubmission of the same fix against current
dev).Test plan
Visual