Repository navigation
feat(ui): mirror active destination and connection state in the dashboard title - #112929
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 23, 2026 05:35
steipete
force-pushed
the
claude/dashboard-header-display-90c7e4
branch
from
July 23, 2026 05:55
4ff1427 to
7f2ef80
Compare
steipete
force-pushed
the
claude/dashboard-header-display-90c7e4
branch
from
July 23, 2026 12:59
7f2ef80 to
29cf329
Compare
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 24, 2026
…oard title (openclaw#112929) * feat(ui): mirror active destination and connection state in the dashboard title * feat(ui): title agent main chats with the agent name * test(ui): split document-title shell tests to satisfy max-lines
This was referenced Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The Control UI document title was the static boot string "OpenClaw Control" forever: every browser tab and the Mac app window titlebar read the same regardless of which sidebar destination, chat session, or connection state was active. Users with several dashboard tabs (or a backgrounded window) had no way to tell them apart or notice that the gateway dropped.
Why This Change Was Made
Maintainer-requested (direct request, no issue): the window/tab title should mirror the active sidebar selection with the brand demoted to a secondary suffix, following the pattern the standalone approval page already established (" — OpenClaw").
formatDocumentTitle()inui/src/app-navigation.tscomposes the title;OpenClawShell.syncDocumentTitle()stamps it fromupdated(), so route changes and locale switches both refresh it.resolveSessionDisplayName(asyncderivedTitlearrival refreshes through a newcontext.sessionssubscription): "Quarterly launch plan — OpenClaw".render()is extracted tostoredOutboxScopeHost()and shared with the title sync.No new i18n keys, no visible page markup changes, boot title in
index.htmluntouched (login gate/pre-connect keeps "OpenClaw Control").User Impact
Dashboard tabs and the Mac app window now say where you are ("Usage — OpenClaw"), which conversation you're in ("Main Thread — OpenClaw"), how many approvals are waiting ("(2) …"), and whether the gateway is down with messages queued ("(Offline · 1 queued) …") — all visible from the tab strip without focusing the window.
Evidence
node scripts/run-vitest.mjs ui/src/app-navigation.test.ts ui/src/app/app-host.test.ts— 2 files, 104 tests passing, covering the formatter matrix (suffix/dedupe/count/offline/queued precedence) and shell composition (boot-title preservation, session titles, custodian label, markers)./usage,/sessions,/custodian,/chat, first-run model setup — all titles correct; stopped the gateway → title flipped to "(Offline) Main Thread — OpenClaw"; sent a chat message while offline → "(Offline · 1 queued) Main Thread — OpenClaw"; restarted the gateway → outbox flushed and title recovered to "Main Thread — OpenClaw".oxfmt --checkandscripts/run-oxlint.mjsclean on all touched files; Codex autoreview (gpt-5.6-sol, xhigh) clean.