Commit 646f549
fix(web): finish the settings-environment migration
Two consumers were left on the primary environment after the settings
panels moved to the resolved settings environment, so on a hosted session
with no primary device they disagreed with the panels that write them.
- New-thread defaults (`defaultThreadEnvMode`,
`newWorktreesStartFromOrigin`) read `primaryServerSettingsAtom` in
`useNewThreadHandler` and `ChatView`, so the General controls saved and
re-displayed while new drafts kept the schema defaults. Both now read
`settingsServerSettingsAtom` — the environment those controls write.
- `SourceControlSettingsPanel` still resolved its discovery target and
gated `SourceControlWritingSettingsSection` on `usePrimaryEnvironment`,
so the writer-model and fetch-interval controls never mounted there.
It now uses `useSettingsEnvironmentId`, matching the section's own hooks.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 31a9067 commit 646f549
3 files changed
Lines changed: 24 additions & 19 deletions
File tree
- apps/web/src
- components
- settings
- hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | 223 | | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
1261 | 1261 | | |
1262 | 1262 | | |
1263 | 1263 | | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
1268 | 1268 | | |
1269 | 1269 | | |
1270 | 1270 | | |
| |||
3980 | 3980 | | |
3981 | 3981 | | |
3982 | 3982 | | |
3983 | | - | |
| 3983 | + | |
3984 | 3984 | | |
3985 | 3985 | | |
3986 | 3986 | | |
| |||
5816 | 5816 | | |
5817 | 5817 | | |
5818 | 5818 | | |
5819 | | - | |
| 5819 | + | |
5820 | 5820 | | |
5821 | 5821 | | |
5822 | 5822 | | |
| |||
5828 | 5828 | | |
5829 | 5829 | | |
5830 | 5830 | | |
5831 | | - | |
| 5831 | + | |
5832 | 5832 | | |
5833 | 5833 | | |
5834 | 5834 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
512 | 515 | | |
513 | 516 | | |
514 | 517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
149 | | - | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| |||
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
165 | | - | |
| 167 | + | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| |||
244 | 246 | | |
245 | 247 | | |
246 | 248 | | |
247 | | - | |
| 249 | + | |
248 | 250 | | |
249 | 251 | | |
250 | 252 | | |
| |||
256 | 258 | | |
257 | 259 | | |
258 | 260 | | |
259 | | - | |
| 261 | + | |
260 | 262 | | |
261 | 263 | | |
262 | 264 | | |
| |||
278 | 280 | | |
279 | 281 | | |
280 | 282 | | |
281 | | - | |
| 283 | + | |
282 | 284 | | |
283 | 285 | | |
284 | 286 | | |
| |||
0 commit comments