14 lines
390 B
Bash
Executable File
14 lines
390 B
Bash
Executable File
#!/bin/bash
|
|
# Start a new OpenClaw session
|
|
# Usage: ./new-session.sh [optional context message]
|
|
|
|
MESSAGE=${1:-"继续新任务"}
|
|
|
|
# Get current sessions
|
|
echo "当前活跃会话:"
|
|
ls -lh /root/.openclaw/agents/main/sessions/*.jsonl 2>/dev/null | awk '{print $5, $9}'
|
|
|
|
echo ""
|
|
echo "新会话会话ID: $(cat /proc/sys/kernel/random/uuid)"
|
|
echo "建议操作: 发送 '$MESSAGE' 到新会话"
|