fix(web): address skill row review feedback

This commit is contained in:
Yichen Jiang
2026-08-06 17:21:13 +08:00
parent 690f7ae035
commit a667d2cd64
39 changed files with 326 additions and 142 deletions

View File

@@ -53,6 +53,20 @@ describe('projectConversationHistory', () => {
}])
})
it('projects a paged tool result from its host-carried call pair', () => {
const result = ev.toolResult(50, 3, 'outside-call', '已加载 skill')
const projection = projectConversationHistory([{
event: result,
call: { name: 'skill', arguments: '{"name":"dsh-code-review"}', time: 40 },
}])
expect(projection.eventNodes).toMatchObject([{
kind: 'tool-result',
call: { name: 'skill', argsRaw: '{"name":"dsh-code-review"}' },
callTime: 40,
callView: null,
}])
})
it('projects a high-sequence history window without synthesizing its unloaded prefix', () => {
const baseSeq = 400_000
const events = [