diff --git a/client/lib/CoreCommandQueue.ts b/client/lib/CoreCommandQueue.ts index 4d5c69e8a..78e194b14 100644 --- a/client/lib/CoreCommandQueue.ts +++ b/client/lib/CoreCommandQueue.ts @@ -137,7 +137,6 @@ export default class CoreCommandQueue { this.internalState.commandsToRecord.push({ ...command, startDate: new Date(), - commandId: command?.commandId ?? this.nextCommandId, }); if (this.internalState.commandsToRecord.length > 1000) { this.flush().catch(() => null); diff --git a/core/lib/Session.ts b/core/lib/Session.ts index bccb73040..987131161 100644 --- a/core/lib/Session.ts +++ b/core/lib/Session.ts @@ -237,7 +237,6 @@ export default class Session this.getHeroMeta, this.addRemoteEventListener, this.removeRemoteEventListener, - this.recordOutput, this.pauseCommands, this.resumeCommands, ]); @@ -260,7 +259,7 @@ export default class Session } public isAllowedCommand(method: string): boolean { - return this.commandRecorder.fnNames.has(method); + return this.commandRecorder.fnNames.has(method) || method === 'recordOutput'; } public shouldWaitForCommandLock(method: keyof Session): boolean { diff --git a/timetravel/lib/MirrorPage.ts b/timetravel/lib/MirrorPage.ts index 5909cef97..43dea6a82 100644 --- a/timetravel/lib/MirrorPage.ts +++ b/timetravel/lib/MirrorPage.ts @@ -163,7 +163,7 @@ export default class MirrorPage extends TypedEventEmitter<{ this.subscribeToTab = null; this.domRecording = null; this.isReady = null; - // @ts-expect-error + // @ts-ignore this.loadQueue.reset(); }); this.subscribeToTab = tab;