@cydm/happy-elves 0.1.0-beta.301 → 0.1.0-beta.302
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.
|
@@ -167,6 +167,9 @@ function headMatchesTurn(session, turn) {
|
|
|
167
167
|
if (Number.isFinite(eventId) && eventId >= turn.firstEventId && eventId <= turn.lastEventId)
|
|
168
168
|
return true;
|
|
169
169
|
}
|
|
170
|
+
if (session.headBasis?.eventId !== undefined && session.headBasis.eventId >= turn.firstEventId && session.headBasis.eventId <= turn.lastEventId) {
|
|
171
|
+
return true;
|
|
172
|
+
}
|
|
170
173
|
return (session.currentHead !== undefined && turnHeads.has(session.currentHead)) ||
|
|
171
174
|
(session.lastTurnId !== undefined && turnHeads.has(session.lastTurnId));
|
|
172
175
|
}
|
package/apps/cli/package.json
CHANGED
package/apps/daemon/package.json
CHANGED