-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Feature]: Control UI — auto-set document.title to current agent name for multi-agent workflows #80942
Copy link
Copy link
Open
Labels
P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.staleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Metadata
Metadata
Assignees
Labels
P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Priority
None yet
Problem / scenario
When running a multi-agent setup (e.g.
main,milly,sherry,judy) it's now routine to have multiple Control UI browser tabs open simultaneously, one per agent. Today every tab shows the same staticOpenClaw Controlindocument.title, so:The static title is actively painful as soon as you have >1 agent.
Why this is different from #27027
#27027 ("set document.title to agent name for multi-agent setups") was closed as
not plannedon 2026-04-10 by the stale bot. The original ask was thin on use case and got no maintainer engagement before it aged out.Since then, multi-agent simultaneous workflows (one Control UI tab per agent, several open at once, often pinned) have become a routine pattern rather than an edge case. Re-opening the request with:
should make the trade-off easier to evaluate this time around.
Why this is different from #51052 / PR #51067
PR #51067 introduces
gateway.controlUi.title— a static, instance-wide title for cross-instance disambiguation (e.g. "prod gateway" vs "laptop gateway"). That is orthogonal to this proposal.This proposal is dynamic, intra-instance, per-agent:
gateway.controlUi.titleis unset.gateway.controlUi.titleis set, it should win — operators who configured a static title clearly want that string everywhere.The two features compose cleanly; this is not a duplicate.
Proposed implementation sketch
In
ui/src/ui/app-lifecycle.tshandleUpdated(), observeassistantName/assistantAgentId/sessionKeychanges from host state and updatedocument.title:gatewayConfigTitle(gateway.controlUi.title) takes precedence.Control.IDENTITY.md), so render as e.g.🛠️ Milly · OpenClaw.…while a chat stream is in progress, so users can see at-a-glance which tab is currently generating.Estimated change: ~20 LoC plus a small effect/subscription wiring.
Why now / impact
Acceptance criteria
document.titlewithin one frame.gateway.controlUi.titleis set, it wins over the agent name.OpenClaw(no flicker, noundefined).Cross-refs
not planned, predecessor)Suggested labels:
area: ui,type: feature.