Skip to content

Commit 46c04f0

Browse files
committed
fix(cli): redirect deprecated /review to /local-review-uncommitted
- Remove subtask: true from /review to prevent primary agent subagent error - Add deprecation notice guiding users to /local-review-uncommitted or /local-review - Reuse local-review-uncommitted template for seamless fallback behavior Fixes Kilo-Org#10980
1 parent 9e2994c commit 46c04f0

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

packages/opencode/src/command/index.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,20 @@ export const layer = Layer.effect(
110110
},
111111
hints: hints(PROMPT_INITIALIZE),
112112
}
113+
// kilocode_change start - redirect deprecated /review to /local-review-uncommitted
114+
const uncommittedReview = localReviewUncommittedCommand()
113115
commands[Default.REVIEW] = {
114116
name: Default.REVIEW,
115-
description: "review changes [commit|branch|pr], defaults to uncommitted",
117+
description: "DEPRECATED: use /local-review-uncommitted instead",
116118
source: "command",
117119
get template() {
118-
return PROMPT_REVIEW.replace("${path}", ctx.worktree)
120+
return `⚠️ DEPRECATION NOTICE: The /review command is deprecated. Please use /local-review-uncommitted for uncommitted changes or /local-review for branch reviews.
121+
122+
${uncommittedReview.template}`
119123
},
120-
subtask: true,
121-
hints: hints(PROMPT_REVIEW),
124+
hints: uncommittedReview.hints,
122125
}
126+
// kilocode_change end
123127

124128
// kilocode_change start
125129
commands[Default.LOCAL_REVIEW] = localReviewCommand()

0 commit comments

Comments
 (0)