Anurag commited on
Commit
2ddec0e
·
1 Parent(s): 094b01a

Revert Jupyter root default to /home/node and document /home option

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. start.sh +1 -1
README.md CHANGED
@@ -370,7 +370,7 @@ The merged Space includes the Hugging Face JupyterLab template behavior inside t
370
  | `/app/` | OpenClaw Control UI | `7860` | Mounted behind the local reverse proxy |
371
  | `/terminal/` | JupyterLab terminal | `8888` | Auto-enabled when `GATEWAY_TOKEN` is set; uses `GATEWAY_TOKEN` as auth token unless `JUPYTER_TOKEN` is set separately. Set `DEV_MODE=false` to disable. |
372
 
373
- When enabled, the terminal notebook root defaults to `/`, so you can browse the full container filesystem from the browser (including `/home/node`). Handy shortcuts are also created: `HuggingClaw`, `HuggingClaw-Workspace`, and `OpenClaw-Home`.
374
 
375
  > [!IMPORTANT]
376
  > No extra secret needed — `GATEWAY_TOKEN` is automatically reused as `JUPYTER_TOKEN`. Set a separate `JUPYTER_TOKEN` secret only if you want a different terminal credential.
 
370
  | `/app/` | OpenClaw Control UI | `7860` | Mounted behind the local reverse proxy |
371
  | `/terminal/` | JupyterLab terminal | `8888` | Auto-enabled when `GATEWAY_TOKEN` is set; uses `GATEWAY_TOKEN` as auth token unless `JUPYTER_TOKEN` is set separately. Set `DEV_MODE=false` to disable. |
372
 
373
+ When enabled, the terminal notebook root defaults to `/home/node` (stable + writable by default). To browse a broader tree, set `JUPYTER_ROOT_DIR=/home`. Handy shortcuts are also created: `HuggingClaw`, `HuggingClaw-Workspace`, and `OpenClaw-Home`.
374
 
375
  > [!IMPORTANT]
376
  > No extra secret needed — `GATEWAY_TOKEN` is automatically reused as `JUPYTER_TOKEN`. Set a separate `JUPYTER_TOKEN` secret only if you want a different terminal credential.
start.sh CHANGED
@@ -1016,7 +1016,7 @@ start_jupyter_once() {
1016
  echo " DEV_MODE active but JupyterLab will NOT start until JUPYTER_TOKEN is changed." >&2
1017
  return 1
1018
  fi
1019
- JUPYTER_ROOT_DIR="${JUPYTER_ROOT_DIR:-/}"
1020
  if [ "$JUPYTER_ROOT_DIR" = "/home/node/.openclaw/workspace" ] && [ "$DEVDATA_ENABLED" = "true" ]; then
1021
  echo "Jupyter root was set to OpenClaw workspace; moving Jupyter root to /home/node/devdata to keep BACKUP and DEVDATA datasets separate."
1022
  JUPYTER_ROOT_DIR="/home/node/devdata"
 
1016
  echo " DEV_MODE active but JupyterLab will NOT start until JUPYTER_TOKEN is changed." >&2
1017
  return 1
1018
  fi
1019
+ JUPYTER_ROOT_DIR="${JUPYTER_ROOT_DIR:-/home/node}"
1020
  if [ "$JUPYTER_ROOT_DIR" = "/home/node/.openclaw/workspace" ] && [ "$DEVDATA_ENABLED" = "true" ]; then
1021
  echo "Jupyter root was set to OpenClaw workspace; moving Jupyter root to /home/node/devdata to keep BACKUP and DEVDATA datasets separate."
1022
  JUPYTER_ROOT_DIR="/home/node/devdata"