fix(headless): waive the deferred Session history read

Master's `deprecate-synchronous-session-event-reads` marks `Session.eventAt`
deprecated and rejects new production calls. `liveEvents` predates that decision
and still needs the ordered log to reconstruct the preset a session runs under,
so carry the repository's standard line-scoped waiver for deferred migration.
This commit is contained in:
lsdsjy committed 2026-09-10 19:32:54 +08:00
1 parent 79bd986fa7
commit 71b2cc80aa
1 file changed
+1
+1
View File
@@ -174,6 +174,7 @@ interface AdoptableHeader {
function* liveEvents(session: Session): Generator<SessionEvent> {
const length = session.seq
for (let seq = 0; seq < length; seq++) {
// oxlint-disable-next-line typescript/no-deprecated -- Existing Session history read; migration deferred.
const event = session.eventAt(SessionSeq(seq))
if (event === undefined) {
throw new Error(`headless adoption cannot read seq ${String(seq)} below captured length ${String(length)}`)