Remove paired reviewer container execution path

This commit is contained in:
ejclaw
2026-04-06 07:56:24 +09:00
parent d75d26c23d
commit aaa9eeb50a
12 changed files with 21 additions and 1446 deletions

View File

@@ -33,18 +33,6 @@ const tokens: TokenState[] = [];
let currentIndex = 0;
let initialized = false;
// ── Post-rotation callback ──────────────────────────────────────
// Invoked after a successful token rotation so that callers (e.g.
// index.ts) can tear down reviewer containers whose SDK process
// still holds the old token.
type TokenRotationCallback = () => void;
let onTokenRotatedCallback: TokenRotationCallback | null = null;
/** Register a callback to be invoked after a successful token rotation. */
export function onTokenRotated(cb: TokenRotationCallback): void {
onTokenRotatedCallback = cb;
}
export function initTokenRotation(): void {
if (initialized) return;
initialized = true;
@@ -194,13 +182,6 @@ export function rotateToken(
`Rotated to token #${currentIndex + 1}/${tokens.length}`,
);
saveState();
if (onTokenRotatedCallback) {
try {
onTokenRotatedCallback();
} catch {
/* best effort — don't break rotation flow */
}
}
return true;
}