docs(wiki): Phase 1 错误体系重构记录
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
This commit is contained in:
@@ -9,6 +9,14 @@ tags: [log, history]
|
||||
|
||||
> Append-only 操作记录。格式: `## [日期] 类型 | 描述`
|
||||
|
||||
## 2026-04-17 feat | Phase 1 错误体系重构 — ErrorKind + code + Serialize
|
||||
|
||||
- **Rust**: `zclaw-types/error.rs` 新增 `ErrorKind` (17种) + `error_codes` (E4040-E5110)
|
||||
- ZclawError 新增 `kind()` / `code()` 方法 + `Serialize` impl (零破坏性)
|
||||
- 12 个新测试: kind 映射 + code 稳定性 + JSON 序列化
|
||||
- **前端**: `error-types.ts` 新增 `RustErrorKind` / `RustErrorDetail` / `tryParseRustError()`
|
||||
- `classifyError()` 优先解析结构化错误 → 17 种中文标题映射
|
||||
|
||||
## 2026-04-17 fix | Phase 0 阻碍项修复 — 流式事件/CI/中文化
|
||||
|
||||
- **BLK-2**: loop_runner.rs 22 处 `let _ = tx.send()` 替换为 `if let Err(e) { tracing::warn!(...) }`,修复流式事件静默丢失
|
||||
|
||||
Reference in New Issue
Block a user