mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-06 02:48:04 +00:00
Fix desktop feature detection on initial mount
desktopEnabled was only set in the reactive block when the terminal changed, but not in the onMount path. This caused the Desktop panel to never appear on first load.
This commit is contained in:
parent
9d86ac8186
commit
6ec66f57fd
1 changed files with 1 additions and 0 deletions
|
|
@ -834,6 +834,7 @@
|
|||
// Discover server features on initial mount
|
||||
const config = await getTerminalConfig(terminal.url, terminal.key);
|
||||
terminalEnabled = config?.features?.terminal !== false;
|
||||
desktopEnabled = config?.features?.desktop === true;
|
||||
|
||||
if (chatId || savedPath === '/') {
|
||||
// Fetch session-specific cwd from the server (or global default for new chats)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue