X 社区技巧:模型配置回滚先备份,再重跑配置向导
场景:多次试验模型后效果变差、想快速回到可用版本。做法:先备份当前配置,再按已知稳定模型重跑 setup/config,最后用小样本回归测试确认。
XDiscovered 2026-02-18Author @funjaser
Prerequisites
- You can access OpenClaw config files and restart gateway safely.
- A known-good model profile/version is documented for rollback target.
Steps
- Backup current config files before any rollback operation.
- Re-run OpenClaw setup/config flow and select previous stable model/provider pair.
- Restart gateway and run a fixed regression prompt set (same 3-5 prompts).
- Compare quality, latency, and cost with pre-rollback baseline and keep changelog notes.
Commands
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak.$(date +%F-%H%M)openclaw gateway restartopenclaw statusVerify
Regression prompts recover expected answer style and gateway remains stable after restart.
Caveats
- The source is a short social tip; exact config key paths should be confirmed against local docs(需验证).
- Avoid rolling back blindly across major versions without checking migration notes.
Source attribution
This tip is aggregated from community/public sources and preserved with attribution.
Open original source ↗