merge: integrate review-11-session-expiry

This commit is contained in:
gitea committed 2026-10-20 23:02:48 +08:00
commit 6f4608635b
5 files changed
+91 -37

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;
}