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:
volker 2026-03-31 21:00:21 +02:00
parent 9d86ac8186
commit 6ec66f57fd

View file

@ -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)