Skip to content

Commit fc8cdbc

Browse files
committed
🤖 fix: remove zeroed historySequence from script messages
Change-Id: I5fa3e1eae92efd87e40fef9d118a2146af80a45f Signed-off-by: Thomas Kosiewski <[email protected]>
1 parent 13a3b08 commit fc8cdbc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/common/types/message.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type MuxFrontendMetadata =
2929
| {
3030
type: "script-execution";
3131
id: string;
32-
historySequence: number;
32+
historySequence?: number;
3333
timestamp: number;
3434
command: string;
3535
scriptName: string;
@@ -192,7 +192,7 @@ export type DisplayedMessage =
192192
| {
193193
type: "script-execution";
194194
id: string;
195-
historySequence: number;
195+
historySequence?: number;
196196
timestamp: number;
197197
command: string;
198198
scriptName: string;

src/node/services/ipcMain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ export class IpcMain {
12511251
muxMetadata: {
12521252
type: "script-execution",
12531253
id: `script-${Date.now()}`, // Can match message ID
1254-
historySequence: 0, // Will be assigned by appendToHistory
1254+
// historySequence: 0, // Will be assigned by appendToHistory
12551255
timestamp: Date.now(),
12561256
command: command,
12571257
scriptName: scriptName,

0 commit comments

Comments
 (0)