feat: support runtime model selection for both interactive and ACP

This commit is contained in:
mingholy.lmh 2026-02-02 15:57:43 +08:00
parent 06b37bd6bf
commit 0137b316d0
12 changed files with 1145 additions and 160 deletions

View file

@ -182,10 +182,6 @@ describe('<ModelDialog />', () => {
AuthType.QWEN_OAUTH,
MAINLINE_CODER,
undefined,
{
reason: 'user_manual',
context: 'Model switched via /model dialog',
},
);
expect(mockSettings.setValue).toHaveBeenCalledWith(
SettingScope.User,
@ -242,10 +238,6 @@ describe('<ModelDialog />', () => {
AuthType.QWEN_OAUTH,
MAINLINE_CODER,
{ requireCachedCredentials: true },
{
reason: 'user_manual',
context: 'AuthType+model switched via /model dialog',
},
);
expect(mockSettings.setValue).toHaveBeenCalledWith(
SettingScope.User,