refactor(settings): sequential settings migration

This commit is contained in:
mingholy.lmh 2026-02-28 18:13:25 +08:00
parent ac5a0c68e5
commit ae8c0d3d4e
18 changed files with 3527 additions and 944 deletions

View file

@ -190,6 +190,7 @@ describe('gemini.tsx main function', () => {
},
setValue: vi.fn(),
forScope: () => ({ settings: {}, originalSettings: {}, path: '' }),
migrationWarnings: [],
} as never);
try {
await main();
@ -322,6 +323,7 @@ describe('gemini.tsx main function', () => {
},
setValue: vi.fn(),
forScope: () => ({ settings: {}, originalSettings: {}, path: '' }),
migrationWarnings: [],
} as never);
vi.mocked(parseArguments).mockResolvedValue({
@ -452,6 +454,7 @@ describe('gemini.tsx main function kitty protocol', () => {
},
setValue: vi.fn(),
forScope: () => ({ settings: {}, originalSettings: {}, path: '' }),
migrationWarnings: [],
} as never);
vi.mocked(parseArguments).mockResolvedValue({
model: undefined,