Commit 509d497
authored
feat(web): put legacy plan mode behind a setting, and adopt #6420 (#59)
* feat(web): put legacy plan mode behind a setting
Reverses the F6 decision recorded in the upstream ledger. Pylon kept the
composer's Build/Plan toggle when upstream removed it in #5551, on the
argument that plan mode is first-class in Claude Code and Codex. In practice
it goes unused here, so Pylon now matches upstream: the toggle and the /plan
and /default slash commands are gated behind a `planModeEnabled` client
setting, default off.
Ported rather than cherry-picked. #5551 is 338 commits back and touches
ChatComposer.tsx, which has diverged hard (4240 lines here vs upstream's
2824); its Beta-panel placement and sidebar-v2 search entries have since been
superseded upstream anyway. This implements upstream's current end state
against Pylon's tree.
Gating the composer's `showInteractionModeToggle` covers both entry points,
because Pylon already derives the /plan slash command from that same flag.
ChatView forces the effective mode back to "default" while the setting is off
so a thread saved in plan mode is not stranded with its toggle hidden.
Pylon Mobile already carries a device-local `planModeEnabled` preference,
documented as the counterpart of this key, so the two surfaces now agree.
This unblocks upstream #6420, which depends on the flag.
* fix(web): hide opencode's plan agent when legacy plan mode is off (#6420)
(cherry picked from commit 80c37f1a721d36bde86b31c475fcc8d3db75f706)
Adopted now that Pylon has the `planModeEnabled` flag it depends on. Skipped
in the third 2026-08-19 batch because it required the setting F6 had rejected.
Two adaptations. The import collisions in `modelSelection.ts` and
`SettingsPanels.tsx` were unioned — Pylon's `getBackgroundTextGenerationProviders`
and `providerInstancePrioritySortKey` sit alongside upstream's
`withoutPlanAgentSelection`. And the `legacy-plan-mode` settings-search id was
registered against `/settings/general`, matching where Pylon keeps its other
legacy rows.
* docs(upstream): record the F6 reversal on legacy plan mode1 parent fe7387b commit 509d497
15 files changed
Lines changed: 411 additions & 10 deletions
File tree
- .agents
- apps/web/src
- components
- chat
- settings
- routes
- packages/contracts/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1839 | 1839 | | |
1840 | 1840 | | |
1841 | 1841 | | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
1842 | 1874 | | |
1843 | 1875 | | |
1844 | 1876 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1661 | 1661 | | |
1662 | 1662 | | |
1663 | 1663 | | |
1664 | | - | |
1665 | | - | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
1666 | 1671 | | |
1667 | 1672 | | |
1668 | 1673 | | |
| |||
5433 | 5438 | | |
5434 | 5439 | | |
5435 | 5440 | | |
| 5441 | + | |
5436 | 5442 | | |
5437 | 5443 | | |
5438 | 5444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1593 | 1593 | | |
1594 | 1594 | | |
1595 | 1595 | | |
| 1596 | + | |
1596 | 1597 | | |
1597 | 1598 | | |
1598 | 1599 | | |
| |||
1601 | 1602 | | |
1602 | 1603 | | |
1603 | 1604 | | |
| 1605 | + | |
1604 | 1606 | | |
1605 | 1607 | | |
1606 | 1608 | | |
1607 | 1609 | | |
1608 | 1610 | | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
1609 | 1616 | | |
1610 | 1617 | | |
1611 | 1618 | | |
1612 | | - | |
1613 | | - | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
1614 | 1622 | | |
1615 | 1623 | | |
1616 | 1624 | | |
1617 | 1625 | | |
1618 | | - | |
| 1626 | + | |
1619 | 1627 | | |
1620 | 1628 | | |
1621 | 1629 | | |
| |||
1972 | 1980 | | |
1973 | 1981 | | |
1974 | 1982 | | |
| 1983 | + | |
1975 | 1984 | | |
1976 | 1985 | | |
1977 | 1986 | | |
| |||
1983 | 1992 | | |
1984 | 1993 | | |
1985 | 1994 | | |
| 1995 | + | |
1986 | 1996 | | |
1987 | 1997 | | |
1988 | 1998 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | | - | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| 180 | + | |
178 | 181 | | |
179 | 182 | | |
180 | 183 | | |
| |||
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
| 207 | + | |
204 | 208 | | |
205 | 209 | | |
206 | 210 | | |
| |||
214 | 218 | | |
215 | 219 | | |
216 | 220 | | |
| 221 | + | |
217 | 222 | | |
218 | 223 | | |
219 | 224 | | |
| |||
227 | 232 | | |
228 | 233 | | |
229 | 234 | | |
| 235 | + | |
230 | 236 | | |
231 | 237 | | |
232 | 238 | | |
| |||
263 | 269 | | |
264 | 270 | | |
265 | 271 | | |
| 272 | + | |
266 | 273 | | |
267 | 274 | | |
268 | 275 | | |
| |||
451 | 458 | | |
452 | 459 | | |
453 | 460 | | |
| 461 | + | |
454 | 462 | | |
455 | 463 | | |
456 | 464 | | |
| |||
464 | 472 | | |
465 | 473 | | |
466 | 474 | | |
| 475 | + | |
467 | 476 | | |
468 | 477 | | |
469 | 478 | | |
| |||
473 | 482 | | |
474 | 483 | | |
475 | 484 | | |
| 485 | + | |
476 | 486 | | |
477 | 487 | | |
478 | 488 | | |
| |||
543 | 553 | | |
544 | 554 | | |
545 | 555 | | |
| 556 | + | |
546 | 557 | | |
547 | 558 | | |
548 | 559 | | |
| |||
Lines changed: 61 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| 124 | + | |
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
| |||
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
| 138 | + | |
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
| |||
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
| 164 | + | |
160 | 165 | | |
161 | 166 | | |
162 | 167 | | |
| |||
165 | 170 | | |
166 | 171 | | |
167 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
168 | 225 | | |
169 | 226 | | |
170 | 227 | | |
171 | 228 | | |
172 | 229 | | |
173 | 230 | | |
| 231 | + | |
174 | 232 | | |
175 | 233 | | |
176 | 234 | | |
| |||
199 | 257 | | |
200 | 258 | | |
201 | 259 | | |
| 260 | + | |
202 | 261 | | |
203 | 262 | | |
204 | 263 | | |
| |||
220 | 279 | | |
221 | 280 | | |
222 | 281 | | |
| 282 | + | |
223 | 283 | | |
224 | 284 | | |
225 | 285 | | |
| |||
240 | 300 | | |
241 | 301 | | |
242 | 302 | | |
| 303 | + | |
243 | 304 | | |
244 | 305 | | |
245 | 306 | | |
| |||
0 commit comments