feat: skip LLM for /review:auto using noReply#6
Conversation
Replace the LLM-dependent toggle flow with a direct command.execute.before hook that parses arguments, toggles state, and returns the result instantly. Before: user types /review:auto off → LLM parses args → LLM calls tool → state changed After: user types /review:auto off → hook parses args → state changed → result shown Requires opencode noReply support (anomalyco/opencode#28792). Closes #5 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
以下是对 PR 的审查结论。 有条件合并 该 PR 通过添加 阻塞项
建议项
|
`args.includes("on")` would match "song", "done", etc.
Changed to exact match (`===`) or prefix with space (`startsWith("on ")`).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
不可合并 PR 方向合理(跳过 LLM 直接处理 阻塞项
建议项
|
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
所有之前的阻塞问题已在后续提交中修复。当前 HEAD 审查结论如下: 可合并 变更摘要: 阻塞项:无 建议项:
|



Summary
noReply: truetoreview:autocommand configcommand.execute.beforehook to handle toggle logic directlytoggle_auto_reviewtoolBefore
After
Dependencies
Closes #5
Test plan
opencode run --command review:auto -- "off"exits instantly, no LLM callopencode run --command review:auto -- "on"exits instantly, no LLM call🤖 Generated with Claude Code