mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-10 02:24:35 +08:00
feat: add --mode review support for codex CLI
- Add 'review' to mode enum in ParamsSchema and schema - Implement codex review subcommand in buildCommand (uses --uncommitted by default) - Other tools (gemini/qwen/claude) accept review mode but no operation change - Update cli-tools-usage.md with review mode documentation
This commit is contained in:
@@ -223,7 +223,21 @@ export function buildCommand(params: {
|
||||
|
||||
case 'codex':
|
||||
useStdin = true;
|
||||
if (nativeResume?.enabled) {
|
||||
if (mode === 'review') {
|
||||
// codex review mode: non-interactive code review
|
||||
// Format: codex review [OPTIONS] [PROMPT]
|
||||
args.push('review');
|
||||
// Default to --uncommitted if no specific review target in prompt
|
||||
args.push('--uncommitted');
|
||||
if (model) {
|
||||
args.push('-m', model);
|
||||
}
|
||||
// codex review uses positional prompt argument, not stdin
|
||||
useStdin = false;
|
||||
if (prompt) {
|
||||
args.push(prompt);
|
||||
}
|
||||
} else if (nativeResume?.enabled) {
|
||||
args.push('resume');
|
||||
if (nativeResume.isLatest) {
|
||||
args.push('--last');
|
||||
|
||||
Reference in New Issue
Block a user