feat(agent-engine): CI failure auto-detect & fix loop - #2
Merged
Conversation
实现 PR 创建后的 CI 事后闭环: - github-api.ts: 新增 getCheckRuns + getCheckRunLogs,轮询 GitHub Checks API - agent.ts: 新增 startCiMonitor / stopCiMonitor / fixBasedOnCiFailure - PR 创建后自动启动 30s 间隔轮询 - CI 失败时获取日志 → runInstructionSilent 修复 → autoSubmitForReview 重新提交 - 支持已有 PR 追加 commit(不重复创建 PR) - Agent stop / engine delete-agent 时自动清理定时器 - engine.ts: delete-agent 前调用 stopCiMonitor 防止内存泄漏 - types/schemas: 新增可选 ciStatus 字段(不改 TaskStatus,最小侵入) - docs: 同步 ARCHITECTURE.md + STATUS.md
9 tasks
HelloWorldU
added a commit
that referenced
this pull request
May 28, 2026
…iewer 修订 接管 PR #29 + 应用自审 reviewer 两处修订: PR #29 原内容: - agent.ts submitReview: 补 review.comment = comment || '',解决 fix loop 拿不到具体审阅意见的根因(Bug #1) - agent.ts syncBranchWithMain: 删 merge 成功后多余的 gitCommit/abortMerge,squash merge 场景不再误报「同步提交失败」(Bug #3) - agent.ts: sendInstruction 后增加 stopped 状态检查,最小可行的 stop 级联兜底(Bug #2 增量修,根治仍归并到架构决策项) - github-api.ts getCheckRunLogs: 截断方向从 slice(0, 8000) 改为 slice(-8000)(Bug #5) - 配套文档同步 + AgentDetail/Store 透传 review.comment 字段 reviewer 修订(本次额外): - github-api.ts: '...[truncated]' 标记从尾部挪到头部,避免误导用户以为尾部还有截断 - backlog.md: footer 同步更新(4 个活跃 bug → 1 个 #4 F5 失踪)+ 应用本地删除架构项「风险」段
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
实现 PR 创建后的 CI 事后闭环: