tool call id for instant apply

This commit is contained in:
Dallin Romney 2025-04-04 03:48:49 -07:00
parent 05c092b302
commit c50fbbbb4f
2 changed files with 4 additions and 2 deletions

View file

@ -213,6 +213,7 @@ export class VsCodeMessenger {
diffLines,
instant,
data.streamId,
data.toolCallId,
);
} else {
const prompt = `The following code was suggested as an edit:\n\`\`\`\n${data.text}\n\`\`\`\nPlease apply it to the previous code.`;

View file

@ -34,11 +34,12 @@ export function EditFile(props: EditToolCallProps) {
disableManualApply={true}
singleCodeblockStreamId={applyState?.streamId}
/>
{isStreaming && applyState?.status === "streaming" && (
{/* TODO better indicator of generation at bottom */}
{/* {isStreaming && applyState?.status === "streaming" && (
<div className={`m-2 flex items-center justify-center`}>
Generating...
</div>
)}
)} */}
{!isStreaming && applyState?.status === "done" && (
<div className={`m-2 flex items-center justify-center`}>
<AcceptRejectAllButtons