fix(exec-approval): treat expiresAtMs=-1 as non-expiring

This commit is contained in:
yushen 2026-02-06 18:09:01 +08:00
parent a36cbac3fd
commit 6ecdbc5783
4 changed files with 33 additions and 7 deletions

View file

@ -32,7 +32,7 @@ export interface ExecApprovalRequest {
riskLevel: "safe" | "needs-review" | "dangerous";
/** Reasons for the risk assessment */
riskReasons: string[];
/** When this approval expires (ms since epoch) */
/** When this approval expires (ms since epoch). -1 means no timeout. */
expiresAtMs: number;
}