Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/toad/acp/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ def from_transcript(cls, events: tuple[ToolTranscript, ...]):
borrow the final ACP state, including an end without its earlier start.
"""
first = events[0]
call = ToolCall(tool_call_id=first.tool_call_id,
title=first.tool_name or 'Tool', status='completed',
kind=NativeTool.start(first.tool_call_id, first.tool_name, {}).kind)
call = ToolCall(tool_call_id=first.tool_call_id, title='', status='completed')
consumer = cls(call)
for event in events:
consumer.dispatch_sync(event)
start = NativeTool.start(first.tool_call_id, first.tool_name, call.raw_input or {})
call.title = start.title
call.kind = start.kind
return cls.from_acp(call)

@handles(ToolStartTranscript)
Expand Down
Loading