@tomflow/chatloop-extension 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/extension/manifest.json
CHANGED
|
@@ -114,6 +114,12 @@ const onBrowserMessage=(message, sender, reply) => {
|
|
|
114
114
|
throw Error("INVALID_RELOAD_SOURCE");
|
|
115
115
|
reply({status: "ACCEPTED"});
|
|
116
116
|
await chrome.tabs.remove(id);
|
|
117
|
+
// Reload destroys the MV3 Worker immediately. Its dispatch/reply AOP
|
|
118
|
+
// terminal records have already been enqueued after the business reply,
|
|
119
|
+
// but async Native transport may still be in flight. Drain only that
|
|
120
|
+
// soft evidence before teardown; timeout/failure never retries the
|
|
121
|
+
// Action or changes the accepted business result.
|
|
122
|
+
try{await workerApi.audit.drain(300)}catch{/* Audit is non-authoritative. */}
|
|
117
123
|
chrome.runtime.reload();
|
|
118
124
|
} catch (error) {reply({status: "FAILED", code: error.message});}
|
|
119
125
|
})();
|