Skip to content

[ENHANCEMENT]code review功能异常 #1009

@wsj1026749812-jpg

Description

@wsj1026749812-jpg

Problem (one or two sentences)

src/core/costrict/code-review/codeReviewService.ts这个文件中以下代码有问题
const reportMessage = [...task.clineMessages]
.reverse()
.find((msg) => msg.type === "say" && msg?.text?.includes("I-AM-CODE-REVIEW-REPORT-V1"))

我本地部署的costrict中clineMessages中没有I-AM-CODE-REVIEW-REPORT-V1相关信息,最后一条信息为type:say say:completion_result的信息,导致后续if (reportMessage?.text)分支进不去,代码评审进度条卡住,没法生成最终的报告,插件版本为2.0.24

Context (who is affected and when)

我本地部署的costrict受影响

Desired behavior (conceptual, not technical)

Constraints / preferences (optional)

No response

Request checklist

  • I've searched existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact

Acceptance criteria (optional)

No response

Proposed approach (optional)

No response

Trade-offs / risks (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions