fix broken change

This commit is contained in:
Dallin Romney 2025-04-24 21:50:29 -07:00
parent a1bbd2d45a
commit 4b407e5429

View file

@ -11,7 +11,7 @@ type EditToolCallProps = {
};
export function EditFile(props: EditToolCallProps) {
const src = `\`\`\`${getMarkdownLanguageTagForFile(props.relativeFilePath ?? "test.txt")} ${props.relativeFilePath}\n${props.newContents ?? ""}\n\`\`\``;
const src = `\`\`\`${getMarkdownLanguageTagForFile(props.relativeFilePath ?? "test.txt")} ${props.relativeFilePath}\n${props.changes ?? ""}\n\`\`\``;
const isStreaming = useAppSelector((state) => state.session.isStreaming);
const states = useAppSelector((store) => store.session.codeBlockApplyStates);