mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-24 14:23:59 -05:00
[PR #23871] [CLOSED] fix: personal open-terminal connection status storage and terminal button visibility #98457
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23871
Author: @silenceroom
Created: 4/19/2026
Status: ❌ Closed
Base:
dev← Head:fix/terminal_button_visibility📝 Commits (2)
bcca7c4fix: hide terminal button when no terminals are enabled and fix toggle persistence4aebed7fix: clear selectedTerminalId when terminal is deleted or renamed📊 Changes
5 files changed (+14 additions, -7 deletions)
View changed files
📝
src/lib/components/chat/MessageInput.svelte(+1 -1)📝
src/lib/components/chat/MessageInput/TerminalMenu.svelte(+1 -1)📝
src/lib/components/chat/Settings/Integrations.svelte(+9 -2)📝
src/lib/components/chat/Settings/Integrations/Terminals/Connection.svelte(+1 -1)📝
src/lib/components/common/Switch.svelte(+2 -2)📄 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:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
This PR fixed below problems related to open-terminal connections under personal settings:
Added
Changed
Switch.svelte):onCheckedChangecallback anddispatch('change')now correctly pass the new toggled value (newValue) instead of the old state, fixing incorrect event data passed to parent components.MessageInput.svelte,TerminalMenu.svelte): Filter condition changed froms.urltos.url && s.enabled, ensuring only enabled terminal servers show the Terminal button or appear in the menu.Chat.svelte): Loading logic now respects theenabledflag when restoring terminal state from localStorage.Deprecated
Removed
Fixed
Terminals/Connection.svelte): Switch enable/disable operations were reversed due to the Switch component bug, now working correctly.Integrations.svelte):selectedTerminalIdis now automatically cleared tonullwhen saving if the currently selected terminal has been disabled, preventing residual stale state.Security
Breaking Changes
Test Plan
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.