fix message list session transitions (#1172)

This commit is contained in:
ekko
2026-05-31 09:53:58 +08:00
committed by GitHub
parent 96bdf8d1af
commit e5c5f98fbd
6 changed files with 337 additions and 33 deletions
@@ -94,6 +94,20 @@ describe('tool trace visibility', () => {
])
})
it('does not fall back to the live chat session while history session data is loading', () => {
const chatStore = useChatStore()
chatStore.activeSessionId = 'session-1'
chatStore.activeSession = makeSession(sampleMessages)
const wrapper = mount(HistoryMessageList, {
global: {
stubs: { MessageItem: MessageItemStub },
},
})
expect(wrapper.findAll('.stub-message')).toHaveLength(0)
})
it('hides named transcript traces when the toggle is off while keeping live tool stream visible', () => {
useToolTraceVisibility().setToolTraceVisible(false)