Commit 82d3101
committed
refactor(setup): persist wizard platform selection in setupPreferences
The setup wizard was writing the user's "which platforms does this
project target?" answer into sessionDefaults.platform, conflating UI
memory with a runtime tool-param default. It also relied on
sessionDefaults.simulatorPlatform (an internal cache) to recover the
non-macOS half of multi-platform selections, which silently reverted
[macOS, visionOS] to [macOS, iOS] on re-run.
Move wizard memory to a dedicated top-level setupPreferences.platforms
field. sessionDefaults.platform/simulatorPlatform are no longer touched
by setup; they remain agent-controlled session defaults. The mcp-json
output still seeds XCODEBUILDMCP_PLATFORM for fresh clients, since that
is an explicit env-var bootstrap, not internal state.
Follow-up #366 tracks moving simulatorPlatform out of sessionDefaults.1 parent f0eb257 commit 82d3101
4 files changed
Lines changed: 49 additions & 31 deletions
File tree
- src
- cli/commands
- __tests__
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1337 | 1337 | | |
1338 | 1338 | | |
1339 | 1339 | | |
| 1340 | + | |
1340 | 1341 | | |
1341 | 1342 | | |
1342 | | - | |
| 1343 | + | |
| 1344 | + | |
1343 | 1345 | | |
1344 | 1346 | | |
1345 | 1347 | | |
| |||
1577 | 1579 | | |
1578 | 1580 | | |
1579 | 1581 | | |
1580 | | - | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
1581 | 1588 | | |
1582 | 1589 | | |
1583 | 1590 | | |
| |||
1648 | 1655 | | |
1649 | 1656 | | |
1650 | 1657 | | |
1651 | | - | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
1652 | 1662 | | |
1653 | 1663 | | |
1654 | 1664 | | |
| |||
1723 | 1733 | | |
1724 | 1734 | | |
1725 | 1735 | | |
1726 | | - | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
1727 | 1740 | | |
1728 | 1741 | | |
1729 | 1742 | | |
| |||
1793 | 1806 | | |
1794 | 1807 | | |
1795 | 1808 | | |
1796 | | - | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
1797 | 1813 | | |
1798 | 1814 | | |
1799 | 1815 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
187 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
192 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
193 | 193 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
| 194 | + | |
205 | 195 | | |
206 | 196 | | |
207 | 197 | | |
| |||
347 | 337 | | |
348 | 338 | | |
349 | 339 | | |
350 | | - | |
351 | | - | |
352 | | - | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
353 | 343 | | |
354 | 344 | | |
355 | 345 | | |
| |||
1113 | 1103 | | |
1114 | 1104 | | |
1115 | 1105 | | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | 1106 | | |
1122 | 1107 | | |
1123 | 1108 | | |
| |||
1141 | 1126 | | |
1142 | 1127 | | |
1143 | 1128 | | |
1144 | | - | |
1145 | 1129 | | |
| 1130 | + | |
| 1131 | + | |
1146 | 1132 | | |
1147 | 1133 | | |
1148 | 1134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
| |||
424 | 429 | | |
425 | 430 | | |
426 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
427 | 438 | | |
428 | 439 | | |
429 | 440 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
0 commit comments