Problem
Codex CLI execution fails with error: Not inside a trusted directory and --skip-git-repo-check was not specified
Root Cause
Codex CLI has security restrictions that prevent execution outside trusted directories. The current implementation in codex_subagent() doesn't handle this.
Solution
Add --skip-git-repo-check flag to Codex CLI commands in cli_subagent.py:
command = f'codex exec --skip-git-repo-check "{instruction}"'
Affected Code
roundtable_mcp_server/cli_subagent.py - codex_subagent() function
- Line ~100-150 where Codex CLI command is constructed
Testing
- Run
codex_subagent() with a simple instruction
- Verify it executes without trusted directory error
- Ensure project_path is properly handled when provided
Problem
Codex CLI execution fails with error:
Not inside a trusted directory and --skip-git-repo-check was not specifiedRoot Cause
Codex CLI has security restrictions that prevent execution outside trusted directories. The current implementation in
codex_subagent()doesn't handle this.Solution
Add
--skip-git-repo-checkflag to Codex CLI commands incli_subagent.py:Affected Code
roundtable_mcp_server/cli_subagent.py-codex_subagent()functionTesting
codex_subagent()with a simple instruction