Skip to content

fix(agent): skip git repo checks for codex CLI automation#51

Closed
ernestoacevedo wants to merge 2 commits intoMiniCodeMonkey:mainfrom
ernestoacevedo:main
Closed

fix(agent): skip git repo checks for codex CLI automation#51
ernestoacevedo wants to merge 2 commits intoMiniCodeMonkey:mainfrom
ernestoacevedo:main

Conversation

@ernestoacevedo
Copy link
Copy Markdown

Summary

This PR adds --skip-git-repo-check to the non-interactive Codex CLI commands used by the agent provider.

Changes

  • update LoopCommand to invoke codex exec with --skip-git-repo-check
  • update ConvertCommand to include the same flag
  • update FixJSONCommand to include the same flag
  • expand tests to assert the new flag is present in command args
  • tighten the InteractiveCommand test to validate exact args

Why

Some automated agent flows run in working directories that should not be blocked by Git repository validation. This change keeps those CLI executions working without changing the interactive command path.

Validation

  • go test ./internal/agent

MiniCodeMonkey added a commit that referenced this pull request Mar 20, 2026
Non-interactive codex exec calls should not be blocked by git repo
validation. Also tightens InteractiveCommand test to use exact arg matching.

Based on #51 by @ernestoacevedo, trimmed to current main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant