fix openclaw config viewer — removed reference to deleted variable

OPENCLAW_SETTINGS_PATHS wurde mit dem Permissions-Cleanup gelöscht,
aber handleGetOpenClawConfig() nutzte es noch. Ersetzt durch direkte
Pfade zu openclaw.json und exec-approvals.json.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
duffyduck 2026-03-15 19:56:21 +01:00
parent 62d5d73c74
commit 7acc2b7329
1 changed files with 5 additions and 8 deletions

View File

@ -1498,14 +1498,11 @@ async function handleGetOpenClawConfig(clientWs) {
echo "OPENCLAW_GATEWAY_TOKEN=$(echo $OPENCLAW_GATEWAY_TOKEN | head -c 8)..."
echo "OPENCLAW_GATEWAY_BIND=$OPENCLAW_GATEWAY_BIND"
echo ""
echo '=== Settings-Dateien ==='
for f in ${OPENCLAW_SETTINGS_PATHS.join(" ")}; do
if [ -f "$f" ]; then
echo "--- $f ---"
cat "$f"
echo ""
fi
done
echo '=== openclaw.json ==='
cat /home/node/.openclaw/openclaw.json 2>/dev/null || echo "(nicht vorhanden)"
echo ""
echo '=== exec-approvals.json ==='
cat /home/node/.openclaw/exec-approvals.json 2>/dev/null || echo "(nicht vorhanden)"
echo ""
echo '=== Agent-Verzeichnis ==='
ls -la /home/node/.openclaw/agents/main/agent/ 2>&1