feat(codex): refine tool activity display

This commit is contained in:
weishu
2026-07-24 09:39:22 +08:00
parent dd42263aaf
commit 74ad25ec57
28 changed files with 1591 additions and 85 deletions
@@ -223,6 +223,23 @@ describe('convertCodexEvent', () => {
});
});
it('preserves the turn id for custom exec wrapper correlation', () => {
const result = convertCodexEvent({
type: 'response_item',
payload: {
type: 'custom_tool_call',
name: 'exec',
call_id: 'call-exec-turn',
input: 'await tools.exec_command({ cmd: "pwd" });',
internal_chat_message_metadata_passthrough: {
turn_id: 'turn-1'
}
}
});
expect(result?.turnId).toBe('turn-1');
});
it('converts tool_search_call items', () => {
const result = convertCodexEvent({
type: 'response_item',