Skip to content

fix: initialize foreground chat gateway before availability checks#3003

Merged
time-attack merged 1 commit into
garrytan:masterfrom
cazador481:fix/foreground-chat-gateway-2590
Jul 20, 2026
Merged

fix: initialize foreground chat gateway before availability checks#3003
time-attack merged 1 commit into
garrytan:masterfrom
cazador481:fix/foreground-chat-gateway-2590

Conversation

@cazador481

Copy link
Copy Markdown
Contributor

Fixes #2590

Summary

  • initialize a cold process-global gateway from the active gbrain config before foreground chat availability checks
  • preserve already configured gateways, including engine-resolved model overrides
  • cover both gbrain enrich and gbrain extract-conversation-facts foreground paths with a serial regression test

Verification

  • bun test test/foreground-chat-gateway-init.serial.test.ts
  • bun test test/extract-conversation-facts.test.ts test/enrichment.test.ts
  • bun run typecheck
  • git diff --check

@time-attack
time-attack merged commit ee45653 into garrytan:master Jul 20, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

enrich: 'Chat gateway unavailable' despite valid chat model + key — availability gate runs before gateway configuration (--background path unaffected)

2 participants