Repository navigation
fix(providers): warn on unrecognized THINKER_CATALOG_SYNC and align MCP routing status - #153
Merged
Merged
Conversation
…CP routing status - Warn once at boot (PricingSyncService) when THINKER_CATALOG_SYNC is neither an on nor an off value, without echoing it; list the accepted values. - "Sync disabled" log lines show the configured off value instead of =false. - Extract resolveRoutingStatus() and use it from both the REST status route and the MCP manifest_routing_status tool, so an empty pricing cache no longer blocks an agent that can route in MCP, and inactive-only providers report no_provider in both. - no-phonehome-egress e2e: the OpenCode Go blocks reset and migrate their own schema, and every boot asserts no remote DNS lookup. Part of #75 (items 1 to 4; item 5 is frontend). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
Review: #153 fix(providers): warn on unrecognized THINKER_CATALOG_SYNC and align MCP routing statusReviewed Blockers: none. Nits
Checks
Head revisado: a6fc716 |
Owner
Author
|
Review follow-ups are tracked in #158. |
Owner
Author
qa-docker: PR #153 (PASS)Image
Nothing flaky. Tested SHA: a6fc716 |
patrickbrandao
marked this pull request as ready for review
October 14, 2026 14:08
This was referenced Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #75 (backend items 1 to 4; item 5 is the dashboard toast, left to frontend-dev).
What changed
THINKER_CATALOG_SYNCset to anything other thantrue/1/yes/on/empty orfalse/0/no/off(e.g.disabled, a typo) keeps sync on, as before, but now logs one warning at boot fromPricingSyncService.onModuleInit, listing the accepted values. The configured value is never echoed.THINKER_CATALOG_SYNC=off) instead of always=false. Only a known off value is echoed.resolveRoutingStatus()(routing/routing-status.ts) is used by bothGET /api/v1/routing/:agent/statusand the MCPmanifest_routing_statustool. MCP no longer reportspricing_cache_emptyfor an agent that can route (right after boot or after a failed fetch), and a tenant with only inactive connections now reportsno_providerin MCP too.no-phonehome-egress.e2e-spec.tsreset the schema, run the committed migrations and seed their own provider, so any block runs alone (-t). Runs 2 and 3 also assert no remote DNS lookup.Docs:
docs/dev/manifest-guide.md(accepted values, warning, shared status helper, e2e layout).Not done here: the "No telemetry" CIMD mention in
docker/DOCKER_README.md/.env.examplefrom the review comment (docker files are being edited by another agent; small docs follow-up).Tests
npx jest(backend): 476 suites, 9109 tests passed.npx tsc -p tsconfig.test.json, eslint on changed files: clean.npm run test:e2e:docker -- test/no-phonehome-egress.e2e-spec.ts: 24 passed; with-t "catalog sync on"alone: 2 passed, 22 skipped.qa-docker: runtime behavior changed only in boot logging and the MCP status tool; a quick boot check with
THINKER_CATALOG_SYNC=disabledand=offis enough.🤖 Generated with Claude Code