Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
5 changes: 5 additions & 0 deletions .changeset/bright-files-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"kilo-code": patch
---

Show aggregate added and removed line counts for multi-file patch tool calls.
12 changes: 12 additions & 0 deletions packages/kilo-ui/src/components/basic-tool.css
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,18 @@ html[data-theme="kilo-vscode"] [data-component="tool-part-wrapper"][data-part-ty
color: var(--text-weak);
}

[data-slot="message-part-tool-changes"] {
display: inline-flex;
align-items: baseline;
flex-shrink: 0;
}

[data-slot="basic-tool-tool-subtitle"] + [data-slot="message-part-tool-changes"]::before {
content: "·";
margin-right: 6px;
color: var(--text-weak);
}

[data-slot="basic-tool-tool-title"],
[data-slot="basic-tool-tool-subtitle"],
[data-slot="basic-tool-tool-arg"],
Expand Down
13 changes: 12 additions & 1 deletion packages/kilo-ui/src/components/message-part.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2764,7 +2764,18 @@ ToolRegistry.register({
/>
)}
</Show>
<Show when={!single() && subtitle()}>{(text) => <ToolText text={text()} animate={reveal()} />}</Show>
<Show when={!single() && subtitle()}>
{(text) => (
<>
<ToolText text={text()} animate={reveal()} />
<Show when={files().some((file) => file.additions > 0 || file.deletions > 0)}>
<span data-slot="message-part-tool-changes">
Comment thread
marius-kilocode marked this conversation as resolved.
Outdated
<DiffChanges changes={files()} />
</span>
</Show>
</>
)}
</Show>
</div>
</div>
</div>
Expand Down
Loading