Skip to content

Commit 7344d79

Browse files
committed
feat: implement individual file commits and improved file processing
- Change file operations from bulk processing to individual saves - Commit each file immediately after write/delete/rename/search-replace operations - Add detailed commit messages for each individual file operation - Maintain proper error handling for git operations - Show progress for each file operation individually - Remove terminal command display from chat UI (silent execution) - Improved terminal command routing based on chat mode This provides granular control over file changes with individual commits for each operation.
1 parent a7c2560 commit 7344d79

File tree

2 files changed

+315
-256
lines changed

2 files changed

+315
-256
lines changed

dyad/src/components/chat/DyadMarkdownParser.tsx

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { DyadAddIntegration } from "./DyadAddIntegration";
1010
import { DyadEdit } from "./DyadEdit";
1111
import { DyadCodebaseContext } from "./DyadCodebaseContext";
1212
import { DyadThink } from "./DyadThink";
13-
import { DyadRunTerminalCmd } from "./DyadRunTerminalCmd";
1413
import { CodeHighlight } from "./CodeHighlight";
1514
import { useAtomValue } from "jotai";
1615
import { isStreamingAtom } from "@/atoms/chatAtoms";
@@ -125,7 +124,6 @@ function preprocessUnclosedTags(content: string): {
125124
"dyad-codebase-context",
126125
"think",
127126
"dyad-command",
128-
"run_terminal_cmd",
129127
];
130128

131129
let processedContent = content;
@@ -193,7 +191,6 @@ function parseCustomTags(content: string): ContentPiece[] {
193191
"dyad-codebase-context",
194192
"think",
195193
"dyad-command",
196-
"run_terminal_cmd",
197194
];
198195

199196
const tagPattern = new RegExp(
@@ -428,19 +425,9 @@ function renderCustomTag(
428425
return null;
429426

430427
case "run_terminal_cmd":
431-
return (
432-
<DyadRunTerminalCmd
433-
node={{
434-
properties: {
435-
description: attributes.description || "",
436-
cwd: attributes.cwd || "",
437-
state: getState({ isStreaming, inProgress }),
438-
},
439-
}}
440-
>
441-
{content}
442-
</DyadRunTerminalCmd>
443-
);
428+
// Terminal commands should be executed silently by the backend
429+
// Don't render anything for run_terminal_cmd
430+
return null;
444431

445432
default:
446433
return null;

0 commit comments

Comments
 (0)