don't show markdown preview till args are there for create tool

This commit is contained in:
Dallin Romney 2025-05-13 15:04:51 -07:00
parent 931e07fc07
commit caeb37d758

View file

@ -8,6 +8,10 @@ interface CreateFileToolCallProps {
}
export function CreateFile(props: CreateFileToolCallProps) {
if (!props.fileContents) {
return null;
}
const src = `\`\`\`${getMarkdownLanguageTagForFile(props.relativeFilepath ?? "output.txt")} ${props.relativeFilepath}\n${props.fileContents ?? ""}\n\`\`\``;
return props.relativeFilepath ? (