You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
canvas-control: refuse an unknown --model at open time instead of failing on the first turn #519
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:
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?
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.
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.
Activity