Problem
agent-install.sh exits immediately when ~/.openclaw/postgres.json is missing:
ERROR: Config file not found: /home/nova-staging/.openclaw/postgres.json
Run shell-install.sh first or create ~/.openclaw/postgres.json
This prevents ALL installation steps from running — including shared libs (pg-env.ts, env-loader.sh, etc.), hooks, scripts, and entity-resolver. These components don't require a database connection to install.
Impact
On the staging environment (nova-staging), we had to manually copy:
~/.openclaw/lib/pg-env.ts
~/.openclaw/lib/pg-env.sh
~/.openclaw/lib/pg_env.py
~/.openclaw/lib/env-loader.sh
~/.openclaw/lib/env_loader.py
~/.openclaw/lib/entity-resolver/ (entire directory + node_modules)
- All hook handler.ts files
- All scripts
This defeats the purpose of having an installer.
Expected Behavior
The installer should:
- Install shared libs, hooks, scripts, and skills regardless of DB availability
- Skip DB-dependent steps (schema management, pgschema, bootstrap context setup) with a warning when postgres.json is missing
- Report which steps were skipped so the user knows what still needs to be done
Acceptance Criteria
Problem
agent-install.shexits immediately when~/.openclaw/postgres.jsonis missing:This prevents ALL installation steps from running — including shared libs (
pg-env.ts,env-loader.sh, etc.), hooks, scripts, and entity-resolver. These components don't require a database connection to install.Impact
On the staging environment (
nova-staging), we had to manually copy:~/.openclaw/lib/pg-env.ts~/.openclaw/lib/pg-env.sh~/.openclaw/lib/pg_env.py~/.openclaw/lib/env-loader.sh~/.openclaw/lib/env_loader.py~/.openclaw/lib/entity-resolver/(entire directory + node_modules)This defeats the purpose of having an installer.
Expected Behavior
The installer should:
Acceptance Criteria
agent-install.shinstalls libs, hooks, scripts, and skills even withoutpostgres.jsonexit 1)