Skip to content

Commit 02f4820

Browse files
philzsketch
andcommitted
webui: expand patch tool cards by default
Made patch tool cards expand by default to show inline diffs immediately, similar to screenshot tool cards. Co-Authored-By: sketch <hello@sketch.dev> Change-ID: s56bd70ba6302978dk
1 parent a8ac150 commit 02f4820

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webui/src/web-components/sketch-tool-calls.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,10 @@ export class SketchToolCalls extends SketchTailwindElement {
167167
<div class="block">
168168
${repeat(this.toolCalls, this.toolUseKey, (toolCall, idx) => {
169169
let shouldOpen = false;
170-
// Always expand screenshot tool calls, expand last tool call if this.open is true
170+
// Always expand screenshot and patch tool calls, expand last tool call if this.open is true
171171
if (
172172
toolCall.name === "browser_take_screenshot" ||
173+
toolCall.name === "patch" ||
173174
(idx == this.toolCalls?.length - 1 && this.open)
174175
) {
175176
shouldOpen = true;

0 commit comments

Comments
 (0)