[PR #23157] [CLOSED] feat(ui): improvements of native tool activity display / sources #130723

Closed
opened 2026-05-21 15:15:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/23157
Author: @RomualdYT
Created: 3/27/2026
Status: Closed

Base: devHead: feat/ui-tool-activity


📝 Commits (2)

  • 32f4da7 feat(ui): humanize native tool activity display
  • 7e292ac chore(i18n): register tool activity strings and update locales

📊 Changes

66 files changed (+4190 additions, -199 deletions)

View changed files

📝 i18next-parser.config.ts (+1 -1)
📝 src/lib/components/chat/Messages/Citations.svelte (+12 -1)
📝 src/lib/components/chat/Messages/Markdown/ConsecutiveDetailsGroup.svelte (+25 -23)
📝 src/lib/components/chat/Messages/ResponseMessage.svelte (+16 -2)
📝 src/lib/components/common/ToolCallDisplay.svelte (+102 -30)
📝 src/lib/i18n/locales/ar-BH/translation.json (+50 -2)
📝 src/lib/i18n/locales/ar/translation.json (+50 -2)
📝 src/lib/i18n/locales/az-AZ/translation.json (+50 -2)
📝 src/lib/i18n/locales/bg-BG/translation.json (+50 -2)
📝 src/lib/i18n/locales/bn-BD/translation.json (+50 -2)
📝 src/lib/i18n/locales/bo-TB/translation.json (+50 -2)
📝 src/lib/i18n/locales/bs-BA/translation.json (+50 -2)
📝 src/lib/i18n/locales/ca-ES/translation.json (+50 -2)
📝 src/lib/i18n/locales/ceb-PH/translation.json (+50 -2)
📝 src/lib/i18n/locales/cs-CZ/translation.json (+50 -2)
📝 src/lib/i18n/locales/da-DK/translation.json (+50 -2)
📝 src/lib/i18n/locales/de-DE/translation.json (+53 -5)
📝 src/lib/i18n/locales/dg-DG/translation.json (+52 -2)
📝 src/lib/i18n/locales/el-GR/translation.json (+50 -2)
📝 src/lib/i18n/locales/en-GB/translation.json (+50 -2)

...and 46 more files

📄 Description

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.

This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.

Before submitting, make sure you've checked the following:

  • Target branch: Verify that the pull request targets the dev branch. PRs targeting main will be immediately closed.
  • Description: Provide a concise description of the changes made in this pull request down below.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Add docs in Open WebUI Docs Repository. Document user-facing behavior, environment variables, public APIs/interfaces, or deployment steps.
  • Dependencies: No new dependency was added. The existing i18n extraction workflow was reused and updated to include TypeScript sources.
  • Testing: Manual validation performed and described below.
  • [x ] Agentic AI Code: Confirm this Pull Request is not written by any AI Agent or has at least gone through additional human review AND manual testing. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR.
  • Code review: Self-review completed.
  • Design & Architecture: The change is frontend-only, keeps backend execution untouched, and follows existing chat/source UI conventions.
  • Git Hygiene: PR is scoped to one logical improvement: native tool activity presentation and its i18n integration.
  • Title Prefix: Uses feat.

Changelog Entry

Description

  • This PR improves how native Open WebUI tool calls are displayed in chat by replacing raw internal tool names such as search_web and fetch_url with human-friendly activity labels, grouped summaries, and compact source indicators.
  • The goal is to make tool execution easier to understand at a glance without changing any backend tool behavior or execution contracts... and have a better design!
  • This also improves source visibility during tool execution by surfacing compact source indicators directly in the activity row.
  • When multiple web sources are involved, the UI now shows a stacked favicon capsule with a +N indicator instead of exposing raw technical tool names.
  • Overall, the tool activity timeline is now much easier to scan during multi-step web retrieval flows.

Added

  • A frontend presentation layer for native built-in tools.
  • Better activity labels for native tools such as web search, URL fetching, knowledge access, notes, memories, chats, channels, code execution, images, time tools, and skills.
  • Compact web source presentation with favicons in tool activity rows.
  • Direct visual affordance to jump from tool activity to the corresponding sources/citations.
  • Additional manual translations for the new activity strings in:
    • fr-FR
    • fr-CA
    • de-DE
    • es-ES
    • it-IT
  • Added compact source capsules to tool activity rows, including stacked favicons and a +N count for additional sources.
  • Added a direct visual bridge from tool activity to citations/sources, making it easier to understand where the assistant browsed content.
  • Added clearer grouped activity summaries for multi-step native tool usage.

Changed

  • Consecutive tool activity summaries now group by readable activity family instead of raw function names.
  • Changed the UX where users would see internal tool names like search_web and fetch_url directly in the chat activity UI.
  • Changed grouped activity summaries that previously surfaced raw tool function names instead of readable actions.
  • Changed i18n workflow alignment for TypeScript-based UI string definitions.
  • The main tool activity row now shows natural-language labels instead of exposing internal tool identifiers.
  • The i18n parser input now includes src/**/*.{js,ts,svelte} so TypeScript-based UI presentation utilities participate in the normal extraction workflow.
  • The string set was intentionally reduced to reusable templates to minimize locale churn and keep the PR maintainable.

Deprecated

  • None.

Removed

  • Removed raw tool-name-first presentation from the main activity UI for native tools.
  • Removed unrelated stale locale keys from this feature scope by rerunning the repo’s extraction flow cleanly.

Fixed

N/A

Security

  • No security changes.

Breaking Changes

  • BREAKING CHANGE: None.

Additional Information

  • This is a frontend-only presentation change. Backend tool names and tool execution behavior are unchanged.
  • Technical tool names remain available in expanded details for transparency/debugging.
  • The new rendering follows existing Open WebUI visual conventions for sources and citations instead of introducing a separate design language.
  • The branch is intentionally split into two reviewable commits:
    • feat(ui): humanize native tool activity display
    • chore(i18n): register tool activity strings and update locales

The implementation was assisted by Claude Opus 4.6, then manually reviewed and has been tested on my side over the past two weeks. :)

