fix(web): use session name as initial document title (#4357)

* fix(web): use session name as initial document title

* docs(changelog): add PR
This commit is contained in:
Aram Drevekenin 2025-08-08 11:21:30 +02:00 committed by GitHub
parent 7fc8a0308c
commit 671569eb8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
* fix: terminal title regression (https://github.com/zellij-org/zellij/pull/4352) * fix: terminal title regression (https://github.com/zellij-org/zellij/pull/4352)
* fix: resurrection listing regression (https://github.com/zellij-org/zellij/pull/4354) * fix: resurrection listing regression (https://github.com/zellij-org/zellij/pull/4354)
* fix: tooltip keybinding backgrounds (https://github.com/zellij-org/zellij/pull/4356) * fix: tooltip keybinding backgrounds (https://github.com/zellij-org/zellij/pull/4356)
* fix: default to session name for window/tab title in Zellij Web (https://github.com/zellij-org/zellij/pull/4357)
## [0.43.0] - 2025-08-05 ## [0.43.0] - 2025-08-05
* feat: multiple select and bulk pane actions (https://github.com/zellij-org/zellij/pull/4169 and https://github.com/zellij-org/zellij/pull/4171, https://github.com/zellij-org/zellij/pull/4221 and https://github.com/zellij-org/zellij/pull/4286) * feat: multiple select and bulk pane actions (https://github.com/zellij-org/zellij/pull/4169 and https://github.com/zellij-org/zellij/pull/4171, https://github.com/zellij-org/zellij/pull/4221 and https://github.com/zellij-org/zellij/pull/4286)

View file

@ -18,6 +18,7 @@ document.addEventListener("DOMContentLoaded", async (event) => {
setupInputHandlers(term, sendAnsiKey); setupInputHandlers(term, sendAnsiKey);
document.title = sessionName;
const websockets = initWebSockets(webClientId, sessionName, term, fitAddon, sendAnsiKey); const websockets = initWebSockets(webClientId, sessionName, term, fitAddon, sendAnsiKey);
// Update sendAnsiKey to use the actual WebSocket function returned by initWebSockets // Update sendAnsiKey to use the actual WebSocket function returned by initWebSockets