Commit 5ccf1f2
fix: use shell.path instead of shell.name when spawning terminal
When users select "PowerShell 7" from the shell dropdown, the terminal
was spawning with Windows PowerShell 5 instead. This happened because
the frontend passed shell.name ("pwsh") to the spawn function, but the
backend's resolve_shell_path() couldn't find pwsh.exe in PATH and fell
back to powershell.exe.
By passing shell.path (the already-detected absolute path), we bypass
PATH resolution entirely and use the correct shell executable.
Fixes #59
Co-Authored-By: Claude <noreply@anthropic.com>1 parent bde8122 commit 5ccf1f2
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
764 | | - | |
| 764 | + | |
765 | 765 | | |
766 | 766 | | |
767 | 767 | | |
| |||
0 commit comments