Files
hermes-agent/apps
Teknium 276c7d7bca fix(desktop): route the composer model picker to the canonical model mutation
The picker sends `config.set {key: 'model', value: '<model> --provider
<id> [--session]'}`. The canonical protocol adapter passed that through
unchanged, but the authority's config.set accepts only busy/verbose/
YOLO preferences, so every picker selection on a local canonical
session failed with invalid_params while a typed `/model <name>` worked
through `session.mutate`.

The adapter now prepares a picker value of exactly that shape as the
existing fenced `session.mutate` operation `model` (payload {model,
provider}, same retained request identity, CAS revision and execution
generation as the typed directive) and settles its receipt as `ok`.
`--session` is dropped: the canonical model mutation is always session
policy and never rewrites config.yaml. Any other flag (e.g. --global)
has no canonical field and stays on config.set, which the authority
refuses explicitly. Legacy (non-canonical) transports are untouched.

Not covered here (gateway side, lane acpapi / DECISION NEEDED): the
shared selection-guard confirmation exchange (helix4u item 2) and a
deferred next-turn selection while a turn runs; the authority still
refuses a mid-turn mutation with session_busy, which the picker now
reports instead of a misleading invalid_params.

Review: https://github.com/NousResearch/hermes-agent/pull/106742#issuecomment-6067585232
2026-10-08 19:09:49 -07:00
..