sh/tests/openclaw
Kejilion Assistant ce47e0e365 feat(openclaw): auto-sync all sessions model when switching default model
- Add openclaw_get_agents_dir() helper for non-root user compatibility
- Add openclaw_sync_sessions_model() to batch update modelOverride/providerOverride
- Auto-sync all agent sessions when switching model via menu or API sync
- Add smoke test for the new sync function
2026-03-23 18:43:24 +08:00
..
README.md chore: reorganize openclaw test scripts 2026-03-12 10:22:34 +08:00
tests_change_model_dual_probe_smoke.sh fix(openclaw): prefer responses in model probe 2026-03-18 23:14:43 +08:00
tests_openclaw_api_color_align_min.sh chore: reorganize openclaw test scripts 2026-03-12 10:22:34 +08:00
tests_openclaw_api_protocol_detect_smoke.sh feat(openclaw): api manage option 4 switch provider api type manually 2026-03-15 18:26:09 +08:00
tests_openclaw_api_sync_diff_smoke.sh chore: reorganize openclaw test scripts 2026-03-12 10:22:34 +08:00
tests_openclaw_memory_auto_setup_smoke.sh feat(openclaw): support multi-agent memory management 2026-03-23 14:30:11 +08:00
tests_openclaw_memory_menu_smoke.sh fix(openclaw): fix memory index fix_index setting includeDefaultMemory=false incorrectly 2026-03-23 15:53:01 +08:00
tests_openclaw_memory_multi_agent_smoke.sh feat(openclaw): support multi-agent memory management 2026-03-23 14:30:11 +08:00
tests_openclaw_plugin_skill_menu_smoke.sh chore: reorganize openclaw test scripts 2026-03-12 10:22:34 +08:00
tests_openclaw_sync_sessions_model_smoke.sh feat(openclaw): auto-sync all sessions model when switching default model 2026-03-23 18:43:24 +08:00

OpenClaw tests

这里的脚本用于对 kejilion.sh 中的 OpenClaw 相关功能做最小回归与冒烟测试,主要覆盖:

  • API 模型同步/协议探测
  • 记忆菜单
  • 插件/技能菜单
  • API 列表颜色/对齐展示(最小验证)

运行方式

在仓库根目录执行(推荐):

bash tests/openclaw/tests_openclaw_api_protocol_detect_smoke.sh
bash tests/openclaw/tests_openclaw_api_sync_diff_smoke.sh
bash tests/openclaw/tests_openclaw_memory_menu_smoke.sh
bash tests/openclaw/tests_openclaw_plugin_skill_menu_smoke.sh
bash tests/openclaw/tests_openclaw_api_color_align_min.sh

也可在任意工作目录执行:

/path/to/repo/tests/openclaw/tests_openclaw_memory_menu_smoke.sh

安全说明

  • 脚本会创建临时工作目录与临时 HOME(位于 /tmp),并在结束后自动清理(除非设置 KEEP_WORKDIR=true)。
  • 运行过程使用 stub/模拟命令,不会改动真实 OpenClaw 配置或系统状态。
  • 如需保留临时目录用于排查,请执行:
KEEP_WORKDIR=true bash tests/openclaw/tests_openclaw_memory_menu_smoke.sh