optimize find / replace / edit tool call UI so it shows up earlier

This commit is contained in:
Nate 2025-07-05 11:17:21 -07:00
parent c11b17042e
commit 044400a963
2 changed files with 2 additions and 3 deletions

View file

@ -219,7 +219,6 @@ export function StepContainerPreToolbar({
if (isGeneratingCodeBlock) {
return (
<span className="text-lightgray inline-flex items-center gap-2 text-right">
{!isExpanded ? `${numLines} line${plural}` : "Generating"}{" "}
<div>
<Spinner />
</div>

View file

@ -9,11 +9,11 @@ type EditToolCallProps = {
};
export function EditFile(props: EditToolCallProps) {
if (!props.relativeFilePath || !props.changes) {
if (!props.relativeFilePath) {
return null;
}
const src = `\`\`\`${getMarkdownLanguageTagForFile(props.relativeFilePath ?? "test.txt")} ${props.relativeFilePath}\n${props.changes}\n\`\`\``;
const src = `\`\`\`${getMarkdownLanguageTagForFile(props.relativeFilePath)} ${props.relativeFilePath}\n${props.changes}\n\`\`\``;
return (
<StyledMarkdownPreview