Skip to content

gut(models): remove vestigial model catalog, vision check, and thinking default stubs#2276

Merged
alexey-pelykh merged 1 commit intomainfrom
gut/model-catalog-selection-stubs-2151
Apr 11, 2026
Merged

gut(models): remove vestigial model catalog, vision check, and thinking default stubs#2276
alexey-pelykh merged 1 commit intomainfrom
gut/model-catalog-selection-stubs-2151

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

Closes #2151

  • Delete 3 entire stub files: model-catalog.ts, model-selection.ts, auto-reply/reply/model-selection.ts
  • Rewire all live importers — simplify callers that consumed no-op return values to inline defaults
  • Redirect parseModelRef import in live test to canonical provider-utils.ts
  • Rewire sanitizeUserFacingText and text strip functions to live implementations in agent-helpers/agent-utils
  • Remove loadGatewayModelCatalog from GatewayRequestContext type and all pass-throughs
  • Remove normalizeDeviceMetadataForAuth stub — inline raw values in callers
  • Simplify canvas/plugin auth stubs in server-http.ts (always pass-through)
  • Remove __resetModelCatalogCacheForTest export chain
  • Clean up ~12 test files mocking the deleted modules

36 files changed, 98 insertions, 746 deletions.

Test plan

  • pnpm check passes (format + typecheck + lint)
  • pnpm test — 693 test files, 5926 tests pass
  • Grep exit criterion — no banned symbols remain in source

🤖 Generated with Claude Code

…ng default stubs (#2151)

Delete model-catalog.ts, model-selection.ts, and auto-reply/reply/model-selection.ts
stub files. Rewire all importers — simplify callers that consumed no-op return values,
redirect parseModelRef to provider-utils.ts, rewire sanitizeUserFacingText and text
strip functions to their live implementations in agent-helpers/agent-utils. Remove
loadGatewayModelCatalog from GatewayRequestContext, normalizeDeviceMetadataForAuth
stub and its callers, canvas/plugin auth stubs in server-http.ts, and all test mocks
for the deleted modules (~12 test files).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) April 11, 2026 08:40
@alexey-pelykh alexey-pelykh merged commit caca5bb into main Apr 11, 2026
10 checks passed
@alexey-pelykh alexey-pelykh deleted the gut/model-catalog-selection-stubs-2151 branch April 11, 2026 08:46
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.

gut: remove vestigial model catalog, vision check, and thinking default stubs

1 participant