The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
chore(code): const for the reconcile read
purple2a372bfa1bb0
diff --git a/src/lib/staged-apply.ts b/src/lib/staged-apply.tsindex 87215f74..4ee42d4e 100644--- a/src/lib/staged-apply.ts+++ b/src/lib/staged-apply.ts@@ -80,7 +80,6 @@ async function reconcile(change: StagedChange,): Promise<{ content: string; merged: number }> {const base = change.oldContent ?? ''- let current: stringlet res: { content?: string; encoding?: string } | undefinedtry {res = await backendCall<{ content?: string; encoding?: string }>('fs_read', {@@ -99,7 +98,7 @@ async function reconcile(`${change.path} is not a UTF-8 text file on disk, so this edit cannot be checked against it and was not applied. Reject this one and let the model read the file again.`,)}- current = res?.content ?? ''+ const current = res?.content ?? ''// The file on disk decides the form; an empty file inherits the model's.const eol = current ? eolOf(current) : eolOf(change.newContent)const baseLf = toLf(base)