fix(extension): keep record overlay timer across navigations

This commit is contained in:
“haonan”
2026-08-06 16:28:21 +08:00
parent 66684c4ce3
commit 674c53339f
6 changed files with 62 additions and 14 deletions
+8
View File
@@ -25,11 +25,19 @@ export interface RecordQueryMessage {
export interface RecordQueryResponse {
active: boolean;
requestId?: string;
/** Epoch ms when the recording began; see `RecordStartMessage.startedAtMs`. */
startedAtMs?: number;
}
export interface RecordStartMessage {
type: typeof RECORD_START;
requestId: string;
/**
* Epoch ms when the whole recording began, not when this tab was armed.
* The overlay timer must span the session, so it survives navigations and
* content-script remounts instead of restarting per page.
*/
startedAtMs?: number;
}
export interface RecordStepPayload {