fix: memory files tab empty on Windows #140

Merged
naomi merged 2 commits from fix/memory-files-windows into main 2026-02-08 13:51:10 -08:00
Showing only changes of commit 6f7544c8b3 - Show all commits
+2 -2
View File
@@ -1,7 +1,6 @@
<script lang="ts">
import { onMount } from "svelte";
import { invoke } from "@tauri-apps/api/core";
import { readTextFile } from "@tauri-apps/plugin-fs";
import Markdown from "./Markdown.svelte";
let memoryFiles: string[] = $state([]);
@@ -33,7 +32,8 @@
isLoading = true;
error = null;
try {
const content = await readTextFile(filePath);
// Use our backend command instead of Tauri plugin to handle WSL paths
const content = await invoke<string>("read_file_content", { path: filePath });
fileContent = content;
selectedFile = filePath;
} catch (e) {