fix(reconciliation): 失败提示改中文并去掉绑定页 090
build / build (push) Successful in 1m51s

- 页面 9 个出口统一走 reconciliationMessages:四个内部码不再进入 DOM,未知码回退中文;批次行/阶段码同样翻译。
- 绑定页加载与点击前读 /api/v1/kb-bindings 预检:测试环境未配置当场提示且不发 POST;未启用优先于绑定缺失。
- 运行时读按上游 401/403 与连接失败拆成 runtime_key_forbidden / runtime_unreachable,保留 404 与未配置语义。
- EnvironmentLabel 与前端环境标签改「测试/生产知识库」,不再出现 090。
- 验:make verify 17 项全绿;go test 三包、web 656 用例、typecheck 通过。
This commit is contained in:
Zhero & Rin
2026-12-02 10:34:49 +08:00
committed by 姚章浩
parent 8210af7847
commit 6a12196bf3
22 changed files with 484 additions and 40 deletions
+9
View File
@@ -221,3 +221,12 @@ func TestAuditTextBoundsWithoutSplittingUTF8(t *testing.T) {
t.Fatal("blank audit source must stay empty, never a placeholder")
}
}
func TestEnvironmentLabelNamesTheKnowledgeBaseNotTheOldVersion(t *testing.T) {
if got := EnvironmentLabel(EnvTest); got != "测试知识库" {
t.Fatalf("test label = %q", got)
}
if got := EnvironmentLabel(EnvProduction); got != "生产知识库" {
t.Fatalf("production label = %q", got)
}
}