mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-06-10 09:02:42 -04:00
install.func: use _CORE_FUNC_LOADED guard instead of BASH_SOURCE[0] check. When sourced via herestring (pct exec), BASH_SOURCE[0] is empty string which slipped past the /dev/stdin check, causing /dev/core.func not found errors. _CORE_FUNC_LOADED is always set when core.func is already loaded as part of the combined FUNCTIONS_FILE_PATH. handler.ts + Terminal.tsx: move the xterm clear (ESC[2J ESC[H) from server-side to client-side, sent immediately before the resize WS message. Server-side clear had a race: whiptail SIGWINCH redraw (PTY -> SSH -> WS) could arrive before or after our server clear, causing it to wipe the correctly redrawn dialog. Client-side clear is synchronous and always precedes the server's SIGWINCH redraw.