This repository is now the canonical home of the openclaw-session-branch-ui skill.
It packages the full Session Branch UI workflow into a reusable AgentSkill so a fresh OpenClaw setup can install the UI, its Gateway startup hook, and its watcher with minimal manual work.
The old standalone openclaw-session-branch-ui repository has been archived to avoid confusion.
For the Chinese introduction, see README.zh-CN.md.
openclaw-session-branch-ui installs a local Session Branch UI stack for OpenClaw, including:
- a local web UI for named branches and existing sessions
- lazy loading for older transcript history (scroll-to-top trigger with loading indicator)
- message search by keyword or timestamp
- one-click copy buttons for user and assistant messages
- Gateway websocket RPC access for session list, history, send, and abort
- background start/stop/status helpers
- a Gateway startup hook that auto-starts the UI
- a watcher that stops the UI after the Gateway exits
- compact-history recovery by merging active transcripts with same-session
.jsonl.bak.*files - fallback local transcript send when Gateway RPC lacks
operator.write - working
history-deltaupdates after fallback send - first-message bootstrap for newly created branches
- assistant error visibility when a reply only contains
errorMessage - session search bar filtering the "现有会话" list by name in real time
- rename and delete work for all sessions (both named branches and ordinary sessions); renaming a named branch also syncs the display name to the OpenClaw session store so the dashboard reflects the new name
- unified delete confirmation for all session types; deleting a named branch removes its transcript, cache, and session record from the OpenClaw store
skills/openclaw-session-branch-ui/— source skill folderdist/openclaw-session-branch-ui.skill— packaged distributable skill bundle
The skill source contains:
SKILL.md— the skill entrypoint and workflowREADME.md— human-facing installation and publishing guidescripts/install_session_branch_ui.py— installer for workspace + hook deploymentreferences/architecture.md— runtime and file layout notesreferences/windows.md— Windows-specific manual commandsreferences/macos.md— macOS-specific manual commandsreferences/linux.md— Linux-specific manual commandsassets/session-branch-ui-template/— UI template, Gateway websocket client, watcher, and control scriptsassets/session-branch-ui-hook/— Gateway startup hook template
Current support target:
- Windows-native OpenClaw
- macOS OpenClaw
- Linux OpenClaw
Use the prebuilt bundle:
dist/openclaw-session-branch-ui.skill
Use the source folder directly:
skills/openclaw-session-branch-ui/
python scripts/install_session_branch_ui.pyWith explicit paths:
python scripts/install_session_branch_ui.py --state-dir <state-dir> --workspace <workspace> --forceWith explicit platform hints:
python scripts/install_session_branch_ui.py --platform linuxAfter install:
openclaw gateway restartThen choose your platform:
powershell -NoProfile -ExecutionPolicy Bypass -File .\session-branch-ui\scripts\status.ps1
Invoke-WebRequest -UseBasicParsing http://127.0.0.1:4317/api/sessionsbash ./session-branch-ui/scripts/status.sh
curl http://127.0.0.1:4317/api/sessions- This repository contains both the source skill folder and a packaged
.skillbundle indist/ - Use the packaged bundle for the fastest installation path, or use the source folder if you want to inspect or customize the skill before installing
- Platform-specific operational details live under
skills/openclaw-session-branch-ui/references/