hermes-agent/apps/desktop/src/app/session/hooks
Teknium 163cb24d45
feat(moa): render reference-model blocks in TUI and desktop, not just CLI (#53855)
The MoA reference-block display (each reference model's output shown as a
labelled thinking block before the aggregator responds) previously existed
only in the classic CLI. The facade already emits moa.reference / moa.aggregating
through tool_progress_callback; this wires the TUI and desktop consumers.

- tui_gateway/server.py: _on_tool_progress relays moa.reference (label / text /
  index / count) and moa.aggregating to the Ink/desktop client as their own
  events.
- ui-tui: gatewayTypes adds the two event shapes; createGatewayEventHandler
  routes them; turnController.recordMoaReference pushes a committed
  thinking-style segment tagged with the source model. Shown regardless of
  showReasoning — references ARE the mixture-of-agents process the user opted
  into, not ordinary reasoning. moa.aggregating is a status-only transition
  (no transcript entry).
- apps/desktop: use-message-stream appends each reference as a labelled
  reasoning chunk via the existing reasoning disclosure; GatewayEventPayload
  gains label/index/aggregator.

Tests: tui_gateway emit (3), Ink handler render + showReasoning-independence +
aggregating-no-segment (3). TUI typecheck/lint clean; desktop typecheck/lint
clean.
2026-06-27 18:46:20 -07:00
..
use-context-suggestions.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
use-cwd-actions.ts style(desktop,tui): fix all lint/type/formatting issues 2026-06-26 01:04:33 -05:00
use-hermes-config.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
use-message-stream.ts feat(moa): render reference-model blocks in TUI and desktop, not just CLI (#53855) 2026-06-27 18:46:20 -07:00
use-model-controls.test.tsx style(desktop,tui): fix all lint/type/formatting issues 2026-06-26 01:04:33 -05:00
use-model-controls.ts style(desktop,tui): fix all lint/type/formatting issues 2026-06-26 01:04:33 -05:00
use-preview-routing.test.tsx fix(desktop): stop auto-opening tool previews 2026-06-22 19:21:20 -05:00
use-preview-routing.ts fix(desktop): stop auto-opening tool previews 2026-06-22 19:21:20 -05:00
use-prompt-actions.test.tsx style(desktop,tui): fix all lint/type/formatting issues 2026-06-26 01:04:33 -05:00
use-prompt-actions.ts fix(desktop): treat a pending prompt as paused-on-you, not working 2026-06-26 03:55:34 -05:00
use-route-resume.test.tsx style(desktop,tui): fix all lint/type/formatting issues 2026-06-26 01:04:33 -05:00
use-route-resume.ts style(desktop,tui): fix all lint/type/formatting issues 2026-06-26 01:04:33 -05:00
use-session-actions.test.tsx feat(desktop): keep active sessions aligned with cwd 2026-06-25 16:40:27 -05:00
use-session-actions.ts style(desktop,tui): fix all lint/type/formatting issues 2026-06-26 01:04:33 -05:00
use-session-state-cache.test.tsx style(desktop,tui): fix all lint/type/formatting issues 2026-06-26 01:04:33 -05:00
use-session-state-cache.ts style(desktop,tui): fix all lint/type/formatting issues 2026-06-26 01:04:33 -05:00