feat: global failover + dashboard model config section

- Failover is now global (account-level, not per-channel)
- Dashboard shows role model config (Owner/Reviewer/Arbiter + MoA refs)
- Dashboard shows failover status when active
- Auto-clear failover on successful Claude rotation
- Remove per-channel lease writes from failover path
This commit is contained in:
Eyejoker
2026-03-31 00:38:29 +09:00
parent f98dd27712
commit 68901e5da9
7 changed files with 152 additions and 77 deletions

View File

@@ -19,6 +19,7 @@ import {
getTokenCount,
markTokenHealthy,
} from './token-rotation.js';
import { clearGlobalFailover } from './service-routing.js';
// ── Types ────────────────────────────────────────────────────────
@@ -159,6 +160,7 @@ export async function runClaudeRotationLoop(
// ── Success ──
markTokenHealthy();
clearGlobalFailover();
return { type: 'success' };
}