Skip to content

gut(gateway): remove dead models.list method references#463

Merged
alexey-pelykh merged 1 commit intomainfrom
gut/remove-models-list-refs
Mar 8, 2026
Merged

gut(gateway): remove dead models.list method references#463
alexey-pelykh merged 1 commit intomainfrom
gut/remove-models-list-refs

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • Remove models.list from gateway method list and operator.read scope map — the handler was already gutted, but these registrations caused INVALID_REQUEST errors on any call
  • Delete listModels() client method, GatewayModelChoice type, openModelSelector TUI picker, /models command, and Ctrl+L keybinding
  • Stub loadCronModelSuggestions to return empty array (no provider-sourced models available)
  • Drop modelsList case from macOS Swift Method enum

Closes #416

Test plan

  • pnpm build passes
  • pnpm check (format + typecheck + lint) passes
  • pnpm test — all 866 tests pass
  • No remaining models.list references in codebase (verified via grep)

🤖 Generated with Claude Code

The models.list handler was removed during the model provider ecosystem
gutting, but references remained in the method list, scope map, TUI, web
UI, and macOS app — causing INVALID_REQUEST errors on any call.

Remove the method from server-methods-list and method-scopes, delete the
listModels() client method and GatewayModelChoice type, remove the
openModelSelector TUI picker and /models command, stub
loadCronModelSuggestions to return an empty array, and drop the Swift
enum case.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) March 8, 2026 13:11
@alexey-pelykh alexey-pelykh merged commit 3c59b67 into main Mar 8, 2026
5 checks passed
@alexey-pelykh alexey-pelykh deleted the gut/remove-models-list-refs branch March 8, 2026 13:18
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 dead models.list gateway method references

1 participant