diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..6313b56
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+* text=auto eol=lf
diff --git a/apps/tauri/src/App.svelte b/apps/tauri/src/App.svelte
index 6ce797f..5e29705 100644
--- a/apps/tauri/src/App.svelte
+++ b/apps/tauri/src/App.svelte
@@ -60,7 +60,9 @@
{:else if app.screen === "setup"}
{:else}
-
+ {#key app.config?.current_workspace}
+
+ {/key}
{/if}
diff --git a/apps/tauri/src/lib/screens/TasksScreen.svelte b/apps/tauri/src/lib/screens/TasksScreen.svelte
index bc84859..f05d2b1 100644
--- a/apps/tauri/src/lib/screens/TasksScreen.svelte
+++ b/apps/tauri/src/lib/screens/TasksScreen.svelte
@@ -25,6 +25,7 @@
}
});
+
function openTask(task: Task) {
taskStack = [task.id];
}
diff --git a/apps/tauri/src/lib/stores/app.svelte.ts b/apps/tauri/src/lib/stores/app.svelte.ts
index 0bcdc81..c3859cb 100644
--- a/apps/tauri/src/lib/stores/app.svelte.ts
+++ b/apps/tauri/src/lib/stores/app.svelte.ts
@@ -133,6 +133,7 @@ async function switchWorkspace(id: string) {
await invoke("set_current_workspace", { id });
config = await invoke("get_config");
activeListId = null;
+ tasks = [];
await loadLists();
const ws = config?.workspaces[id];
if (ws) invoke("watch_workspace", { path: ws.path }).catch((e) => console.warn("File watcher failed:", e));