Skip to content

gut: remove dead models.list gateway method references #416

@alexey-pelykh

Description

@alexey-pelykh

Context

The models.list gateway method handler was removed during the model provider ecosystem gutting, but references remain in:

  • src/gateway/server-methods-list.ts:36 — listed as a known method
  • src/gateway/method-scopes.ts:53 — listed under operator.read scopes

These cause INVALID_REQUEST errors when any client calls models.list:

[ws] ⇄ res ✗ models.list 0ms errorCode=INVALID_REQUEST errorMessage=unknown method: models.list

Callers that still reference it:

  • src/tui/gateway-chat.ts:229-231listModels() method
  • ui/src/ui/controllers/cron.ts:171 — model suggestions for cron UI
  • apps/macos/Sources/RemoteClaw/GatewayConnection.swift:76 — macOS app

Action

Remove the dead models.list references from the method list and scopes, and either remove or stub out the callers so they don't trigger gateway errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions