Files
douyi_guaji_main/tests
CodexandClaude Opus 4.7 1b4dc477fd refactor(fudai): 拆出阶段诊断 + stage 分发块(1652→1572,-80 行)
- diagnose_stage_with_logging:前置预日志 + _diagnose_stage_from_current_screen +
  缓存到 _last_diag_* + 写诊断结果日志
- dispatch_stage:根据 stage 分发到对应 handler,返回 bool 决定主流程是否 return

run_once_basic 主体只剩调用 + 早返回链。

新增 11 个单元测试覆盖各 stage 分支。1188 → 1199 用例全过。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 03:34:56 +08:00
..