@adhdev/daemon-standalone 0.9.82-rc.245 → 0.9.82-rc.247
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/package.json
CHANGED
|
@@ -1852,12 +1852,14 @@ async function drainCoordinatorPendingEvents(ctx, opts) {
|
|
|
1852
1852
|
for (const event of localEvents) {
|
|
1853
1853
|
const payload = buildMeshForwardPayloadFromPendingEvent(event);
|
|
1854
1854
|
if (!payload.event || !payload.meshId) continue;
|
|
1855
|
+
let injected = false;
|
|
1855
1856
|
try {
|
|
1856
1857
|
await ctx.transport.command("mesh_forward_event", payload);
|
|
1858
|
+
injected = true;
|
|
1857
1859
|
} catch {
|
|
1858
1860
|
}
|
|
1859
1861
|
rememberMeshSessionProviderMetadataFromEvent({ ...event, metadataEvent: payload });
|
|
1860
|
-
surfacedEvents.push(event);
|
|
1862
|
+
if (!injected) surfacedEvents.push(event);
|
|
1861
1863
|
}
|
|
1862
1864
|
} catch {
|
|
1863
1865
|
}
|
|
@@ -1883,12 +1885,14 @@ async function drainCoordinatorPendingEvents(ctx, opts) {
|
|
|
1883
1885
|
for (const event of localEvents) {
|
|
1884
1886
|
const payload = buildMeshForwardPayloadFromPendingEvent(event);
|
|
1885
1887
|
if (!payload.event || !payload.meshId) continue;
|
|
1888
|
+
let injected = false;
|
|
1886
1889
|
try {
|
|
1887
1890
|
await ctx.transport.command("mesh_forward_event", payload);
|
|
1891
|
+
injected = true;
|
|
1888
1892
|
} catch {
|
|
1889
1893
|
}
|
|
1890
1894
|
rememberMeshSessionProviderMetadataFromEvent({ ...event, metadataEvent: payload });
|
|
1891
|
-
surfacedEvents.push(event);
|
|
1895
|
+
if (!injected) surfacedEvents.push(event);
|
|
1892
1896
|
}
|
|
1893
1897
|
} catch {
|
|
1894
1898
|
}
|