mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-12 09:24:24 +00:00
Closes #838. Adds stable `data-role="user|assistant|system|tool"` attributes plus `ai-chat-message` / `ai-chat-message-content` classnames on the chat message rows in Catty Agent's chat panel. Users can now distinguish their own messages from agent replies via Settings → Appearance → Custom CSS, e.g. .ai-chat-message[data-role="user"] .ai-chat-message-content { background: rgba(91, 124, 250, 0.12); } The default theme is intentionally minimal (bordered user bubble, plain assistant text). Rather than change the default — different users want different distinctions — this exposes a hook so anyone can colour the rows however they prefer without forking. The attribute names are part of the UI's stable contract; a comment on the Message component flags this for future renames. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>