Bug Description
在 K8s 部署模式下,通过一键脚本添加/更新了 Token Plan(例如新增 qwen3.7-max 等模型),但现有 Worker 无法调用新模型。Worker 日志报错 {"message":"Model not exist."} 以及 Model service check failed: HTTP 400。
What I expected:
更新 Token Plan 后,Higress 网关应自动同步 modelMapping 配置,且 Worker 应能识别新模型并成功路由到 DashScope 上游服务。
Steps to Reproduce
在 K8s 环境下完成 HiClaw 部署。
运行配置脚本或通过 UI 更新 LLM Provider 配置(添加新模型 Token Plan)。
在 Worker (smart-editor/deepresearcher 等) 中尝试调用新模型。
观察 Worker 报错 Model not exist 且容器状态异常。
AI Analysis
I Analysis:
Tool used: HiClaw Manager Agent (Built-in)
Analysis:
脚本空跑问题:/opt/hiclaw/scripts/init/setup-higress.sh 中检测到 HICLAW_RUNTIME=k8s 时直接跳过了 Higress Admin API 的路由与 Provider 更新逻辑。
网关配置缺失:由于上述跳过,Higress 的 qwen Provider 缺少针对新模型的 modelMapping,导致入口拦截请求。
容器未重载:Worker 容器未重启,openclaw.json 中的模型列表未更新,Preflight 检查失败。
网络解析问题:Worker 容器内缺失 aigw-local.hiclaw.io 的 hosts 解析,导致临时网络中断(Connection refused)。
Relevant Logs
# Worker 报错日志
"Error: Error occurred during execution of model: unknown"
"Model service check failed: model chat completion preflight returned HTTP 400"
# 溯源发现 (setup-higress.sh)
if [ "${HICLAW_RUNTIME}" = "k8s" ]; then
# 跳过所有 Higress 路由和 Provider 的 API 更新
return 0
fi
Component
CoPaw Worker
Version / Commit
v1.1.2
Bug Description
In K8s deployment mode, Token Plan is added/updated through one-click script (for example, new models such as qwen3.7-max are added), but the existing Worker cannot call the new model. The Worker log reports errors {"message":"Model not exist."} and Model service check failed: HTTP 400.
What I expected:
After updating the Token Plan, the Higress gateway should automatically synchronize the modelMapping configuration, and the Worker should be able to recognize the new model and successfully route to the DashScope upstream service.
Steps to Reproduce
Complete HiClaw deployment in K8s environment.
Run the configuration script or update the LLM Provider configuration via the UI (add new model Token Plan).
Try calling the new model in a Worker (smart-editor/deepresearcher, etc.).
Observe that the Worker reports an error Model not exist and the container status is abnormal.
AI Analysis
I Analysis:
Tool used: HiClaw Manager Agent (Built-in)
Analysis:
Script empty running problem: When HICLAW_RUNTIME=k8s is detected in /opt/hiclaw/scripts/init/setup-higress.sh, the routing and Provider update logic of the Higress Admin API are directly skipped.
Missing gateway configuration: Due to the above skip, Higress's qwen Provider lacks modelMapping for the new model, causing the entry to intercept the request.
Container not reloaded: Worker container not restarted, model list in openclaw.json not updated, Preflight check failed.
Network resolution problem: The hosts resolution of aigw-local.hiclaw.io is missing in the Worker container, resulting in temporary network interruption (Connection refused).
Relevant Logs
# Worker error log
"Error: Error occurred during execution of model: unknown"
"Model service check failed: model chat completion preflight returned HTTP 400"
# Traceability discovery (setup-higress.sh)
if [ "${HICLAW_RUNTIME}" = "k8s" ]; then
# Skip all Higress routing and Provider API updates
return 0
fi
Component
CoPaw Worker
Version/Commit
In v1.1.2
Bug Description
在 K8s 部署模式下,通过一键脚本添加/更新了 Token Plan(例如新增 qwen3.7-max 等模型),但现有 Worker 无法调用新模型。Worker 日志报错 {"message":"Model not exist."} 以及 Model service check failed: HTTP 400。
What I expected:
更新 Token Plan 后,Higress 网关应自动同步 modelMapping 配置,且 Worker 应能识别新模型并成功路由到 DashScope 上游服务。
Steps to Reproduce
在 K8s 环境下完成 HiClaw 部署。
运行配置脚本或通过 UI 更新 LLM Provider 配置(添加新模型 Token Plan)。
在 Worker (smart-editor/deepresearcher 等) 中尝试调用新模型。
观察 Worker 报错 Model not exist 且容器状态异常。
AI Analysis
I Analysis:
Tool used: HiClaw Manager Agent (Built-in)
Analysis:
脚本空跑问题:/opt/hiclaw/scripts/init/setup-higress.sh 中检测到 HICLAW_RUNTIME=k8s 时直接跳过了 Higress Admin API 的路由与 Provider 更新逻辑。
网关配置缺失:由于上述跳过,Higress 的 qwen Provider 缺少针对新模型的 modelMapping,导致入口拦截请求。
容器未重载:Worker 容器未重启,openclaw.json 中的模型列表未更新,Preflight 检查失败。
网络解析问题:Worker 容器内缺失 aigw-local.hiclaw.io 的 hosts 解析,导致临时网络中断(Connection refused)。
Relevant Logs
Component
CoPaw Worker
Version / Commit
v1.1.2
Bug Description
In K8s deployment mode, Token Plan is added/updated through one-click script (for example, new models such as qwen3.7-max are added), but the existing Worker cannot call the new model. The Worker log reports errors {"message":"Model not exist."} and Model service check failed: HTTP 400.
What I expected:
After updating the Token Plan, the Higress gateway should automatically synchronize the modelMapping configuration, and the Worker should be able to recognize the new model and successfully route to the DashScope upstream service.
Steps to Reproduce
Complete HiClaw deployment in K8s environment.
Run the configuration script or update the LLM Provider configuration via the UI (add new model Token Plan).
Try calling the new model in a Worker (smart-editor/deepresearcher, etc.).
Observe that the Worker reports an error Model not exist and the container status is abnormal.
AI Analysis
I Analysis:
Tool used: HiClaw Manager Agent (Built-in)
Analysis:
Script empty running problem: When HICLAW_RUNTIME=k8s is detected in /opt/hiclaw/scripts/init/setup-higress.sh, the routing and Provider update logic of the Higress Admin API are directly skipped.
Missing gateway configuration: Due to the above skip, Higress's qwen Provider lacks modelMapping for the new model, causing the entry to intercept the request.
Container not reloaded: Worker container not restarted, model list in openclaw.json not updated, Preflight check failed.
Network resolution problem: The hosts resolution of aigw-local.hiclaw.io is missing in the Worker container, resulting in temporary network interruption (Connection refused).
Relevant Logs
Component
CoPaw Worker
Version/Commit
In v1.1.2