Repository navigation
Commit 63ce619
fix(web): keep worktree default when switching a draft's machine
Switching the environment on a new-thread draft went through the
projectChanged path in composerDraftStore, which reset envMode to
"local" and startFromOrigin to false alongside the (correctly)
cleared branch and worktree path. A user with defaultThreadEnvMode
"worktree" who picked a different machine in the composer landed on
"Current checkout" with whatever stale branch that machine had
checked out.
Branch and worktree path are machine-specific and still reset; env
mode and start-from-origin are user intent and now carry across the
switch.
Co-Authored-By: Claude Fable 5 <[email protected]>1 parent 90f3913 commit 63ce619
3 files changed
Lines changed: 20 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
1106 | | - | |
| 1106 | + | |
1107 | 1107 | | |
1108 | 1108 | | |
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
1112 | 1112 | | |
| 1113 | + | |
1113 | 1114 | | |
1114 | 1115 | | |
1115 | 1116 | | |
| |||
1121 | 1122 | | |
1122 | 1123 | | |
1123 | 1124 | | |
1124 | | - | |
| 1125 | + | |
| 1126 | + | |
1125 | 1127 | | |
1126 | 1128 | | |
1127 | 1129 | | |
1128 | | - | |
| 1130 | + | |
1129 | 1131 | | |
1130 | 1132 | | |
1131 | 1133 | | |
1132 | 1134 | | |
1133 | 1135 | | |
1134 | 1136 | | |
| 1137 | + | |
1135 | 1138 | | |
1136 | 1139 | | |
1137 | 1140 | | |
| |||
1143 | 1146 | | |
1144 | 1147 | | |
1145 | 1148 | | |
1146 | | - | |
| 1149 | + | |
| 1150 | + | |
1147 | 1151 | | |
1148 | 1152 | | |
1149 | 1153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1340 | 1340 | | |
1341 | 1341 | | |
1342 | 1342 | | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
1343 | 1347 | | |
1344 | 1348 | | |
1345 | 1349 | | |
| |||
1358 | 1362 | | |
1359 | 1363 | | |
1360 | 1364 | | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
| 1365 | + | |
1364 | 1366 | | |
1365 | 1367 | | |
1366 | 1368 | | |
| |||
1374 | 1376 | | |
1375 | 1377 | | |
1376 | 1378 | | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
| 1379 | + | |
1383 | 1380 | | |
1384 | 1381 | | |
1385 | 1382 | | |
| |||
2343 | 2340 | | |
2344 | 2341 | | |
2345 | 2342 | | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
2346 | 2346 | | |
2347 | 2347 | | |
2348 | 2348 | | |
| |||
2360 | 2360 | | |
2361 | 2361 | | |
2362 | 2362 | | |
2363 | | - | |
2364 | | - | |
2365 | | - | |
| 2363 | + | |
2366 | 2364 | | |
2367 | 2365 | | |
2368 | 2366 | | |
| |||
2378 | 2376 | | |
2379 | 2377 | | |
2380 | 2378 | | |
2381 | | - | |
2382 | | - | |
2383 | | - | |
2384 | | - | |
2385 | | - | |
2386 | | - | |
| 2379 | + | |
2387 | 2380 | | |
2388 | 2381 | | |
2389 | 2382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
| 186 | + | |
188 | 187 | | |
189 | 188 | | |
190 | 189 | | |
| |||
0 commit comments