Spaces:
Sleeping
Sleeping
Claude Code Claude Opus 4.6 commited on
Commit ·
07b8a4e
1
Parent(s): 79366d2
Claude Code: Ensure /data directory exists at startup
Browse files- Add mkdir -p /data to entrypoint.sh to guarantee cain_status.json directory exists
- Prevents "unknown" status from missing status file
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
entrypoint.sh
CHANGED
|
@@ -36,6 +36,9 @@ ls -la /app/*.py 2>/dev/null || echo " (no .py files in /app root)"
|
|
| 36 |
# Create logs directory
|
| 37 |
mkdir -p /app/logs
|
| 38 |
|
|
|
|
|
|
|
|
|
|
| 39 |
echo ""
|
| 40 |
echo "=========================================="
|
| 41 |
echo "Starting uvicorn..."
|
|
|
|
| 36 |
# Create logs directory
|
| 37 |
mkdir -p /app/logs
|
| 38 |
|
| 39 |
+
# Ensure cain_status.json directory exists
|
| 40 |
+
mkdir -p /data
|
| 41 |
+
|
| 42 |
echo ""
|
| 43 |
echo "=========================================="
|
| 44 |
echo "Starting uvicorn..."
|
openclaw/.openclaw/agents/cain_status.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
{
|
| 2 |
"current_state": "idle",
|
| 3 |
-
"
|
| 4 |
-
"last_updated": "2026-03-16T10:42:00.000000+00:00",
|
| 5 |
"agent": "cain",
|
|
|
|
| 6 |
"a2a": {
|
| 7 |
"endpoint": "/a2a/jsonrpc",
|
| 8 |
"enabled": true,
|
| 9 |
"status": "ready"
|
| 10 |
}
|
| 11 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
"current_state": "idle",
|
| 3 |
+
"last_updated": "2026-03-16T15:36:23.501876+00:00",
|
|
|
|
| 4 |
"agent": "cain",
|
| 5 |
+
"stage": "RUNNING_A2A_READY",
|
| 6 |
"a2a": {
|
| 7 |
"endpoint": "/a2a/jsonrpc",
|
| 8 |
"enabled": true,
|
| 9 |
"status": "ready"
|
| 10 |
}
|
| 11 |
+
}
|