Skip to content

Commit 69e5c58

Browse files
committed
fix(cli): resolve review bot code issues and add changeset
1 parent 46c04f0 commit 69e5c58

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@kilocode/cli": patch
3+
---
4+
5+
Remove unused `PROMPT_REVIEW` import and reuse `localReviewUncommittedCommand` result in command registry.

packages/opencode/src/command/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { MCP } from "../mcp"
99
import { Skill } from "../skill"
1010
import { localReviewCommand, localReviewUncommittedCommand } from "@/kilocode/review/command" // kilocode_change
1111
import PROMPT_INITIALIZE from "./template/initialize.txt"
12-
import PROMPT_REVIEW from "./template/review.txt"
1312

1413
type State = {
1514
commands: Record<string, Info>
@@ -127,7 +126,7 @@ ${uncommittedReview.template}`
127126

128127
// kilocode_change start
129128
commands[Default.LOCAL_REVIEW] = localReviewCommand()
130-
commands[Default.LOCAL_REVIEW_UNCOMMITTED] = localReviewUncommittedCommand()
129+
commands[Default.LOCAL_REVIEW_UNCOMMITTED] = uncommittedReview
131130
// kilocode_change end
132131

133132
for (const [name, command] of Object.entries(cfg.command ?? {})) {

0 commit comments

Comments
 (0)