webui chat: add role avatars and distinct styling for user/agent/exec/system

This commit is contained in:
DBT
2026-02-26 03:16:12 +00:00
parent 60b0e25751
commit fcfc06c640
2 changed files with 57 additions and 26 deletions

View File

@@ -1,4 +1,5 @@
export type ChatItem = { role: 'user' | 'assistant'; text: string };
export type ChatRole = 'user' | 'assistant' | 'tool' | 'system' | 'exec';
export type ChatItem = { role: ChatRole; text: string; label?: string };
export type Session = { key: string; title: string };
export type CronJob = {
id: string;