Files
hermes-agent/apps
Klaus Suppan 680b11503c fix(desktop): model settings follow active profile instead of primary
ModelSettings passed scopeProfile (null when following the active
profile) directly to the Hermes API helpers. The helpers interpret
null as "target the primary/default backend", not as "follow the
active profile". This meant that when a non-default profile was
active (e.g. local with LM Studio), the model picker showed the
primary/default profile's providers instead — LM Studio was
invisible.

Fix: convert null → undefined before calling the API helpers, so
profileScoped() falls back to the app-wide active profile.

Added regression test verifying the helpers receive undefined (not
null) when no scope override is set.
2026-08-22 21:55:39 -07:00
..