Fix CLI version path resolution - #2454
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 25, 2026, 5:09 PM ET / 21:09 UTC. ClawSweeper reviewWhat this changesThis PR changes CodexBar’s CLI version lookup to derive metadata from the running executable rather than a potentially relative Merge readiness⛔ Blocked until real behavior proof is added - 3 items remain Keep this PR open for normal review. The proposed executable-path lookup is a focused fix for an established CLI version-reporting bug, but the external PR does not yet include after-fix proof from a real relative-path or symlink invocation. Priority: P2 Review scores
Verification
How this fits togetherCodexBar’s CLI reports its version by looking next to its executable for a flowchart LR
A[CLI invocation] --> B[Resolve running executable]
B --> C[Resolve symlinks]
C --> D[Adjacent VERSION lookup]
D --> E[App bundle metadata fallback]
E --> F[Reported CLI version]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the narrow resolver change if a redacted terminal proof shows Do we have a high-confidence way to reproduce the issue? No, not at high confidence in this review: the report provides a clear source-level path—launching through a relative executable path or symlink—but the environment prevented running that path against current main. Is this the best way to solve the issue? Unclear: resolving the actual executable path is a narrow, maintainable way to avoid AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cc8da27cec92. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Proof: |
Problem
When the CLI is invoked through a relative path or symlink, version lookup used
argv[0]relative to the current working directory. This could prevent CodexBar from finding the adjacentVERSIONfile or app-bundle metadata and result in a missing or incorrect displayed version.Summary
• Resolve CLI version metadata from the actual executable path instead of relative
argv[0].• Preserve symlink-aware
VERSIONand app-bundleInfo.plistlookup.• Add regression coverage for bundle executable resolution.