Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
feat: display account name on the logs page for the apps (#7668)
kurokobod7aa4076c997
diff --git a/api/fields/conversation_fields.py b/api/fields/conversation_fields.pyindex 3a64801e181..9207314fc21 100644--- a/api/fields/conversation_fields.py+++ b/api/fields/conversation_fields.py@@ -111,6 +111,7 @@ conversation_fields = {"from_end_user_id": fields.String,"from_end_user_session_id": fields.String(),"from_account_id": fields.String,+ "from_account_name": fields.String,"read_at": TimestampField,"created_at": TimestampField,"annotation": fields.Nested(annotation_fields, allow_null=True),@@ -146,6 +147,7 @@ conversation_with_summary_fields = {"from_end_user_id": fields.String,"from_end_user_session_id": fields.String,"from_account_id": fields.String,+ "from_account_name": fields.String,"name": fields.String,"summary": fields.String(attribute="summary_or_query"),"read_at": TimestampField,diff --git a/api/models/model.py b/api/models/model.pyindex 73016297713..83c56363e37 100644--- a/api/models/model.py+++ b/api/models/model.py@@ -490,7 +490,6 @@ class InstalledApp(db.Model):return tenant-class Conversation(db.Model):__tablename__ = 'conversations'__table_args__ = (@@ -623,6 +622,15 @@ class Conversation(db.Model):return None+ @property+ def from_account_name(self):+ if self.from_account_id:+ account = db.session.query(Account).filter(Account.id == self.from_account_id).first()+ if account:+ return account.name++ return None+@propertydef in_debug_mode(self):return self.override_model_configs is not Nonediff --git a/web/app/components/app/log/list.tsx b/web/app/components/app/log/list.tsxindex 2258b69394d..0bc118c46fd 100644--- a/web/app/components/app/log/list.tsx+++ b/web/app/components/app/log/list.tsx@@ -678,7 +678,7 @@ const ConversationList: FC<IConversationList> = ({ logs, appDetail, onRefresh })</thead><tbody className="text-gray-500">{logs.data.map((log: any) => {- const endUser = log.from_end_user_session_id+ const endUser = log.from_end_user_session_id || log.from_account_nameconst leftValue = get(log, isChatMode ? 'name' : 'message.inputs.query') || (!isChatMode ? (get(log, 'message.query') || get(log, 'message.inputs.default_input')) : '') || ''const rightValue = get(log, isChatMode ? 'message_count' : 'message.answer')return <trdiff --git a/web/app/components/app/workflow-log/list.tsx b/web/app/components/app/workflow-log/list.tsxindex f4707dce59d..5a81c8cd8b5 100644--- a/web/app/components/app/workflow-log/list.tsx+++ b/web/app/components/app/workflow-log/list.tsx@@ -91,7 +91,7 @@ const WorkflowAppLogList: FC<ILogs> = ({ logs, appDetail, onRefresh }) => {</thead><tbody className="text-gray-700 text-[13px]">{logs.data.map((log: WorkflowAppLogDetail) => {- const endUser = log.created_by_end_user ? log.created_by_end_user.session_id : defaultValue+ const endUser = log.created_by_end_user ? log.created_by_end_user.session_id : log.created_by_account ? log.created_by_account.name : defaultValuereturn <trkey={log.id}className={`border-b border-gray-200 h-8 hover:bg-gray-50 cursor-pointer ${currentLog?.id !== log.id ? '' : 'bg-gray-50'}`}diff --git a/web/i18n/de-DE/app-log.ts b/web/i18n/de-DE/app-log.tsindex 8a961a597db..667a23e8aa2 100644--- a/web/i18n/de-DE/app-log.ts+++ b/web/i18n/de-DE/app-log.ts@@ -6,7 +6,7 @@ const translation = {header: {updatedTime: 'Aktualisierungszeit',time: 'Erstellungszeit',- endUser: 'Endbenutzer',+ endUser: 'Endbenutzer oder Konto',input: 'Eingabe',output: 'Ausgabe',summary: 'Titel',diff --git a/web/i18n/en-US/app-log.ts b/web/i18n/en-US/app-log.tsindex 17a6f4755a2..a53da966bed 100644--- a/web/i18n/en-US/app-log.ts+++ b/web/i18n/en-US/app-log.ts@@ -6,7 +6,7 @@ const translation = {header: {updatedTime: 'Updated time',time: 'Created time',- endUser: 'End User',+ endUser: 'End User or Account',input: 'Input',output: 'Output',summary: 'Title',@@ -17,7 +17,7 @@ const translation = {status: 'STATUS',runtime: 'RUN TIME',tokens: 'TOKENS',- user: 'END-USER',+ user: 'End User or Account',version: 'VERSION',},pagination: {diff --git a/web/i18n/es-ES/app-log.ts b/web/i18n/es-ES/app-log.tsindex 9a5c4671720..59da13baeec 100644--- a/web/i18n/es-ES/app-log.ts+++ b/web/i18n/es-ES/app-log.ts@@ -6,7 +6,7 @@ const translation = {header: {updatedTime: 'Hora actualizada',time: 'Hora creada',- endUser: 'Usuario Final',+ endUser: 'Usuario Final o Cuenta',input: 'Entrada',output: 'Salida',summary: 'Título',@@ -17,7 +17,7 @@ const translation = {status: 'ESTADO',runtime: 'TIEMPO DE EJECUCIÓN',tokens: 'TOKENS',- user: 'USUARIO FINAL',+ user: 'USUARIO FINAL O CUENTA',version: 'VERSIÓN',},pagination: {diff --git a/web/i18n/fa-IR/app-log.ts b/web/i18n/fa-IR/app-log.tsindex 1f15ca21998..85ad79cabff 100644--- a/web/i18n/fa-IR/app-log.ts+++ b/web/i18n/fa-IR/app-log.ts@@ -6,7 +6,7 @@ const translation = {header: {updatedTime: 'زمان بهروزرسانی',time: 'زمان ایجاد',- endUser: 'کاربر نهایی',+ endUser: 'کاربر نهایی یا حساب',input: 'ورودی',output: 'خروجی',summary: 'عنوان',@@ -17,7 +17,7 @@ const translation = {status: 'وضعیت',runtime: 'زمان اجرا',tokens: 'توکنها',- user: 'کاربر نهایی',+ user: 'کاربر نهایی یا حساب',version: 'نسخه',},pagination: {diff --git a/web/i18n/fr-FR/app-log.ts b/web/i18n/fr-FR/app-log.tsindex da4cdaa7d80..ffff7a1b28c 100644--- a/web/i18n/fr-FR/app-log.ts+++ b/web/i18n/fr-FR/app-log.ts@@ -6,7 +6,7 @@ const translation = {header: {updatedTime: 'Heure de mise à jour',time: 'Heure de création',- endUser: 'Utilisateur final',+ endUser: 'Utilisateur final ou compte',input: 'Entrée',output: 'Sortie',summary: 'Titre',@@ -17,7 +17,7 @@ const translation = {status: 'STATUT',runtime: 'TEMPS D\'EXÉCUTION',tokens: 'JETONS',- user: 'UTILISATEUR FINAL',+ user: 'UTILISATEUR FINAL OU COMPTE',version: 'VERSION',},pagination: {diff --git a/web/i18n/hi-IN/app-log.ts b/web/i18n/hi-IN/app-log.tsindex 887b0f4ae26..7ed8718668e 100644--- a/web/i18n/hi-IN/app-log.ts+++ b/web/i18n/hi-IN/app-log.ts@@ -6,7 +6,7 @@ const translation = {header: {updatedTime: 'अपडेट का समय',time: 'बनाने का समय',- endUser: 'अंतिम उपयोगकर्ता',+ endUser: 'अंतिम उपयोगकर्ता या खाता',input: 'इनपुट',output: 'आउटपुट',summary: 'शीर्षक',@@ -17,7 +17,7 @@ const translation = {status: 'स्थिति',runtime: 'रन टाइम',tokens: 'टोकन',- user: 'अंतिम उपयोगकर्ता',+ user: 'अंतिम उपयोगकर्ता या खाता',version: 'संस्करण',},pagination: {diff --git a/web/i18n/it-IT/app-log.ts b/web/i18n/it-IT/app-log.tsindex b56a8ef23b8..bc96ea0180e 100644--- a/web/i18n/it-IT/app-log.ts+++ b/web/i18n/it-IT/app-log.ts@@ -7,7 +7,7 @@ const translation = {header: {updatedTime: 'Ora di aggiornamento',time: 'Ora di creazione',- endUser: 'Utente Finale',+ endUser: 'Utente Finale o Account',input: 'Input',output: 'Output',summary: 'Titolo',@@ -18,7 +18,7 @@ const translation = {status: 'STATO',runtime: 'TEMPO DI ESECUZIONE',tokens: 'TOKEN',- user: 'UTENTE FINALE',+ user: 'UTENTE FINALE O ACCOUNT',version: 'VERSIONE',},pagination: {diff --git a/web/i18n/ja-JP/app-log.ts b/web/i18n/ja-JP/app-log.tsindex 806544f2de3..a11d0e81af4 100644--- a/web/i18n/ja-JP/app-log.ts+++ b/web/i18n/ja-JP/app-log.ts@@ -6,7 +6,7 @@ const translation = {header: {updatedTime: '更新時間',time: '作成時間',- endUser: 'エンドユーザー',+ endUser: 'エンドユーザーまたはアカウント',input: '入力',output: '出力',summary: 'タイトル',@@ -17,7 +17,7 @@ const translation = {status: 'ステータス',runtime: 'ランタイム',tokens: 'トークン',- user: 'エンドユーザー',+ user: 'エンドユーザーまたはアカウント',version: 'バージョン',},pagination: {diff --git a/web/i18n/ko-KR/app-log.ts b/web/i18n/ko-KR/app-log.tsindex f32512276d0..acc2b53531f 100644--- a/web/i18n/ko-KR/app-log.ts+++ b/web/i18n/ko-KR/app-log.ts@@ -6,7 +6,7 @@ const translation = {header: {updatedTime: '업데이트 시간',time: '생성 시간',- endUser: '엔드 유저',+ endUser: '엔드 유저 또는 계정',input: '입력',output: '출력',summary: '요약',@@ -17,7 +17,7 @@ const translation = {status: '상태',runtime: '실행 시간',tokens: '토큰',- user: '엔드 유저',+ user: '엔드 유저 또는 계정',version: '버전',},pagination: {diff --git a/web/i18n/pl-PL/app-log.ts b/web/i18n/pl-PL/app-log.tsindex 8740c97ee9e..378bea0fb16 100644--- a/web/i18n/pl-PL/app-log.ts+++ b/web/i18n/pl-PL/app-log.ts@@ -7,7 +7,7 @@ const translation = {header: {updatedTime: 'Czas aktualizacji',time: 'Czas utworzenia',- endUser: 'Użytkownik końcowy',+ endUser: 'Użytkownik końcowy lub konto',input: 'Wejście',output: 'Wyjście',summary: 'Tytuł',@@ -18,7 +18,7 @@ const translation = {status: 'STATUS',runtime: 'CZAS DZIAŁANIA',tokens: 'TOKENY',- user: 'UŻYTKOWNIK KOŃCOWY',+ user: 'UŻYTKOWNIK KOŃCOWY LUB KONTO',version: 'WERSJA',},pagination: {diff --git a/web/i18n/pt-BR/app-log.ts b/web/i18n/pt-BR/app-log.tsindex 0b5747e0ea2..a61d4204d42 100644--- a/web/i18n/pt-BR/app-log.ts+++ b/web/i18n/pt-BR/app-log.ts@@ -6,7 +6,7 @@ const translation = {header: {updatedTime: 'Hora de atualização',time: 'Hora de criação',- endUser: 'Usuário Final',+ endUser: 'Usuário final ou conta',input: 'Entrada',output: 'Saída',summary: 'Título',@@ -17,7 +17,7 @@ const translation = {status: 'STATUS',runtime: 'TEMPO DE EXECUÇÃO',tokens: 'TOKENS',- user: 'USUÁRIO FINAL',+ user: 'USUÁRIO FINAL OU CONTA',version: 'VERSÃO',},pagination: {diff --git a/web/i18n/ro-RO/app-log.ts b/web/i18n/ro-RO/app-log.tsindex 9072d7b99a6..bd72400df58 100644--- a/web/i18n/ro-RO/app-log.ts+++ b/web/i18n/ro-RO/app-log.ts@@ -6,7 +6,7 @@ const translation = {header: {updatedTime: 'Timp actualizare',time: 'Timp creare',- endUser: 'Utilizator final',+ endUser: 'Utilizator final sau cont',input: 'Intrare',output: 'Ieșire',summary: 'Titlu',@@ -17,7 +17,7 @@ const translation = {status: 'STARE',runtime: 'TIMP DE RULARE',tokens: 'JETOANE',- user: 'UTILIZATOR FINAL',+ user: 'UTILIZATOR FINAL SAU CONT',version: 'VERSIUNE',},pagination: {diff --git a/web/i18n/tr-TR/app-log.ts b/web/i18n/tr-TR/app-log.tsindex 7814ae61a51..37df50a5a5e 100644--- a/web/i18n/tr-TR/app-log.ts+++ b/web/i18n/tr-TR/app-log.ts@@ -6,7 +6,7 @@ const translation = {header: {updatedTime: 'Güncellenme zamanı',time: 'Oluşturulma zamanı',- endUser: 'Son Kullanıcı',+ endUser: 'Son Kullanıcı veya Hesap',input: 'Girdi',output: 'Çıktı',summary: 'Başlık',@@ -17,7 +17,7 @@ const translation = {status: 'DURUM',runtime: 'ÇALIŞMA SÜRESİ',tokens: 'TOKENLAR',- user: 'SON KULLANICI',+ user: 'SON KULLANICI VEYA HESAP',version: 'VERSİYON',},pagination: {diff --git a/web/i18n/uk-UA/app-log.ts b/web/i18n/uk-UA/app-log.tsindex fd97d5ed4c0..b67b9ea8f01 100644--- a/web/i18n/uk-UA/app-log.ts+++ b/web/i18n/uk-UA/app-log.ts@@ -6,7 +6,7 @@ const translation = {header: {updatedTime: 'Час оновлення',time: 'Час створення',- endUser: 'Кінцевий Користувач',+ endUser: 'Кінцевий Користувач або Обліковий Запис',input: 'Введення',output: 'Виведення',summary: 'Заголовок',@@ -17,7 +17,7 @@ const translation = {status: 'СТАТУС',runtime: 'ЧАС ВИКОНАННЯ',tokens: 'ТОКЕНИ',- user: 'КІНЦЕВИЙ КОРИСТУВАЧ',+ user: 'КІНЦЕВИЙ КОРИСТУВАЧ АБО ОБЛІКОВИЙ ЗАПИС',version: 'ВЕРСІЯ',},pagination: {diff --git a/web/i18n/vi-VN/app-log.ts b/web/i18n/vi-VN/app-log.tsindex 733c6c84dfe..c4df7b512fd 100644--- a/web/i18n/vi-VN/app-log.ts+++ b/web/i18n/vi-VN/app-log.ts@@ -6,7 +6,7 @@ const translation = {header: {updatedTime: 'Thời gian cập nhật',time: 'Thời gian tạo',- endUser: 'Người dùng cuối',+ endUser: 'Người dùng cuối hoặc tài khoản',input: 'Đầu vào',output: 'Đầu ra',summary: 'Tóm tắt',@@ -17,7 +17,7 @@ const translation = {status: 'TRẠNG THÁI',runtime: 'THỜI GIAN CHẠY',tokens: 'TOKEN',- user: 'NGƯỜI DÙNG CUỐI',+ user: 'NGƯỜI DÙNG CUỐI HOẶC TÀI KHOẢN',version: 'PHIÊN BẢN',},pagination: {diff --git a/web/i18n/zh-Hans/app-log.ts b/web/i18n/zh-Hans/app-log.tsindex 47ed566085a..0d2118a6841 100644--- a/web/i18n/zh-Hans/app-log.ts+++ b/web/i18n/zh-Hans/app-log.ts@@ -6,7 +6,7 @@ const translation = {header: {updatedTime: '更新时间',time: '创建时间',- endUser: '用户',+ endUser: '用户或账户',input: '输入',output: '输出',summary: '标题',@@ -17,7 +17,7 @@ const translation = {status: '状态',runtime: '运行时间',tokens: 'TOKENS',- user: '用户',+ user: '用户或账户',version: '版本',},pagination: {diff --git a/web/i18n/zh-Hant/app-log.ts b/web/i18n/zh-Hant/app-log.tsindex 0c5af34a1aa..98048447361 100644--- a/web/i18n/zh-Hant/app-log.ts+++ b/web/i18n/zh-Hant/app-log.ts@@ -6,7 +6,7 @@ const translation = {header: {updatedTime: '更新時間',time: '創建時間',- endUser: '使用者',+ endUser: '使用者或賬戶',input: '輸入',output: '輸出',summary: '標題',@@ -17,7 +17,7 @@ const translation = {status: '狀態',runtime: '執行時間',tokens: 'TOKENS',- user: '使用者',+ user: '使用者或賬戶',version: '版本',},pagination: {