Skip to content

canvas-control: refuse an unknown --model at open time instead of failing on the first turn #519

Open

Description

@Temikus

Follow-up to #515, which adds --model to open-claude / open-agent and a per-role model to spawn-team as a straight pass-through.

Today an unrecognised model id reaches the CLI verbatim and fails inside the session on its first turn. That is the same failure shape as the one described in the --prompt report: the node ends up idle and looking healthy, so --after arms everything behind it against a station that never started.

Refusing at open time would close that, but it needs a design call I did not want to make inside a pass-through PR:

  1. Where does the list come from? agent:discover-models hits the configured gateway's /v1/models. Should the verb block on that round trip, or read a cached answer?
  2. What happens with no gateway configured? A user on a bare claude CLI has no discovery endpoint at all, so there is no list to validate against and the flag must stay a pass-through for them.
  3. Fail open or closed? Everything else in this area fails open (the auto permission-mode gate degrades to a bare command rather than blocking a launch). A discovery call that times out probably should not refuse a launch either — which weakens the guarantee to "we catch typos when the network is cooperating".

My instinct is a cached-list check that refuses only on a confident negative (list fetched successfully, id absent) and passes through in every other case, but that is your call.

Related: an errored status would catch this class of failure generically, however the model id got there.

@eneskirca WDYT?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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