Commit de8886a
authored
fix: auto-close files setting cannot be unchecked — always reverts to checked (#668)
* fix: include auto-close settings in getState and getStateToPostToWebview
The autoCloseZooOpenedFiles, autoCloseZooOpenedFilesAfterUserEdited, and
autoCloseZooOpenedNewFiles settings were saved to global state but never
included in the state posted back to the webview (getStateToPostToWebview)
or returned by getState. This caused the checkbox to always revert to
checked after saving, and the DiffViewProvider to always use the default
value regardless of the user's preference.
Also adds a changeset instruction to AGENTS.md.
Closes #667
* test: move auto-close settings tests to ClineProvider.spec.ts and assert all three fields
Address review comments on PR #668:
- Move the auto-close settings test block from ClineProvider.taskHistory.spec.ts
to ClineProvider.spec.ts, where existing getState settings coverage
(autoCondenseContext, writeDelayMs) already lives.
- Expand the getState regression test to assert autoCloseZooOpenedFiles,
autoCloseZooOpenedFilesAfterUserEdited, and autoCloseZooOpenedNewFiles so a
regression dropping any of the three fields is caught.1 parent ccf07eb commit de8886a
3 files changed
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2278 | 2278 | | |
2279 | 2279 | | |
2280 | 2280 | | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
2281 | 2284 | | |
2282 | 2285 | | |
2283 | 2286 | | |
| |||
2457 | 2460 | | |
2458 | 2461 | | |
2459 | 2462 | | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
2460 | 2466 | | |
2461 | 2467 | | |
2462 | 2468 | | |
| |||
2657 | 2663 | | |
2658 | 2664 | | |
2659 | 2665 | | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
2660 | 2669 | | |
2661 | 2670 | | |
2662 | 2671 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1010 | 1010 | | |
1011 | 1011 | | |
1012 | 1012 | | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
1013 | 1063 | | |
1014 | 1064 | | |
1015 | 1065 | | |
| |||
0 commit comments