Skip to content

Fix Codex JSON detection for absolute binary path#18

Open
yuejunzhao wants to merge 1 commit into
X-School-Academy:codewarefrom
yuejunzhao:fix/codex-json-absolute-path
Open

Fix Codex JSON detection for absolute binary path#18
yuejunzhao wants to merge 1 commit into
X-School-Academy:codewarefrom
yuejunzhao:fix/codex-json-absolute-path

Conversation

@yuejunzhao

Copy link
Copy Markdown

This PR fixes Codex JSON provider detection when the Codex binary is configured with an absolute path.

Previously, _provider_uses_codex_json() only returned true when provider["bin"] was exactly "codex". If the provider used an absolute path such as /home/user/.nvm/versions/node/v22.22.2/bin/codex, Codex JSONL output was not recognised as Codex output.

This change compares Path(bin).name == "codex", so both short command names and absolute Codex binary paths are supported.

Tested locally with an absolute Codex binary path and confirmed:

  • _provider_uses_codex_json() returns true
  • llm_get_json() correctly extracts the assistant message text from Codex JSONL output
  • the video workflow can generate output/final_video.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant