Local OpenClaw Control UI patch: rewrites document.title to .
Mirrors PR openclaw/openclaw#80944 as an out-of-tree patch that edits the bundled Control UI index.html shipped inside the locally installed openclaw npm package. Survives gateway restarts; does not survive openclaw update (re-run apply after upgrades).
openclaw update and the tab title went back to OpenClaw Control.The Control UI is a static SPA shipped inside the npm package at:
<npm-global>/openclaw/dist/control-ui/index.html
Gateway serves it as a static file. The patch injects a ~25-line block right before
that:
Lit element every 200 ms.assistantName (preferred) or assistantAgentId (fallback) properties.document.title to ` · OpenClaw (U+00B7 middle dot), or OpenClaw Control` if no agent.No build, no dependencies, no gateway restart — just refresh the browser tab.
# Apply (idempotent — safe to re-run after openclaw update)
bash scripts/apply.sh
# Remove (restores original index.html via .bak)
bash scripts/apply.sh --uninstall
# Custom Control UI path (auto-detect usually works)
bash scripts/apply.sh --target /path/to/openclaw/dist/control-ui/index.html
apply.sh auto-detects the Control UI index.html by probing, in order:
OPENCLAW_CONTROL_UI_INDEX env var--target flag$(npm root -g)/openclaw/dist/control-ui/index.html~/.nvm/versions/node/*/lib/node_modules/openclaw/dist/control-ui/index.htmlOn apply:
index.html.bak once (never overwrites an existing backup; that backup is the rollback point).openclaw-tab-title local patch is already present.openclaw updatenpm update overwrites the whole dist/ tree, including any prior backup. Re-run bash scripts/apply.sh — it will create a fresh backup off the new pristine file and inject the patch.
· OpenClaw `.OpenClaw Control.If title doesn't change, check Service Worker cache: DevTools → Application → Service Workers → Unregister → reload.
共 1 个版本