Fix Codex detection across npm and package-manager installs #3

Closed
hermes wants to merge 0 commits from fix/issue-2-detect-codex-installation into main
Member

Fixes #2

Summary

  • move openai-codex from a hard pacman dependency to an optional dependency
  • keep Codex availability and minimum-version enforcement at runtime through the configured executable on PATH
  • add regression coverage for npm-style arbitrary PATH installs and Arch package metadata
  • bump the packaged recipe to pkgrel=2 and update .SRCINFO, README, and the Codex dependency note

Verification

  • PYTHONPATH=src python3 -W error -m unittest tests.test_packaging tests.test_config -v — 6 passed
  • make test — 24 passed
  • bash -n aur/PKGBUILD packaging/PKGBUILD.template — passed
  • git diff --check — passed
  • namcap /work/aur/PKGBUILD in archlinux:base — clean

Risks

The package can now be installed without Codex, by design, because pacman cannot account for npm-installed executables. Audit and doctor paths remain fail-closed when codex is missing, too old, unauthenticated, or unusable.

Review guidance

Confirm that openai-codex appears only in optdepends, .SRCINFO matches the PKGBUILD metadata, and runtime executable/version checks remain unchanged in config.py and cli.py.

Fixes #2 ## Summary - move `openai-codex` from a hard pacman dependency to an optional dependency - keep Codex availability and minimum-version enforcement at runtime through the configured executable on `PATH` - add regression coverage for npm-style arbitrary PATH installs and Arch package metadata - bump the packaged recipe to `pkgrel=2` and update `.SRCINFO`, README, and the Codex dependency note ## Verification - `PYTHONPATH=src python3 -W error -m unittest tests.test_packaging tests.test_config -v` — 6 passed - `make test` — 24 passed - `bash -n aur/PKGBUILD packaging/PKGBUILD.template` — passed - `git diff --check` — passed - `namcap /work/aur/PKGBUILD` in `archlinux:base` — clean ## Risks The package can now be installed without Codex, by design, because pacman cannot account for npm-installed executables. Audit and doctor paths remain fail-closed when `codex` is missing, too old, unauthenticated, or unusable. ## Review guidance Confirm that `openai-codex` appears only in `optdepends`, `.SRCINFO` matches the PKGBUILD metadata, and runtime executable/version checks remain unchanged in `config.py` and `cli.py`.
mathieu scheduled this pull request to auto merge when all checks succeed 2026-08-29 03:17:05 +00:00
hephaistos force-pushed fix/issue-2-detect-codex-installation from 0ff2813683 to 779a02349b 2026-08-29 03:18:27 +00:00 Compare
mathieu scheduled this pull request to auto merge when all checks succeed 2026-08-29 03:18:34 +00:00
hephaistos closed this pull request 2026-08-29 03:19:01 +00:00
mathieu approved these changes 2026-08-29 03:19:24 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
2027a/paru-llm-audit!3
No description provided.