Elffuss BraidHub

kikocis/continue public

Merge pull request #7698 from continuedev/dallin/no-diff-output

feat: empty diff tool result message
Changesetad172f4402b860409d42489b1ff8439dd6f32affdc01feab4592f839525a2abe
AuthorDallin Romney <dallinromney@gmail.com> · 2025-09-11 14:39 -07:00
CommitterGitHub <noreply@github.com> · 2025-09-11 14:39 -07:00
Parents631c10de5d5c, ca33fe3d7491

Browse the files at this changeset

1 file changed

modified core/tools/implementations/viewDiff.ts +11 −0
@@ -9,6 +9,17 @@
99 // TODO includeUnstaged should be an option
1010
1111 const combinedDiff = diffs.join("\n");
12+
13+ if (!combinedDiff.trim()) {
14+ return [
15+ {
16+ name: "Diff",
17+ description: "current Git diff",
18+ content: "The current diff is empty",
19+ },
20+ ];
21+ }
22+
1223 const diffLines = combinedDiff.split("\n");
1324
1425 let truncated = false;