mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-29 19:01:39 +00:00
Two salvaged fixes from #2233: - extractFactsFromTurn probed isAvailable('chat') with no model, silently no-oping extraction whenever the facts model routes through a different provider than the global chat model. It now probes the effective (per-call/config) facts model. - 'gbrain config set provider_base_urls.<id> <url>' writes DB plane (the prefix is advertised in KNOWN_CONFIG_KEY_PREFIXES) but loadConfigWithEngine never merged it back, so the gateway never saw the configured proxy. Merged with file-plane winning, fail-open for engine shims without listConfigKeys. Dropped from the original PR: the openrouter_api_key plumbing (already on master) and the hardcoded personal-name normalization + regex turn pre-filter + kind normalizer (privacy-rule violation; fork-specific heuristics that belong in per-install config, not the shared extractor). Co-authored-by: sene1337 <sene1337@users.noreply.github.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>