fix(stability): patch regex retries and timeout abort handling

This commit is contained in:
Frank Yang
2026-02-22 00:12:22 -08:00
committed by Peter Steinberger
parent 99a2f5379e
commit 1051f42f96
15 changed files with 294 additions and 19 deletions

View File

@@ -57,8 +57,8 @@ function resolveClaudeWebSessionKey(): string | undefined {
if (!cookieHeader) {
return undefined;
}
const stripped = cookieHeader.replace(/^cookie:\\s*/i, "");
const match = stripped.match(/(?:^|;\\s*)sessionKey=([^;\\s]+)/i);
const stripped = cookieHeader.replace(/^cookie:\s*/i, "");
const match = stripped.match(/(?:^|;\s*)sessionKey=([^;\s]+)/i);
const value = match?.[1]?.trim();
return value?.startsWith("sk-ant-") ? value : undefined;
}