mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-16 01:35:36 -04:00
e0af7bd8a0
Sometimes the user lands in chat mode without realizing — surface the mode the message went out on as a small uppercase pill right after the timestamp in the role header. - roleTimestamp(when, mode) gains an optional mode arg. Agent renders in accent; Chat renders in muted/neutral. Other values render nothing (back-compat for older history without the field). - The three roleTimestamp call sites pass metadata?.mode through. - chat.js writes mode into the user-message metadata at send time and into the assistant metadata when the active-stream render lands, reading toggleState.mode so research/agent overrides upstream still flow through correctly. Historical messages from before this change just don't show the pill — graceful fallback, no migration needed.