A2: render db-unreachable like timeout

gbrain's new db-unreachable status is a transient network failure; a setup
run while offline must not strip brain-aware blocks from every skill.
This commit is contained in:
garrytan committed 2026-10-03 21:40:42 +00:00
1 parent 5526fca45c
commit 3f3655b925
2 files changed
+20 -2

No files matched your search

+2 -2
View File
@@ -84,8 +84,8 @@ function loadGbrainOverride(respectDetection: boolean): boolean {
const stateDir = resolveStateRoot();
try {
const json = JSON.parse(fs.readFileSync(path.join(stateDir, 'gbrain-detection.json'), 'utf-8'));
// Slow, remote, and locked engines are still usable (#1964/#2051/#2456).
return ['ok', 'timeout', 'thin-client', 'engine-locked'].includes(json.gbrain_local_status ?? '');
// Slow, remote, locked and briefly unreachable engines are still usable (#1964/#2051/#2456, A2).
return ['ok', 'timeout', 'db-unreachable', 'thin-client', 'engine-locked'].includes(json.gbrain_local_status ?? '');
} catch {
return false;
}