Files
ocp/clean-slash-sessions.sh
T
taodengandClaude Opus 4.6 77a3f48cfd feat: add restart, version, test, backends commands to /ocp plugin
New subcommands:
- /ocp restart [gateway|all] — restart proxy, gateway, or both
- /ocp version — show version, uptime, platform info
- /ocp test — end-to-end proxy test (sends haiku request)
- /ocp backends — list registered backends with health status

Also includes clean-slash-sessions.sh workaround for OpenClaw #26895.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 09:09:23 +10:00

11 lines
293 B
Bash
Executable File

#!/bin/bash
python3 -c "
import json, glob, os
for sf in glob.glob(os.path.expanduser('~/.openclaw/agents/*/sessions/sessions.json')):
d=json.load(open(sf))
keys=[k for k in d if 'slash' in k]
if keys:
for k in keys: del d[k]
json.dump(d, open(sf,'w'), indent=2)
"