detect owner codex bad request loops

This commit is contained in:
ejclaw
2026-04-29 22:20:06 +09:00
parent 8297057e5a
commit 6c6b67daca
11 changed files with 545 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
export const CODEX_BAD_REQUEST_DETAIL_JSON = '{"detail":"Bad Request"}';
export function isCodexBadRequestText(
text: string | null | undefined,
): boolean {
return text?.trim() === CODEX_BAD_REQUEST_DETAIL_JSON;
}