Commit Graph

323 Commits

Author SHA1 Message Date
晴天
699cf1c071 fix(models): stop auto-populating fallbacks on every save (fixes #190) 2026-04-05 20:25:33 +08:00
晴天
db1f0edc43 fix(ci): format config command 2026-04-03 00:33:28 +08:00
github-actions[bot]
40399df69b ci: update latest.json for v0.11.3 2026-04-02 16:28:56 +00:00
晴天
ce4e9ee8b0 chore: release v0.11.3 v0.11.3 2026-04-03 00:16:50 +08:00
晴天
61400397ec chore(update): sync latest manifest for v0.11.2 2026-04-02 18:32:46 +08:00
github-actions[bot]
57253e7eb2 ci: update latest.json for v0.11.2 2026-04-02 10:28:38 +00:00
晴天
c6b6707d6c fix(gateway): avoid false foreign gateway detection (#176) v0.11.2 2026-04-02 18:15:52 +08:00
github-actions[bot]
dec0bf4d82 ci: update latest.json for v0.11.1 2026-04-02 09:48:55 +00:00
晴天
3b85bc6f01 feat: Windows dual build - lightweight + full WebView2 installer v0.11.1 2026-04-02 17:33:40 +08:00
github-actions[bot]
10efe1cc0a ci: update latest.json for v0.11.0 2026-04-02 07:13:38 +00:00
晴天
8dfa1821bb fix(ci): resolve clippy bool_comparison and needless_as_bytes warnings v0.11.0 2026-04-02 15:00:34 +08:00
晴天
d7ea6177e0 style: cargo fmt 2026-04-02 14:55:27 +08:00
晴天
d178bffc21 chore: release v0.11.0 2026-04-02 14:50:41 +08:00
晴天
630f7daa74 fix(linux): replace sudo -E with pkexec for npm privilege escalation (#175)
- sudo -E is incompatible with sudo-rs (Ubuntu 25.10+)
- sudo cannot prompt for password from GUI apps (no TTY)
- Split npm_command() (read-only, no elevation) and npm_command_elevated() (write ops)
- npm_command_elevated() checks if npm prefix is user-writable (nvm/fnm/volta)
- Falls back to pkexec (graphical auth dialog) then sudo --non-interactive
- Passes env vars explicitly via /usr/bin/env instead of -E
2026-04-02 14:34:05 +08:00
晴天
0ad7a63c5a fix: confirm dialog overflow when content is too long 2026-04-02 13:52:08 +08:00
晴天
7b4640b355 feat: improve channel and setup guidance flows 2026-04-02 00:36:32 +08:00
晴天
2013ff98b9 feat: add workspace file panel to chat 2026-04-02 00:36:22 +08:00
晴天
17dbf2bc81 fix: sanitize polluted profiles fields in openclaw config 2026-04-02 00:09:03 +08:00
晴天
88d4c67ae6 fix: avoid false gateway-down status when pid lookup fails 2026-04-02 00:08:41 +08:00
晴天
aad8043196 feat(config): add config calibration repair flow 2026-04-01 22:46:36 +08:00
晴天
476b1a64b0 fix(ci): resolve cross-platform clippy warnings 2026-04-01 16:00:45 +08:00
晴天
b4350a59c4 fix(ci): satisfy clippy checks 2026-04-01 15:54:23 +08:00
晴天
f15de0cd4f fix(ci): apply rustfmt to tauri sources 2026-04-01 15:21:46 +08:00
晴天
b427a6b000 feat: improve gateway compatibility and complete i18n cleanup 2026-04-01 15:06:25 +08:00
晴天
57b8b25946 docs(readme): 新增升级/卸载教程 + 更新致谢列表
- 新增「升级面板」章节:macOS/Windows/Linux 桌面版、Linux Web 版、Docker 五种场景
- 新增「卸载面板」章节:五种场景完整卸载步骤,含数据清理警告
- 代码贡献者新增 octo-patch(#163)、SEVENTEEN-TAN(#161)、roc-xie(#162)
- 社区反馈者新增 17 位近期 Issue 提交用户
2026-03-30 23:59:54 +08:00
晴天
f5d32c377c fix: 修复多个高优 Issue (#160, #165, #156, #159, #151)
- #160 Gateway 死循環: _autoPairAndReconnect 后不调用 reconnect() 避免重置计数器
- #165 readConfig 未定义: 替换为内联 fs.readFileSync/writeFileSync
- #156 systemd PATH: findOpenclawBin 添加 npm 全局路径, systemd 服务注入 PATH
- #159 Docker 双容器冲突: 新增 DISABLE_GATEWAY_SPAWN 环境变量开关
- #151 Gateway 检测冲突: linuxCheckGateway 验证进程名, 拒绝操作非 OpenClaw 进程
2026-03-30 23:13:24 +08:00
SEVENTEEN-TAN
87d7c227d8 fix: 重构版本源检测逻辑 + standalone 目录集中化 + Linux 平台检测补全 (#161)
* fix: Windows 版本检测错误——优先从活跃 CLI 读取版本,修复源判断和包检查顺序

- get_local_version() Windows 块新增活跃 CLI 优先检测(与 macOS 一致),
  避免残留的 standalone 汉化版目录被优先扫描到
- detect_installed_source() 修复 standalone 被错误映射为 official(应为 chinese)
- read_version_from_installation() 根据 classify_cli_source 动态决定
  package.json 检查顺序,避免硬编码汉化版优先导致官方版用户看到错误版本

🤖 Generated with [Qoder][https://qoder.com]

* fix: Windows 版本检测忽略残留文件,仅当 CLI 二进制存在时才读取版本

standalone 目录和 npm 全局目录中可能存在卸载后的残留 node_modules/
package.json,导致面板误判 OpenClaw 已安装并显示错误版本号。
现在在读取版本前先检查 openclaw.cmd 是否实际存在。

🤖 Generated with [Qoder][https://qoder.com]

* fix: 重构版本源检测逻辑,修复跨源切换后显示旧源的问题

- 新增 detect_source_from_cmd_shim() 通过读取 Windows .cmd shim 内容判断
  npm 包归属,替代不可靠的文件系统残留目录扫描
- 重写 detect_installed_source() Windows 检测块,优先使用 shim 内容信号
- upgrade_openclaw_inner() 跨源切换时清理 standalone 安装目录
- get_local_version() npm 段改用 shim 内容判断活跃包
- build_enhanced_path() 三平台添加 standalone 安装目录,避免 dashboard 超时
- 所有平台 fallback 从 "official" 改为 "unknown",支持非面板安装场景
- 前端 dashboard/about 支持 official/chinese/unknown 三源显示
- 新增 unknownSource i18n key(中/英/繁/日/韩)

🤖 Generated with [Qoder][https://qoder.com]

* fix: 移除 config.rs 末尾多余的闭合括号,修复编译错误

🤖 Generated with [Qoder][https://qoder.com]

* fix: 移除 config.rs 末尾重复的 configure_git_https 和 invalidate_path_cache 定义

🤖 Generated with [Qoder][https://qoder.com]

* refactor: standalone 目录集中化、unsafe set_var 适配、Linux 平台检测补全

- 提升 all_standalone_dirs() / standalone_install_dir() 为 pub(crate),
  作为全局唯一的 standalone 路径来源
- build_enhanced_path() 三平台块改为调用 config::all_standalone_dirs()
- service.rs 三平台 candidate 函数改为调用 super::config::all_standalone_dirs()
- utils.rs common_non_windows_cli_candidates() 改为调用集中函数
- std::env::set_var 包裹 unsafe 块,附 SAFETY 注释,适配 Rust 1.83+
- 补全 Linux detect_installed_source(): CLI 路径分类 -> symlink -> standalone -> npm list
- 补全 Linux get_local_version(): 活跃 CLI -> standalone VERSION -> symlink package.json

🤖 Generated with [Qoder][https://qoder.com]

* fix: service.rs 模块路径修正 super::config -> crate::commands::config

mod platform 内部 super 指向 service 模块而非 commands,
需要完整路径 crate::commands::config 才能访问 all_standalone_dirs()

🤖 Generated with [Qoder][https://qoder.com]

---------

Co-authored-by: SEVENTEEN-TAN <SEVENTEEN-TAN@users.noreply.github.com>
2026-03-30 22:50:11 +08:00
Octopus
61bfd56865 feat: upgrade MiniMax provider to api.minimax.io and add M2.7/M2.5 model presets (#163)
- Fix MiniMax API base URL from api.minimax.chat to api.minimax.io
- Add MiniMax model presets (M2.7, M2.7-highspeed, M2.5, M2.5-highspeed)
  with correct context window sizes (1M for M2.7, 204K for M2.5)
- Update MiniMax description to reflect latest M2.7/M2.5 model series
- Add MiniMax to README provider tables (Chinese + English)
- Add 12 unit tests for model presets validation

Co-authored-by: PR Bot <pr-bot@minimaxi.com>
2026-03-30 22:50:00 +08:00
github-actions[bot]
8d91362cb7 ci: update latest.json for v0.10.0 2026-03-25 22:48:12 +00:00
晴天
21f4c768b4 chore: 提交 Cargo.lock + Tauri autostart 插件 schema 自动生成文件 v0.10.0 2026-03-26 06:38:56 +08:00
晴天
ac903f84b4 fix: 汉化版检测兜底——版本号含 -zh 时强制判定为汉化版
Rust get_version_info + Web dev-api.js get_version_info:
如果检测到的版本号包含 "-zh" 后缀,直接覆盖 source 为 "chinese",
不再依赖文件系统路径检测(Windows .cmd shim 路径不含包名信息)
2026-03-26 06:36:20 +08:00
晴天
535f72d1f9 fix: Windows 汉化版检测修复(.cmd shim 路径不含包名,需检查文件系统)
detect_installed_source Windows 分支:classify_cli_source 返回 npm-official 时不再直接返回 official,
而是继续检查 @qingchencloud/openclaw-zh 目录是否存在。修复汉化版被误判为官方原版的问题。
2026-03-26 06:24:48 +08:00
晴天
c7cc6fd9a4 chore: bump version to 0.10.0 + changelog
- package.json / Cargo.toml / tauri.conf.json → 0.10.0
- CHANGELOG.md: 新增 v0.10.0 变更记录(7 新功能 + 10 修复 + 3 改进)
- docs/index.html: 官网下载链接更新到 0.10.0
- docs/update/latest.json: 热更新清单更新(hash 待 CI 填入)
- openclaw-version-policy.json: 新增 0.10.0 版本策略条目
2026-03-26 06:18:20 +08:00
晴天
4108a2f25b style: clippy map_or(false) → is_some_and 修复 CI 2026-03-26 06:02:46 +08:00
晴天
16335ed087 fix: 渠道插件安装时显示下载等待提示,避免网络慢时空白
- channels.js: 动作执行开始时显示「正在下载,请稍候」提示
- 首条日志到达后自动移除提示
2026-03-26 05:55:49 +08:00
晴天
3f851acac0 feat: 微信安装/登录流程 QR 码渲染支持(ASCII QR + URL 二维码生成)
- channels.js: install 动作也渲染终端 ASCII QR 码(之前仅 login)
- 检测 liteapp.weixin.qq.com URL 自动生成可扫描的二维码图片
- 提供「在浏览器中打开」链接作为备选扫码方式
2026-03-26 05:52:59 +08:00
晴天
7490a66dc9 fix: 微信插件兼容性检测改为版本号判断,修复 SDK 文件路径误判
之前通过检查 dist/plugin-sdk/root-alias.cjs/channel-config-schema.js 文件是否存在来判断兼容性,
但 Windows 上 cli_path.parent().parent() 定位不到 npm 包目录,导致 OpenClaw 2026.3.24 也被误判为不兼容。
改为直接比较 OpenClaw 版本号 >= 2026.3.22。
2026-03-26 05:39:19 +08:00
晴天
f3d7a478ae fix: 全局修复 openclaw --version 解析(取数字开头词而非 last/pop)
- config.rs get_local_version CLI fallback: split_whitespace().last() → find(数字开头)
- dev-api.js getLocalOpenclawVersion: split().pop() → find(/^\d/)
- 同一个 bug 导致版本号被解析为 commit hash,影响版本比较和微信插件兼容检测
2026-03-26 05:31:17 +08:00
晴天
6df7f49190 fix: 微信插件版本检测解析修复(取数字开头的词而非最后一个词)
openclaw --version 输出 "OpenClaw 2026.3.24 (hash)",之前用 last() 取到 "(hash)"
导致版本号解析为空,误判为旧版。改为 find() 取第一个数字开头的词。
2026-03-26 05:26:53 +08:00
晴天
2b13bb1130 fix: 微信插件不兼容时显示详细引导(升级方案 + 手动安装命令) 2026-03-26 05:23:15 +08:00
晴天
dff6e915de fix: 微信插件 OpenClaw < 2026.3.22 时直接拒绝安装并提示升级
微信插件所有版本(v1.0.0~v2.0.1)都依赖 OpenClaw 2026.3.22+ 的 channel-config-schema SDK,
没有兼容旧版的版本存在。不再尝试 fallback 安装,直接给出明确的升级提示。
2026-03-26 05:14:14 +08:00
晴天
631fe86800 feat: 开机自启功能(tauri-plugin-autostart)
- Cargo.toml: 添加 tauri-plugin-autostart 依赖(桌面端)
- lib.rs: 初始化 autostart 插件(MacosLauncher::LaunchAgent)
- capabilities/default.json: 添加 autostart 权限
- settings.js: 面板设置新增开机自启开关(仅 Tauri 模式显示)
- package.json: 添加 @tauri-apps/plugin-autostart 前端依赖
2026-03-26 05:10:02 +08:00
晴天
2186cb1d5c fix: 微信插件重装前清理 openclaw.json 残留配置(channels/plugins.allow/entries)
避免删除旧插件目录后 OpenClaw 配置校验报 unknown channel / plugin not found
2026-03-26 04:56:31 +08:00
晴天
57d720c04b fix: 微信插件安装前先清理旧版目录,避免 v1.0.3 in-place update 不覆盖旧文件 2026-03-26 04:50:47 +08:00
晴天
a0ee789715 docs: 10 个非中文 README 添加 Sponsor + Contact 区域(BNB QR + support@qctx.net) 2026-03-26 04:29:50 +08:00
晴天
63b4566099 i18n: 补全 sponsorProject/sponsorDesc 11 语言翻译 2026-03-26 04:25:30 +08:00
晴天
4432682dc2 feat: 赞助项目仅非中文语言显示 + QR 点击弹出预览大图模态框 2026-03-26 04:22:34 +08:00
晴天
0281024105 feat: 关于页赞助项目区域用本地 bnbqr.jpg + 仅非英文显示 2026-03-26 04:19:22 +08:00
晴天
b66a1de59a fix: 微信插件安装前端不再传 OpenClaw 版本号,由后端自动检测 + about.js getLang 导入修复
- channels.js: 两处 runChannelAction 调用均传 null,后端自动检测 OpenClaw 版本决定用 v1.0.3 或 latest
- about.js: 补全 getLang 导入(BNB 钱包条件显示依赖)
2026-03-26 04:11:17 +08:00
晴天
65ec1c781e feat: 关于页面添加 support@qctx.net 联系邮箱 2026-03-26 04:02:52 +08:00