Fix brain status integration regressions
--- Build: pass | Tests: pass — Tests 2061 passed (2061)
This commit is contained in:
parent
3fe9b9c7c6
commit
ca3a02283e
2 changed files with 2 additions and 6 deletions
|
|
@ -885,6 +885,7 @@ export async function buildStartupReportWithDiagnostics(): Promise<string> {
|
|||
|
||||
const ttsIdx = report.findIndex((l, i) => i > aiHeaderIdx && l.startsWith('TTS:'));
|
||||
const insertAt = ttsIdx != -1 ? ttsIdx + 1 : aiHeaderIdx + 1;
|
||||
let offset = 2;
|
||||
report.splice(insertAt, 0, line);
|
||||
report.splice(insertAt + 1, 0, formatSttGuardLine('tg:ops'));
|
||||
try {
|
||||
|
|
@ -895,7 +896,6 @@ export async function buildStartupReportWithDiagnostics(): Promise<string> {
|
|||
const runtimeLines = buildRuntimeTruthLines(analytics);
|
||||
const tokenLines = buildAiTokenBriefLines(analytics);
|
||||
const spendLines = buildAiSpendBriefLines(spendAnalytics);
|
||||
let offset = 2;
|
||||
if (runtimeLines.length > 0) {
|
||||
report.splice(insertAt + offset, 0, ...runtimeLines);
|
||||
offset += runtimeLines.length;
|
||||
|
|
@ -917,6 +917,7 @@ export async function buildStartupReportWithDiagnostics(): Promise<string> {
|
|||
const brainIssues = collectSplitBrainIssues(brainStatus);
|
||||
const brainLines = [`⚠ Brain degraded: ${brainIssues.join('; ')}`];
|
||||
report.splice(insertAt + offset, 0, ...brainLines);
|
||||
offset += brainLines.length;
|
||||
}
|
||||
} catch {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -114,11 +114,6 @@ import {
|
|||
getModelCapability,
|
||||
stabilityPrefix,
|
||||
} from './provider-capabilities.js';
|
||||
import {
|
||||
collectSplitBrainStatus,
|
||||
collectSplitBrainIssues,
|
||||
deriveSplitBrainReadiness,
|
||||
} from './split-brain-status.js';
|
||||
|
||||
const modelHashMap = new Map<string, string>();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue