mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-26 02:01:59 +08:00
fix(hermes): add --force to uv tool install, improve install error handling
1. Rust + dev-api: uv tool install 添加 --force 标志,解决 "Executable already exists: hermes.exe" 错误 2. 安装失败时显示醒目的错误提示框(红色边框+图标+详细错误信息) 3. 失败后保留日志面板 + 进度条变红,方便排查 4. 安装按钮变为"重试",点击后清除错误状态重新安装 5. 进度条 error 状态 CSS 样式
This commit is contained in:
@@ -6437,7 +6437,7 @@ const handlers = {
|
||||
: 'hermes-agent @ git+https://github.com/NousResearch/hermes-agent.git'
|
||||
const installArgs = method === 'uv-pip'
|
||||
? ['pip', 'install', pkg]
|
||||
: ['tool', 'install', pkg, '--python', '3.11']
|
||||
: ['tool', 'install', '--force', pkg, '--python', '3.11']
|
||||
const result = spawnSync(uv, installArgs, {
|
||||
env: { ...process.env, PATH: hermesEnhancedPath(), GIT_TERMINAL_PROMPT: '0' },
|
||||
timeout: 600000,
|
||||
|
||||
Reference in New Issue
Block a user