Make the console survive locked files and private handles, and start with Activities off

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-05 11:38:59 -08:00
1 parent c52244bee1
commit 2cb174ecf0
17 files changed
+160 -69

No files matched your search

+8 -1
View File
@@ -231,7 +231,14 @@ export function serverWorkspace(ctx) {
}
function saveWorkspace(ws) {
writeWorkspace(dir, ws);
try {
writeWorkspace(dir, ws);
} catch (e) {
// The caller changed the cached object before saving: drop it, so the next
// read starts from what is on disk and a retry is not told "duplicate".
workspaceSeen = { stamp: null, ws: null };
throw e;
}
workspaceSeen = { stamp: fileStamp(WORKSPACE_PATH), ws };
}