(config: CodexConfig = {})
| 193 | * Keep an executor-provided config path only when it is genuinely explicit. |
| 194 | * Codex's default path is process-global, so it must be recomputed from the |
| 195 | * provider's effective env (CODEX_HOME/HOME) for each probe. |
| 196 | */ |
| 197 | function getExplicitMcpConfigPath(configPath: string | null): string | undefined { |
| 198 | if (!configPath) return undefined; |
| 199 | const processDefault = path.join(getCodexConfigDir(), 'config.toml'); |
| 200 | return path.resolve(configPath) === path.resolve(processDefault) ? undefined : configPath; |
| 201 | } |
| 202 |
nothing calls this directly
no outgoing calls
no test coverage detected