Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix review cleanup and script typing
  • Loading branch information
ndycode committed May 1, 2026
commit c2f867adf786603371dc7932b3770d9e83459607
1 change: 0 additions & 1 deletion lib/request/fetch-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ export function isWorkspaceDisabledError(

if (status === 402) {
return (
normalizedCode === "deactivated_workspace" ||
normalizedTokens.includes("deactivated_workspace") ||
/\bdeactivated_workspace\b/i.test(bodyText)
);
Expand Down
3 changes: 1 addition & 2 deletions lib/runtime-rotation-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1212,8 +1212,7 @@ export async function startRuntimeRotationProxy(

if (
transientAttempts >= transientAttemptLimit &&
attemptedIndexes.size < accountCount &&
exhaustionReason !== "deactivated"
attemptedIndexes.size < accountCount
) {
exhaustionReason = "budget";
} else if (
Expand Down
4 changes: 4 additions & 0 deletions scripts/codex-multi-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ function resolveCliVersion() {
return "";
}

/**
* @param {string[]} args
* @returns {string[]}
*/
function normalizeStandaloneArgs(args) {
if (args[0] === "auth") return args;
const firstArg = args[0] ?? "";
Expand Down
8 changes: 8 additions & 0 deletions scripts/codex-routing.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ const AUTH_SUBCOMMANDS = new Set([
"debug",
]);

/**
* @param {string[]} args
* @returns {string[]}
*/
export function normalizeAuthAlias(args) {
if (args.length >= 2 && args[0] === "multi" && args[1] === "auth") {
return ["auth", ...args.slice(2)];
Expand All @@ -36,6 +40,10 @@ export function normalizeAuthAlias(args) {
return args;
}

/**
* @param {string[]} args
* @returns {boolean}
*/
export function shouldHandleMultiAuthAuth(args) {
if (args[0] !== "auth") return false;
if (args.length === 1) return true;
Expand Down