mirror of
https://gh.wpcy.net/https://github.com/kejilion/sh.git
synced 2026-04-24 00:12:26 +08:00
- 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 |
||
|---|---|---|
| .. | ||
| README.md | ||
| tests_change_model_dual_probe_smoke.sh | ||
| tests_openclaw_api_color_align_min.sh | ||
| tests_openclaw_api_protocol_detect_smoke.sh | ||
| tests_openclaw_api_sync_diff_smoke.sh | ||
| tests_openclaw_memory_auto_setup_smoke.sh | ||
| tests_openclaw_memory_menu_smoke.sh | ||
| tests_openclaw_memory_multi_agent_smoke.sh | ||
| tests_openclaw_plugin_skill_menu_smoke.sh | ||
| tests_openclaw_sync_sessions_model_smoke.sh | ||
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