Commit 70ef0e6
committed
fix: remove redundant targetProjectCwd reassignment and replace fragile setup terminal ID heuristic
- Remove dead reassignment of targetProjectCwd in bootstrap worktree
preparation (ws.ts:278) — the value was already set at initialization.
- Extract SETUP_TERMINAL_ID_PREFIX constant into @t3tools/contracts so
the setup terminal naming convention is shared between server and
client instead of duplicated as magic strings.
- Remove the fragile effectiveWorktreePath fallback in
PersistentThreadTerminalDrawer that inferred worktree path from
launchContext.cwd when the active terminal started with 'setup-'.
The fallback could return the wrong path when the launch context
originated from a different terminal. The thread-level worktreePath
is the correct fallback and was already in place.1 parent a5a9521 commit 70ef0e6
File tree
5 files changed
+6
-8
lines changed- apps
- server/src
- project/Layers
- web/src
- components
- packages/contracts/src
5 files changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | 278 | | |
280 | 279 | | |
281 | 280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | 449 | | |
453 | | - | |
| 450 | + | |
454 | 451 | | |
455 | 452 | | |
456 | 453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
0 commit comments