Skip to content

fix(chat): refresh tab title on space switch (JS-9828)#2292

Merged
requilence merged 1 commit into
developfrom
fix/tab-title-space-switch-js-9828
Jul 15, 2026
Merged

fix(chat): refresh tab title on space switch (JS-9828)#2292
requilence merged 1 commit into
developfrom
fix/tab-title-space-switch-js-9828

Conversation

@requilence

Copy link
Copy Markdown
Contributor

Problem

When using tabs, switching space (channel) in the vault didn't update the tab name — it only updated after opening a different object.

Cause

Chat-layout objects skip C.ObjectOpen (their change-tree is the full message history), loading details via a lightweight subscribeIds instead. As a side effect the onObjectView → keyboard.setWindowTitle() retry never runs for chat pages, so the landing chat's initial setWindowTitle() no-ops (details not loaded yet) and nothing refreshes it afterward.

Fix

Call keyboard.setWindowTitle() in the chat page's load callback, once details are available. Fires once per open (incl. every space switch); no ongoing overhead.

Closes JS-9828.

Chat-layout objects intentionally skip C.ObjectOpen (their change-tree is the
full message history), loading details via a lightweight subscribeIds instead.
As a side effect the onObjectView -> keyboard.setWindowTitle() retry never runs
for chat pages, so after switching space the tab kept the previous space's name
until the user opened a regular object.

Refresh the window/tab title in the chat page's load callback, once the object
details are available. Fires once per open (incl. every space switch), no
ongoing overhead.
@requilence
requilence merged commit 9598011 into develop Jul 15, 2026
3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant