optimize find / replace / edit tool call UI so it shows up earlier
This commit is contained in:
parent
c11b17042e
commit
044400a963
2 changed files with 2 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue