✨ feat(vscode): 问 AI 输入框旁边能选 Claude profile,记住上次选的,问答灰字写用哪个 profile 答的

This commit is contained in:
cruldra committed 2026-09-26 22:28:29 +08:00
1 parent 1eb42d8389
commit 9efae1f496
20 files changed
+397 -63

No files matched your search

@@ -34,6 +34,14 @@ describe('问 AI 的状态', () => {
expect(historyOf(state, IF).map(entry => entry.id)).toEqual(['old'])
})
it('profile 下拉:扩展端发来什么就显示什么,问答刷新不丢', () => {
const profiles = { options: [{ id: '', label: '默认' }, { id: 'sonnet', label: 'sonnet' }], selected: 'sonnet' }
expect(EMPTY_QA.profiles).toEqual({ options: [], selected: '' })
const state = run({ type: 'profiles', profiles }, qa([thread(IF, 'e1')]))
expect(state.profiles).toEqual(profiles)
expect(state.threads).toHaveLength(1)
})
it('收起就结束这一轮:答完的回到历史,还在答的留着;再展开', () => {
let state = run(
qa([thread(IF, 'e1')]),