@@ -40,7 +40,7 @@ func TestCodexProvider_LoopCommand(t *testing.T) {
4040 if cmd .Path != "/bin/codex" {
4141 t .Errorf ("LoopCommand Path = %q, want /bin/codex" , cmd .Path )
4242 }
43- wantArgs := []string {"/bin/codex" , "exec" , "--json" , "--yolo" , "-C" , "/work/dir" , "-" }
43+ wantArgs := []string {"/bin/codex" , "exec" , "--json" , "--yolo" , "--skip-git-repo-check" , "- C" , "/work/dir" , "-" }
4444 if len (cmd .Args ) != len (wantArgs ) {
4545 t .Fatalf ("LoopCommand Args len = %d, want %d: %v" , len (cmd .Args ), len (wantArgs ), cmd .Args )
4646 }
@@ -65,8 +65,14 @@ func TestCodexProvider_InteractiveCommand(t *testing.T) {
6565 if cmd .Dir != "/work" {
6666 t .Errorf ("InteractiveCommand Dir = %q, want /work" , cmd .Dir )
6767 }
68- if len (cmd .Args ) < 2 || cmd .Args [0 ] != "codex" || cmd .Args [1 ] != "my prompt" {
69- t .Errorf ("InteractiveCommand Args = %v" , cmd .Args )
68+ wantInteractiveArgs := []string {"codex" , "my prompt" }
69+ if len (cmd .Args ) != len (wantInteractiveArgs ) {
70+ t .Fatalf ("InteractiveCommand Args len = %d, want %d: %v" , len (cmd .Args ), len (wantInteractiveArgs ), cmd .Args )
71+ }
72+ for i , w := range wantInteractiveArgs {
73+ if cmd .Args [i ] != w {
74+ t .Errorf ("InteractiveCommand Args[%d] = %q, want %q" , i , cmd .Args [i ], w )
75+ }
7076 }
7177}
7278
0 commit comments