Changesets · Branches · Tags · Compare
| Changeset | bb443ecc07d63f1a84986ae582e663ce0dce16945294291e182e5431ae75f8f1 |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-09-11 13:36 -07:00 |
| Committer | Dallin Romney <dallinromney@gmail.com> · 2025-09-11 13:36 -07:00 |
| Parents | 0519d30c3b39 |
1 file changed
modified gui/src/redux/thunks/handleApplyStateUpdate.ts +32 −31
| @@ -83,43 +83,44 @@ | ||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | if (accepted) { |
| 86 | - // Add autoformatting diff to tool output if present | |
| 87 | - if (applyState.autoFormattingDiff) { | |
| 88 | - dispatch( | |
| 89 | - updateToolCallOutput({ | |
| 90 | - toolCallId: applyState.toolCallId, | |
| 91 | - contextItems: [ | |
| 92 | - { | |
| 93 | - icon: "info", | |
| 94 | - name: "Auto-formatting Applied", | |
| 95 | - description: "Editor auto-formatting changes", | |
| 96 | - content: `Along with your edits, the editor applied the following auto-formatting:\n\n${applyState.autoFormattingDiff}\n\n(Note: Pay close attention to changes such as single quotes being converted to double quotes, semicolons being removed or added, long lines being broken into multiple lines, adjusting indentation style, adding/removing trailing commas, etc. This will help you ensure future SEARCH/REPLACE operations to this file are accurate.)`, | |
| 97 | - hidden: false, | |
| 98 | - }, | |
| 99 | - ], | |
| 100 | - }), | |
| 101 | - ); | |
| 102 | - } | |
| 103 | - | |
| 104 | 86 | if (toolCallState.status !== "errored") { |
| 105 | 87 | dispatch( |
| 106 | 88 | acceptToolCall({ |
| 107 | 89 | toolCallId: applyState.toolCallId, |
| 108 | 90 | }), |
| 109 | 91 | ); |
| 110 | - dispatch( | |
| 111 | - updateToolCallOutput({ | |
| 112 | - toolCallId: applyState.toolCallId, | |
| 113 | - contextItems: [ | |
| 114 | - { | |
| 115 | - name: "Edit Success", | |
| 116 | - content: `Successfully edited ${applyState.filepath}`, | |
| 117 | - description: "", | |
| 118 | - hidden: true, | |
| 119 | - }, | |
| 120 | - ], | |
| 121 | - }), | |
| 122 | - ); | |
| 92 | + | |
| 93 | + // Add autoformatting diff to tool output if present | |
| 94 | + if (applyState.autoFormattingDiff) { | |
| 95 | + dispatch( | |
| 96 | + updateToolCallOutput({ | |
| 97 | + toolCallId: applyState.toolCallId, | |
| 98 | + contextItems: [ | |
| 99 | + { | |
| 100 | + icon: "info", | |
| 101 | + name: "Auto-formatting Applied", | |
| 102 | + description: "Editor auto-formatting changes", | |
| 103 | + content: `Along with your edits, the editor applied the following auto-formatting:\n\n${applyState.autoFormattingDiff}\n\n(Note: Pay close attention to changes such as single quotes being converted to double quotes, semicolons being removed or added, long lines being broken into multiple lines, adjusting indentation style, adding/removing trailing commas, etc. This will help you ensure future SEARCH/REPLACE operations to this file are accurate.)`, | |
| 104 | + hidden: false, | |
| 105 | + }, | |
| 106 | + ], | |
| 107 | + }), | |
| 108 | + ); | |
| 109 | + } else { | |
| 110 | + dispatch( | |
| 111 | + updateToolCallOutput({ | |
| 112 | + toolCallId: applyState.toolCallId, | |
| 113 | + contextItems: [ | |
| 114 | + { | |
| 115 | + name: "Edit Success", | |
| 116 | + content: `Successfully edited ${applyState.filepath}`, | |
| 117 | + description: "", | |
| 118 | + hidden: true, | |
| 119 | + }, | |
| 120 | + ], | |
| 121 | + }), | |
| 122 | + ); | |
| 123 | + } | |
| 123 | 124 | } else { |
| 124 | 125 | dispatch( |
| 125 | 126 | updateToolCallOutput({ |