fix(approval): enforce session expiry for every operation handle

This commit is contained in:
gitea committed 2026-10-20 17:58:33 +08:00
1 parent fac81b08e8
commit b69b78fc30
5 files changed
+69 -38

No files matched your search

+2 -2
View File
@@ -88,9 +88,9 @@ export async function handleAiProLogs(ctx: AiProExecutionContext): Promise<AiPro
let runRecord: ApprovalRunRecord | null = null;
if (runHandle) {
runRecord = repo.getRunByHandle(runHandle);
runRecord = repo.getRunByHandle(runHandle, undefined, { allowExpired: true });
} else if (targetSn) {
const maybeRun = repo.getRunByHandle(targetSn);
const maybeRun = repo.getRunByHandle(targetSn, undefined, { allowExpired: true });
if (maybeRun?.shortId && maybeRun.shortId.toUpperCase() === targetSn.toUpperCase()) {
runRecord = maybeRun;
}