Stabilize paired reviewer recovery and owner follow-up

This commit is contained in:
ejclaw
2026-04-06 07:49:26 +09:00
parent 994e957767
commit d75d26c23d
27 changed files with 1474 additions and 166 deletions

View File

@@ -155,6 +155,13 @@ export function getCurrentToken(): string | undefined {
return tokens[currentIndex % tokens.length]?.token;
}
/** Get the current active token index. */
export function getCurrentTokenIndex(): number | null {
if (tokens.length === 0) return null;
refreshRuntimeTokenSelection();
return currentIndex % tokens.length;
}
/**
* Try to rotate to the next available (non-rate-limited) token.
* Returns true if a fresh token was found, false if all are exhausted.