ersion: 2026.4.21 (f788c88)
Environment: Hostinger VPS, Docker container, Control UI via browser (webchat)
Issue 1: Empty tool calls firing after gateway restarts
After one or more gateway restarts in a session, the model begins generating spurious empty tool calls between real ones. Example error:
Validation failed for tool "write": content: must have required property 'content'
Validation failed for tool "exec": command: must have required property 'command'
The calls fire with empty parameters — not missing values I forgot to provide, but genuinely empty calls generated autonomously between intentional tool calls. Persists across browser refreshes and new browser sessions. Only way to partially resolve is to stop working and wait, but it returns. Has happened multiple times tonight across 3-4 gateway restarts.
Issue 2: NEXOS_API_KEY env var overrides model config
NEXOS_API_KEY is injected at the Docker container level as an environment variable. Despite setting agents.defaults.model.primary = "anthropic/claude-sonnet-4-5" in openclaw.json, and even after removing the Nexos provider from config and explicitly disabling the Nexos plugin, the gateway continues routing through Nexos. The env var appears to be picked up before plugin config is applied.
Result: Anthropic API key goes unused, Nexos tokens consumed instead.
Workaround needed: How to permanently override an env-var-injected API key via config, without SSH access to modify the Docker environment directly.
Impact: Both issues together make sustained build sessions unreliable — tool failures interrupt long HTML builds, and the cost routing is wrong.