GeezerVison is showing github.com — fix(codex): avoid false project config warnings by WZBbiao · Pull Request #1000 · lidge-jun/opencodex
Conversation
WZBbiao
commented
Aug 4, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
- Exclude the effective global Codex config from project-config discovery when a parent walk reaches
$HOME/.codex/config.toml.
- Compare canonical existing paths so symlink aliases are excluded as well, with Windows case normalization.
- Humanize OpenCode provider ids only at an identifier boundary so
opencodex-retry is 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.
- Running
collectProjectCodexConfigWarnings() from the real repository beneath this machine's global ~/.codex/config.toml returns [].
git diff --cached --check and an exact two-file staged-diff review passed before commit.
Checklist
- Scope stays focused and avoids unrelated cleanup.
- Docs or release notes were updated when needed (not needed; this corrects false diagnostics without changing configuration semantics).
- Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.
Summary by CodeRabbit
- Bug Fixes
- Improved project configuration discovery for symlinked paths and nested directories.
- Prevented duplicate warnings when a project configuration resolves to the global configuration.
- Improved compatibility with Windows path casing.
- Corrected provider name display so only valid OpenCode naming patterns are recognized, avoiding incorrect matches such as “OpenCodex.”
- Improved reliability when identifying configuration files reached through alternate filesystem paths.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
coderabbitai
Bot
commented
Aug 4, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 8ce4d630-52d2-41a4-89cd-214748df207b
📥 Commits
Reviewing files that changed from the base of the PR and between ebcfff4 and 988a1c0.
📒 Files selected for processing (2)
src/codex/project-config-warnings.ts
tests/project-config-warnings.test.ts
📝 Walkthrough
Walkthrough
Project 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.
Changes
Project config warnings
| Layer / File(s) |
Summary |
Canonical config discovery and validation src/codex/project-config-warnings.ts, tests/project-config-warnings.test.ts |
Discovery uses canonical real paths with fallback resolution and Windows case normalization. Candidates matching the global config are excluded. Tests cover parent traversal, symlink aliases, and explicit warning paths. |
OpenCode provider-name boundaries src/codex/project-config-warnings.ts, tests/project-config-warnings.test.ts |
OpenCode humanization accepts opencode and approved separators. Tests prevent OpenCodex and similar identifiers from being relabeled. |
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
Loading
Possibly related PRs
Suggested reviewers: ingwannu, lidge-jun, wibias
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name |
Status |
Explanation |
| Description Check |
✅ Passed |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check |
✅ Passed |
The title clearly and concisely describes the primary change: fixing false project configuration warnings in Codex. |
| Docstring Coverage |
✅ Passed |
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. Bravo.
Reviewed commit: 3ec3bb840f
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
bug
Something isn't working
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|