Ensure fs_sync always writes to current state's path (even if Yaak changes the default)

This commit is contained in:
Gregory Schier
2025-01-08 09:20:59 -08:00
parent 95266a9177
commit 37671a50f2
3 changed files with 19 additions and 16 deletions

View File

@@ -17,7 +17,7 @@ export function useSyncWorkspace(
} = {},
) {
const sync = useCallback(async () => {
if (workspace == null || workspace.settingSyncDir) return;
if (workspace == null || !workspace.settingSyncDir) return;
const ops = await calculateSync(workspace) ?? [];
if (ops.length === 0) {
@@ -31,6 +31,8 @@ export function useSyncWorkspace(
return;
}
console.log("Filesystem changes detected", dbChanges);
const confirmed = await showConfirm({
id: 'commit-sync',
title: 'Filesystem Changes Detected',

View File

@@ -29,8 +29,6 @@ async function sync() {
return;
}
console.log('Syncing model stores', args);
// Set the things we need first, first
jotaiStore.set(httpRequestsAtom, await invokeCmd('cmd_list_http_requests', args));
jotaiStore.set(grpcRequestsAtom, await invokeCmd('cmd_list_grpc_requests', args));