fix(cli): fix codex review command argument handling

- Fix prompt incorrectly passed to codex review with target flags (--uncommitted/--base/--commit)
- Remove unsupported --skip-git-repo-check flag from codex review command
- Fix TypeScript type error in codex-lens.ts (missing 'installed' property)

Codex CLI constraint: --uncommitted/--base/--commit and [PROMPT] are mutually exclusive.
This commit is contained in:
catlog22
2026-02-01 23:51:58 +08:00
parent e5252f8a77
commit 690597bae8
3 changed files with 8 additions and 7 deletions

View File

@@ -254,8 +254,7 @@ export function buildCommand(params: {
// codex review uses -c key=value for config override, not -m
args.push('-c', `model=${model}`);
}
// Skip git repo check by default for codex (allows non-git directories)
args.push('--skip-git-repo-check');
// Note: --skip-git-repo-check is NOT supported by codex review command
// codex review uses positional prompt argument, not stdin
useStdin = false;
if (prompt) {