This repository was archived by the owner on May 15, 2026. It is now read-only.
Commit 711b29e
committed
fix: default lockApiConfigAcrossModes to true to prevent silent profile switching
Changes the default value of lockApiConfigAcrossModes from false to true,
so that by default, switching modes (whether user-initiated or AI-triggered)
will NOT change the active API configuration/model.
Users who want per-mode API configs can still unlock this via the lock icon
in the API config selector popover.
Also guards the cloud profile sync path to respect the lock setting,
preventing silent profile changes from background cloud sync.
Addresses #12222 and #12237.1 parent ad25634 commit 711b29e
4 files changed
Lines changed: 37 additions & 10 deletions
File tree
- src/core/webview
- __tests__
- webview-ui/src/context
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
439 | 443 | | |
440 | 444 | | |
441 | 445 | | |
| |||
996 | 1000 | | |
997 | 1001 | | |
998 | 1002 | | |
999 | | - | |
| 1003 | + | |
1000 | 1004 | | |
1001 | 1005 | | |
1002 | 1006 | | |
| |||
1427 | 1431 | | |
1428 | 1432 | | |
1429 | 1433 | | |
1430 | | - | |
| 1434 | + | |
1431 | 1435 | | |
1432 | 1436 | | |
1433 | 1437 | | |
| |||
2341 | 2345 | | |
2342 | 2346 | | |
2343 | 2347 | | |
2344 | | - | |
| 2348 | + | |
2345 | 2349 | | |
2346 | 2350 | | |
2347 | 2351 | | |
| |||
2562 | 2566 | | |
2563 | 2567 | | |
2564 | 2568 | | |
2565 | | - | |
| 2569 | + | |
2566 | 2570 | | |
2567 | 2571 | | |
2568 | 2572 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
323 | 344 | | |
324 | 345 | | |
325 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1451 | 1451 | | |
1452 | 1452 | | |
1453 | 1453 | | |
| 1454 | + | |
| 1455 | + | |
1454 | 1456 | | |
1455 | 1457 | | |
1456 | 1458 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
0 commit comments