From 49b67ea8dd16c5c9153d67124a0fec3c7ce0407f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 2 Mar 2026 19:24:08 +0000 Subject: [PATCH 1/3] Initial plan From c8eb89be0e1f0a425f1c5bb7996338c08022d292 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 2 Mar 2026 19:27:49 +0000 Subject: [PATCH 2/3] Fix timing hazard: make non-Dropbox callback async with setTimeout Co-authored-by: Samuel3 <15921086+Samuel3@users.noreply.github.com> --- app/js/Store.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/js/Store.js b/app/js/Store.js index 15374b9..6d740ae 100644 --- a/app/js/Store.js +++ b/app/js/Store.js @@ -32,7 +32,9 @@ var Store = function (callback) { } }) } else if (callback) { - callback.call(this); + setTimeout(function () { + callback.call(self); + }, 0); } }; From d3e73a90bd77d9d315e339639ef72553b2a5b605 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 25 Apr 2026 19:18:55 +0000 Subject: [PATCH 3/3] Use consistent setTimeout delay of 1ms for both Dropbox and non-Dropbox paths Agent-Logs-Url: https://github.com/Samuel3/LetterCreator/sessions/7e95f4f0-0078-4b18-bc4c-8d69f2f08250 Co-authored-by: Samuel3 <15921086+Samuel3@users.noreply.github.com> --- app/js/Store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/Store.js b/app/js/Store.js index 6d740ae..9be8afe 100644 --- a/app/js/Store.js +++ b/app/js/Store.js @@ -34,7 +34,7 @@ var Store = function (callback) { } else if (callback) { setTimeout(function () { callback.call(self); - }, 0); + }, 1); } };