|
|
@@ -4,6 +4,26 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
+## v1.0.2343 (2026-11-11)
|
|
|
+
|
|
|
+### 新功能
|
|
|
+- langgraph.intent.errorPropagate - AiGateway 上游 429/401 必须传播,不得静默吞 null
|
|
|
+
|
|
|
+### 其他
|
|
|
+- 实现使绿:
|
|
|
+- - AiGateway.chat()/chatForAnalysis():RestClientException 且为 429/401(HttpClientErrorException)时
|
|
|
+- recordFailure() 后向上抛出(传播外部服务错误,供编排降级/告警),其他失败(熔断/超时/连接失败)
|
|
|
+- 仍按原语义返回 null 兜底
|
|
|
+- - 新增私有辅助 isExternalServiceError(RestClientException) 识别 429/401
|
|
|
+- - AiChatController.sendNutritionMessage:resp 为 null 时不再 NPE(chat 现在可能对 429/401 抛出,
|
|
|
+- 但 429/401 场景直接由 AiGateway 抛出;null 仍是「非外部服务错误」兜底,判空更稳妥)
|
|
|
+- - AIService.sendMessage:Javadoc 补充 429/401 传播契约说明(行为不变,429/401 仍直接抛出,
|
|
|
+- 由 Controller 层全局异常处理器处理;非外部服务错误仍走 emptyMap 兜底)
|
|
|
+- 测试结果:LangGraphErrorPropagateContractTest 3失败→5/5通过;AiGatewayTimeoutTest 1/1 通过(零回归)
|
|
|
+- 契约测试类:cfc-backend/src/test/java/com/etotem/cfc/unit/LangGraphErrorPropagateContractTest.java
|
|
|
+-
|
|
|
+
|
|
|
+
|
|
|
## v1.0.2342 (2026-11-11)
|
|
|
|
|
|
### Bug 修复
|