Testing

Manual validation performed:

  • verified native tool activity rows render human-readable labels instead of raw function names
  • verified grouped summaries no longer read like search_web, fetch_url
  • verified favicon/source capsule behavior in the updated tool activity UI
  • verified npm run i18n:parse succeeds
  • verified rerunning i18n extraction is stable
  • verified npm run build succeeds

Screenshots or Videos

Before
image

After
image

Before
image

After
image

Contributor License Agreement

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/23157 **Author:** [@RomualdYT](https://github.com/RomualdYT) **Created:** 3/27/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat/ui-tool-activity` --- ### 📝 Commits (2) - [`32f4da7`](https://github.com/open-webui/open-webui/commit/32f4da75d7efcdb17b83b84c218663b3a85a76db) feat(ui): humanize native tool activity display - [`7e292ac`](https://github.com/open-webui/open-webui/commit/7e292ac5d4875df896527665646f46f8e01b18a1) chore(i18n): register tool activity strings and update locales ### 📊 Changes **66 files changed** (+4190 additions, -199 deletions) <details> <summary>View changed files</summary> 📝 `i18next-parser.config.ts` (+1 -1) 📝 `src/lib/components/chat/Messages/Citations.svelte` (+12 -1) 📝 `src/lib/components/chat/Messages/Markdown/ConsecutiveDetailsGroup.svelte` (+25 -23) 📝 `src/lib/components/chat/Messages/ResponseMessage.svelte` (+16 -2) 📝 `src/lib/components/common/ToolCallDisplay.svelte` (+102 -30) 📝 `src/lib/i18n/locales/ar-BH/translation.json` (+50 -2) 📝 `src/lib/i18n/locales/ar/translation.json` (+50 -2) 📝 `src/lib/i18n/locales/az-AZ/translation.json` (+50 -2) 📝 `src/lib/i18n/locales/bg-BG/translation.json` (+50 -2) 📝 `src/lib/i18n/locales/bn-BD/translation.json` (+50 -2) 📝 `src/lib/i18n/locales/bo-TB/translation.json` (+50 -2) 📝 `src/lib/i18n/locales/bs-BA/translation.json` (+50 -2) 📝 `src/lib/i18n/locales/ca-ES/translation.json` (+50 -2) 📝 `src/lib/i18n/locales/ceb-PH/translation.json` (+50 -2) 📝 `src/lib/i18n/locales/cs-CZ/translation.json` (+50 -2) 📝 `src/lib/i18n/locales/da-DK/translation.json` (+50 -2) 📝 `src/lib/i18n/locales/de-DE/translation.json` (+53 -5) 📝 `src/lib/i18n/locales/dg-DG/translation.json` (+52 -2) 📝 `src/lib/i18n/locales/el-GR/translation.json` (+50 -2) 📝 `src/lib/i18n/locales/en-GB/translation.json` (+50 -2) _...and 46 more files_ </details> ### 📄 Description <!-- ⚠️ CRITICAL CHECKS FOR CONTRIBUTORS (READ, DON'T DELETE) ⚠️ 1. Target the `dev` branch. PRs targeting `main` will be automatically closed. 2. Do NOT delete the CLA section at the bottom. It is required for the bot to accept your PR. --> # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request. This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR. **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Verify that the pull request targets the `dev` branch. **PRs targeting `main` will be immediately closed.** - [x] **Description:** Provide a concise description of the changes made in this pull request down below. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [ ] **Documentation:** Add docs in [Open WebUI Docs Repository](https://github.com/open-webui/docs). Document user-facing behavior, environment variables, public APIs/interfaces, or deployment steps. - [x] **Dependencies:** No new dependency was added. The existing i18n extraction workflow was reused and updated to include TypeScript sources. - [x] **Testing:** Manual validation performed and described below. - [x ] **Agentic AI Code:** Confirm this Pull Request is **not written by any AI Agent** or has at least **gone through additional human review AND manual testing**. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR. - [x] **Code review:** Self-review completed. - [x] **Design & Architecture:** The change is frontend-only, keeps backend execution untouched, and follows existing chat/source UI conventions. - [x] **Git Hygiene:** PR is scoped to one logical improvement: native tool activity presentation and its i18n integration. - [x] **Title Prefix:** Uses `feat`. # Changelog Entry ### Description - This PR improves how native Open WebUI tool calls are displayed in chat by replacing raw internal tool names such as `search_web` and `fetch_url` with human-friendly activity labels, grouped summaries, and compact source indicators. - The goal is to make tool execution easier to understand at a glance without changing any backend tool behavior or execution contracts... and have a better design! - This also improves source visibility during tool execution by surfacing compact source indicators directly in the activity row. - When multiple web sources are involved, the UI now shows a stacked favicon capsule with a `+N` indicator instead of exposing raw technical tool names. - Overall, the tool activity timeline is now much easier to scan during multi-step web retrieval flows. ### Added - A frontend presentation layer for native built-in tools. - Better activity labels for native tools such as web search, URL fetching, knowledge access, notes, memories, chats, channels, code execution, images, time tools, and skills. - Compact web source presentation with favicons in tool activity rows. - Direct visual affordance to jump from tool activity to the corresponding sources/citations. - Additional manual translations for the new activity strings in: - `fr-FR` - `fr-CA` - `de-DE` - `es-ES` - `it-IT` - Added compact source capsules to tool activity rows, including stacked favicons and a `+N` count for additional sources. - Added a direct visual bridge from tool activity to citations/sources, making it easier to understand where the assistant browsed content. - Added clearer grouped activity summaries for multi-step native tool usage. ### Changed - Consecutive tool activity summaries now group by readable activity family instead of raw function names. - Changed the UX where users would see internal tool names like `search_web` and `fetch_url` directly in the chat activity UI. - Changed grouped activity summaries that previously surfaced raw tool function names instead of readable actions. - Changed i18n workflow alignment for TypeScript-based UI string definitions. - The main tool activity row now shows natural-language labels instead of exposing internal tool identifiers. - The i18n parser input now includes `src/**/*.{js,ts,svelte}` so TypeScript-based UI presentation utilities participate in the normal extraction workflow. - The string set was intentionally reduced to reusable templates to minimize locale churn and keep the PR maintainable. ### Deprecated - None. ### Removed - Removed raw tool-name-first presentation from the main activity UI for native tools. - Removed unrelated stale locale keys from this feature scope by rerunning the repo’s extraction flow cleanly. ### Fixed N/A ### Security - No security changes. ### Breaking Changes - **BREAKING CHANGE**: None. --- ### Additional Information - This is a frontend-only presentation change. Backend tool names and tool execution behavior are unchanged. - Technical tool names remain available in expanded details for transparency/debugging. - The new rendering follows existing Open WebUI visual conventions for sources and citations instead of introducing a separate design language. - The branch is intentionally split into two reviewable commits: - `feat(ui): humanize native tool activity display` - `chore(i18n): register tool activity strings and update locales` The implementation was assisted by Claude Opus 4.6, then manually reviewed and has been tested on my side over the past two weeks. :) ### Testing Manual validation performed: - verified native tool activity rows render human-readable labels instead of raw function names - verified grouped summaries no longer read like `search_web, fetch_url` - verified favicon/source capsule behavior in the updated tool activity UI - verified `npm run i18n:parse` succeeds - verified rerunning i18n extraction is stable - verified `npm run build` succeeds ### Screenshots or Videos Before <img width="1344" height="538" alt="image" src="https://github.com/user-attachments/assets/bfc14075-1206-4e97-9740-e242d4d319b1" /> After <img width="1278" height="396" alt="image" src="https://github.com/user-attachments/assets/fe394c44-da61-4b61-9e62-0fe9f5b025d0" /> Before <img width="216" height="57" alt="image" src="https://github.com/user-attachments/assets/5ead2f0f-a038-4ffe-9969-667309705809" /> After <img width="206" height="54" alt="image" src="https://github.com/user-attachments/assets/79e65ad6-1e9c-4b8a-8057-4b330c6278e1" /> ### Contributor License Agreement <!-- 🚨 DO NOT DELETE THE TEXT BELOW 🚨 Keep the "Contributor License Agreement" confirmation text intact. Deleting it will trigger the CLA-Bot to INVALIDATE your PR. Your PR will NOT be reviewed or merged until you check the box below confirming that you have read and agree to the terms of the CLA. --> - [x] By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. > [!NOTE] > Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-21 15:15:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#130723