fix(codex): avoid false project config warnings - #1000
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughProject config discovery now canonicalizes candidate paths, excludes global config aliases, and normalizes Windows path comparisons. OpenCode provider labeling now enforces approved identifier boundaries. Tests cover parent configs, symlinks, untrusted projects, and provider-name variants. ChangesProject config warnings
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant ProjectConfigDiscovery
participant Filesystem
participant GlobalConfig
ProjectConfigDiscovery->>Filesystem: Resolve candidate real paths
Filesystem-->>ProjectConfigDiscovery: Return canonical or fallback paths
ProjectConfigDiscovery->>GlobalConfig: Compare normalized identities
GlobalConfig-->>ProjectConfigDiscovery: Return global config identity
ProjectConfigDiscovery-->>ProjectConfigDiscovery: Exclude matching candidates
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@codex review |
|
Maintainer action required: GitHub is holding the fork workflows at |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Summary
$HOME/.codex/config.toml.opencodex-retryis not mislabeled as OpenCode.Verification
bun test tests/project-config-warnings.test.ts- 20 passed, 0 failed.bun run typecheck- passed.bun run prepush- 8,218 passed, 8 skipped, 0 failed; typecheck, dashboard lint, full tests, and privacy scan passed.collectProjectCodexConfigWarnings()from the real repository beneath this machine's global~/.codex/config.tomlreturns[].git diff --cached --checkand an exact two-file staged-diff review passed before commit.Checklist
Summary by CodeRabbit