Repository navigation
v2.0.2
Patch Changes
-
#83
2053c9aThanks @tufantunc! - Refuse to guess which host to use when several profiles are configured and none is selected.getProfilefell back toprofiles[0]when a tool call carried noprofile
argument and nodefaults.defaultProfilewas set. With several hosts configured
that meant the command ran against whichever profile happened to be listed
first — no argument, no warning — and the first one written down tends to be
production.It now raises an error naming the configured profiles and both ways to resolve
the ambiguity:No profile selected and no default configured, but 3 profiles exist: prod, staging, dev. Pass a "profile" argument, or set defaults.defaultProfile in the config.A single configured profile is unambiguous and still resolves without one.
If you run several profiles without
defaultProfiletoday, set it (or pass
profileper call) — previously that configuration ran commands against the
first profile in the file.