Skip to content

/doctor 增加 MLX 网关连通 + 模型加载状态探测 (P4.2 #1+#3; #4 OOM 跨仓延后) #91

Closed

Description

@dahai80

背景

enhance-0819.md §P4.2 (lines 666-675) 定 7 项 /doctor 本地健康检查。审计结论:

方案

复用 model-status.ts 的 fetchMlxStatus/fetchMlxPs (已 export, /api/tags+/api/ps, 3s timeout)。新增 detectMlxHealth() async fn in doctorDiagnostic.ts, 在 getDoctorDiagnostic() 内 push 进 warnings。仅当 shouldAutoUseFusionMlx() (MLX 配置 provider) 时探测 — cloud-active 跳过避免 3s 浪费 + 噪音。

不改 Doctor.tsx — diagnostic.warnings 已数据驱动渲染。

范围

验证

typecheck 0, 单测覆盖 4 case (cloud-skip / not-reachable / no-model-loaded / healthy), 全测无回归, build + dev:full pass, biome clean, git diff -w 零 churn。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions