Commit f117437
fix(terminal): cd before running startup command so prompt shows worktree dir
Joining the cd and the user's command with && hid the prompt update
until the long-running command finished, leaving the user looking at
the old directory while bin/setup ran. Send the cd as its own line
first so the shell renders a fresh prompt with the worktree path,
then send the command 250ms later.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 03557a2 commit f117437
1 file changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
211 | 218 | | |
212 | | - | |
213 | | - | |
214 | 219 | | |
215 | 220 | | |
216 | 221 | | |
| |||
0 commit comments