fix(aider-watch): code-review fixes (4 issues)
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled

1. aiderw: session_end 補 model+cwd (AI Router feedback loop 修通)
2. repository: model_stats_since SQL 改 COALESCE(session_end, session_start) model
3. aider_event_service: classify_severity 移除 error_count 觸發告警(防假陽性)
4. worker: run_aider_event_processor_loop 包 proc.start() try/except(防靜默崩潰)

2026-04-20 @ Asia/Taipei
This commit is contained in:
Your Name
2026-04-20 20:41:12 +08:00
parent e60c064bdc
commit 9e9bd8679f
4 changed files with 22 additions and 7 deletions

View File

@@ -157,6 +157,7 @@ def main(argv: list[str] | None = None) -> int:
"context_50chars": stdout_text[-50:]},
})
banner = parse_stdout_banner(stdout_text)
events_tail.append({
"ts": _now_iso(), "session_id": sid, "host": host,
"type": "session_end",
@@ -166,7 +167,9 @@ def main(argv: list[str] | None = None) -> int:
"files_changed": len([e for e in events_tail
if e["type"] == "file_edit"]),
"error_count": error_count[0],
"exit_code": exit_code},
"exit_code": exit_code,
"model": banner.get("model", "unknown"),
"cwd": str(cwd)},
})
if events_tail: