Ando commited on
Commit
5bb93f1
·
1 Parent(s): 5e665ae

Fix: Persist OpenClaw chat history to workspace across restarts

Browse files
Files changed (1) hide show
  1. start.sh +4 -1
start.sh CHANGED
@@ -89,7 +89,10 @@ case "$LLM_PROVIDER" in
89
  esac
90
 
91
  # ── Setup directories ──
92
- mkdir -p /home/node/.openclaw/agents/main/sessions
 
 
 
93
  mkdir -p /home/node/.openclaw/credentials
94
  mkdir -p /home/node/.openclaw/workspace
95
  chmod 700 /home/node/.openclaw
 
89
  esac
90
 
91
  # ── Setup directories ──
92
+ # Chat history persistence
93
+ mkdir -p /home/node/.openclaw/workspace/.huggingclaw-state/agents
94
+ rm -rf /home/node/.openclaw/agents
95
+ ln -sf /home/node/.openclaw/workspace/.huggingclaw-state/agents /home/node/.openclaw/agents
96
  mkdir -p /home/node/.openclaw/credentials
97
  mkdir -p /home/node/.openclaw/workspace
98
  chmod 700 /home/node/.openclaw