hermes-agent/apps/desktop/src/lib
brooklyn! b7f0c9cd52
fix(desktop): honor pre-session model pick + restore global reasoning/speed defaults (#47447)
* fix(desktop): keep the pre-session model pick selected in the picker

The composer picker derived its "current" row from `model.options ?? store`,
so model.options always won. Pre-session that query returns the PROFILE
DEFAULT, not the sticky composer pick — so selecting a model before a session
exists left the checkmark (and the picker's "current" line) on the default,
making the pick look ignored even though the pill updated.

Add `currentPickerSelection()`: with a live session the gateway's model.options
is authoritative; pre-session the sticky `$currentModel`/`$currentProvider`
wins, falling back to options. Wire it into ModelMenuPanel and ModelPickerDialog.

* feat(desktop): global reasoning/speed defaults in Settings → Model

The composer picker is now sticky-UI/per-session only and never writes the
profile default (#46959), but Settings → Model had no reasoning/speed control
and `agent.reasoning_effort` wasn't in the curated config surface at all
(`service_tier` was buried in Advanced) — so there was nowhere to set the
profile default that crons/subagents/messaging resolve from.

Add capability-gated Reasoning (effort) + Fast controls beside the main model,
gated by the applied model's reported capabilities (reasoning defaults on, fast
off when unreported — same as the composer). They read/write `agent.reasoning_effort`
and `agent.service_tier` by round-tripping the config record, matching the
gateway's value semantics (service_tier "fast"/"priority"/"on" ⇒ fast).

* refactor(desktop): don't open the reasoning select from its row label

A <label> wrapping the Select forwarded text clicks to the trigger, opening
the dropdown unexpectedly. Plain row for reasoning; Fast stays a <label> so
clicking its text toggles the switch (expected for a checkbox-like control).
2026-06-16 16:22:09 -05:00
..
keybinds feat(desktop): open new sessions in compact windows 2026-06-15 20:59:57 -05:00
ansi.test.ts
…
ansi.ts
…
chat-messages.test.ts fix(desktop): coalesce interleaved reasoning/content stream parts 2026-06-15 17:48:35 -05:00
chat-messages.ts refactor(desktop): unify stream-part coalescing into one helper 2026-06-15 18:13:52 -05:00
chat-runtime.test.ts
…
chat-runtime.ts
…
clipboard.ts
…
commit-changelog.test.ts
…
commit-changelog.ts
…
completion-sound.ts feat(desktop): add curated completion cue for agent turn completion (#42480) 2026-06-14 00:21:40 -05:00
desktop-fs.test.ts
…
desktop-fs.ts
…
desktop-slash-commands.test.ts feat(desktop): allow /browser connect on a local gateway (#47245) 2026-06-16 09:03:43 -05:00
desktop-slash-commands.ts feat(desktop): allow /browser connect on a local gateway (#47245) 2026-06-16 09:03:43 -05:00
embedded-images.test.ts
…
embedded-images.ts
…
external-link.test.tsx
…
external-link.tsx
…
gateway-events.test.ts
…
gateway-events.ts
…
gateway-ws-url.test.ts
…
gateway-ws-url.ts
…
generated-images.test.ts fix(desktop): keep generated images in the tool slot, not inline 2026-06-13 02:42:15 -05:00
generated-images.ts fix(desktop): keep generated images in the tool slot, not inline 2026-06-13 02:42:15 -05:00
haptics.ts
…
icons.ts feat(desktop): native OS notifications with per-type toggles 2026-06-14 00:31:03 -05:00
incremental-external-store-runtime.ts
…
katex-memo.ts
…
local-preview.ts
…
markdown-code.test.ts
…
markdown-code.ts
…
markdown-preprocess.ts
…
media.remote.test.ts fix(desktop): open remote-gateway artifacts via authenticated download (#46895) 2026-06-15 23:50:19 -05:00
media.ts fix(desktop): open remote-gateway artifacts via authenticated download (#46895) 2026-06-15 23:50:19 -05:00
model-status-label.test.ts fix(desktop): honor pre-session model pick + restore global reasoning/speed defaults (#47447) 2026-06-16 16:22:09 -05:00
model-status-label.ts fix(desktop): honor pre-session model pick + restore global reasoning/speed defaults (#47447) 2026-06-16 16:22:09 -05:00
mutable-ref.ts
…
preview-targets.test.ts
…
preview-targets.ts
…
profile-color.ts
…
provider-setup-errors.test.ts
…
provider-setup-errors.ts
…
query-client.ts
…
remend-tail.test.ts perf(desktop): incremental markdown rendering during streams 2026-06-12 21:07:36 -05:00
remend-tail.ts perf(desktop): incremental markdown rendering during streams 2026-06-12 21:07:36 -05:00
runtime-readiness.test.ts
…
runtime-readiness.ts
…
session-export.ts
…
session-search.test.ts
…
session-search.ts
…
session-source.ts
…
speech-text.ts
…
statusbar.ts
…
storage.test.ts fix(desktop): keep recents sorted unless manually reordered (#45404) 2026-06-13 00:38:10 -05:00
storage.ts fix(desktop): keep recents sorted unless manually reordered (#45404) 2026-06-13 00:38:10 -05:00
todos.test.ts
…
todos.ts
…
tool-result-summary.test.ts
…
tool-result-summary.ts
…
update-copy.test.ts
…
update-copy.ts
…
use-enter-animation.ts
…
utils.ts
…
voice-playback.ts
…
yolo-session.ts
…