Files
hermes-agent/apps
Teknium c78ca093aa feat(desktop): name the owning chat in transcript directive props
A plugin's transcript-directive card (e.g. a model card with Next/Convert
buttons) could only call host.composer.submit(null, …), which posts into
whichever composer is ACTIVE. With two chats side by side, a click on a
card in chat A posted into chat B when B's composer held focus last.

host.composer.* already addresses a session by id and fails closed; the
card just had no way to learn its own chat. DirectiveEntry now reads the
surrounding SessionView (primary pane or tile) and passes `sessionId`
(stored id, else runtime id, else null) to the contribution's render.

Additive: existing renders that ignore the field are unchanged, and
plugins feature-detect `props.sessionId !== undefined` on older hosts.
2026-10-23 16:27:01 -07:00
..