Commit 3259b8b
Apply login-shell -l flag when args array is empty.
Empty arrays are truthy in JS, so `explicitArgs || resolveLoginArg(...)`
preserved the empty array and skipped the -l fallback. detectAvailableShells
returns args:[] on Unix, which propagates through the default-shell flow,
so on standalone macOS the spawned zsh ran without -l. ~/.zprofile was
skipped, /opt/homebrew/bin never landed on PATH, and asdf's precmd hook
emitted "command not found: asdf" on every prompt. VS Code hid the bug by
hydrating its own env from a login shell at startup.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7a1a05d commit 3259b8b
2 files changed
Lines changed: 33 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
103 | 124 | | |
104 | 125 | | |
105 | 126 | | |
| |||
223 | 244 | | |
224 | 245 | | |
225 | 246 | | |
226 | | - | |
| 247 | + | |
227 | 248 | | |
228 | | - | |
| 249 | + | |
229 | 250 | | |
230 | | - | |
231 | | - | |
| 251 | + | |
| 252 | + | |
232 | 253 | | |
233 | | - | |
234 | | - | |
| 254 | + | |
| 255 | + | |
235 | 256 | | |
236 | 257 | | |
237 | 258 | | |
238 | 259 | | |
239 | | - | |
240 | | - | |
| 260 | + | |
241 | 261 | | |
242 | 262 | | |
243 | 263 | | |
| |||
0 commit comments