Commit Graph

6 Commits

Author SHA1 Message Date
zhi
de04e21aa1 fix: wait for gateway ready before post-install model validation
Root cause: gateway restart is async (systemd), but validateNoReplyModelAvailable()
ran immediately after, hitting a race condition where the new gateway process
hadn't finished initializing yet. This caused 'model not listed' validation
failures, triggering config rollback even though the config was correct.

Changes:
- Add waitForGatewayReady() that polls 'openclaw gateway status' for RPC probe
- Add retry loop (5 attempts, 2s interval) to validateNoReplyModelAvailable()
- Fix CONFIG.example.json: contextWindow 4096->200000, maxTokens 64->8192
  (OpenClaw requires minimum 16000 contextWindow)
2026-02-26 08:45:37 +00:00
15975e3970 fix(installer): raise no-reply model contextWindow/maxTokens to satisfy OpenClaw minimums 2026-02-26 06:30:56 +00:00
8d34bf257b fix(installer): write providers map by object key to avoid quoted provider id and restore providers atomically on uninstall 2026-02-26 06:26:52 +00:00
875cd66d34 feat(installer): restart gateway and validate custom no-reply model visibility after install 2026-02-26 06:14:06 +00:00
1746fb33ad fix(installer): uninstall now selects latest install record instead of latest pointer 2026-02-26 06:04:17 +00:00
46e56c6760 refactor(installer): replace bash installer logic with node-only implementation 2026-02-26 00:41:56 +00:00