mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-13 14:46:29 -05:00
[PR #23262] [CLOSED] fix: respect 'always expand details' setting for collapsible tool groups #27110
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23262
Author: @karthik-idikuda
Created: 3/31/2026
Status: ❌ Closed
Base:
dev← Head:fix/expand-details-collapsible-groups📝 Commits (1)
72d6daffix: respect 'always expand details' setting for collapsible tool groups📊 Changes
2 files changed (+3 additions, -3 deletions)
View changed files
📝
src/lib/components/chat/Messages/Markdown/ConsecutiveDetailsGroup.svelte(+1 -1)📝
src/lib/components/chat/Messages/Markdown/MarkdownTokens.svelte(+2 -2)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.fix:Changelog Entry
Description
Fixes #23255
When the "Always Expand Details" setting is enabled (Settings → Interface → Chat → Always Expand Details), collapsible tool call groups and standalone tool call details still start collapsed. This is because certain
ToolCallDisplaycomponents and theConsecutiveDetailsGroupwrapper hardcodeopen={false}instead of reading from the user's settings store.ConsecutiveDetailsGroup.sveltelet open = false;tolet open = $settings?.expandDetails ?? false;settingsstore was already imported — the initial open state now respects the user's preference while still allowing manual toggling.MarkdownTokens.svelteopen={false}→open={$settings?.expandDetails ?? false}for groupedToolCallDisplay(insideConsecutiveDetailsGroup)open={false}→open={$settings?.expandDetails ?? false}for standaloneToolCallDisplay(outside group)Note:
Collapsiblecomponents for non-tool-call details already correctly read$settings?.expandDetails— onlyToolCallDisplayand the group wrapper were missing this.Fixed
Additional Information
falseto$settings?.expandDetails ?? falseHow to Test
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.