Skip to content

Commit c2f867a

Browse files
committed
fix review cleanup and script typing
1 parent 20e045c commit c2f867a

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

lib/request/fetch-helpers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ export function isWorkspaceDisabledError(
337337

338338
if (status === 402) {
339339
return (
340-
normalizedCode === "deactivated_workspace" ||
341340
normalizedTokens.includes("deactivated_workspace") ||
342341
/\bdeactivated_workspace\b/i.test(bodyText)
343342
);

lib/runtime-rotation-proxy.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,8 +1212,7 @@ export async function startRuntimeRotationProxy(
12121212

12131213
if (
12141214
transientAttempts >= transientAttemptLimit &&
1215-
attemptedIndexes.size < accountCount &&
1216-
exhaustionReason !== "deactivated"
1215+
attemptedIndexes.size < accountCount
12171216
) {
12181217
exhaustionReason = "budget";
12191218
} else if (

scripts/codex-multi-auth.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ function resolveCliVersion() {
2121
return "";
2222
}
2323

24+
/**
25+
* @param {string[]} args
26+
* @returns {string[]}
27+
*/
2428
function normalizeStandaloneArgs(args) {
2529
if (args[0] === "auth") return args;
2630
const firstArg = args[0] ?? "";

scripts/codex-routing.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ const AUTH_SUBCOMMANDS = new Set([
2626
"debug",
2727
]);
2828

29+
/**
30+
* @param {string[]} args
31+
* @returns {string[]}
32+
*/
2933
export function normalizeAuthAlias(args) {
3034
if (args.length >= 2 && args[0] === "multi" && args[1] === "auth") {
3135
return ["auth", ...args.slice(2)];
@@ -36,6 +40,10 @@ export function normalizeAuthAlias(args) {
3640
return args;
3741
}
3842

43+
/**
44+
* @param {string[]} args
45+
* @returns {boolean}
46+
*/
3947
export function shouldHandleMultiAuthAuth(args) {
4048
if (args[0] !== "auth") return false;
4149
if (args.length === 1) return true;

0 commit comments

Comments
 (0)