orchestrating 0.1.29 → 0.1.30
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/bin/orch +3 -1
- package/package.json +1 -1
package/bin/orch
CHANGED
|
@@ -814,7 +814,9 @@ if (adapter) {
|
|
|
814
814
|
}
|
|
815
815
|
if (historyEvents.length > 0) {
|
|
816
816
|
process.stderr.write(`${DIM}[orch] Forwarding ${historyEvents.length} history events to dashboard${RESET}\n`);
|
|
817
|
-
|
|
817
|
+
// Prepend to eventHistory so they get replayed on reconnect too
|
|
818
|
+
eventHistory.unshift(...historyEvents);
|
|
819
|
+
while (eventHistory.length > MAX_EVENT_HISTORY) eventHistory.pop();
|
|
818
820
|
}
|
|
819
821
|
}
|
|
820
822
|
} catch (err) {
|