This commit is contained in:
Timothy Jaeryang Baek 2026-11-05 22:12:49 +09:00
parent 8366e28725
commit 0413768244

View file

@ -160,7 +160,10 @@ export const resolveTerminalConnection = (
return {
selector,
baseUrl: `${WEBUI_API_BASE_URL}/terminals/${encodeURIComponent(selector)}`,
key: token,
// Panels outlive Tether's token rotations; read the current session at request time.
get key() {
return typeof localStorage === 'undefined' ? token : (localStorage.getItem('token') ?? '');
},
system: true
};
}