Skip to content

Commit aeba636

Browse files
committed
fix(codex): add version_command for uv tool list detection
Problem: - codex upgrade appears successful but reports "version unchanged" - Running codex --version starts web server and hangs - Version detection times out waiting for command to exit - Tool installed via uv tool but version undetectable Root cause: - codex is a web server application, not a CLI utility - Default --version flag launches full HTTP server on port 9810 - Standard version detection hangs indefinitely - Catalog notes mentioned issue but no solution implemented Solution: - Add version_command: "uv tool list | grep '^codex ' | awk '{print $2}'" - Query uv tool registry instead of running binary - Returns version without starting server - Command exits immediately with clean output Technical details: - uv tool list shows: "codex v1.8.17" - Grep isolates codex line, awk extracts version field - Detection uses same version_command fallback as ruby-build - Works for all uv-installed tools with non-standard version flags Verification: - codex: installed 1.8.17 === latest 1.8.17 ✅ - No server startup during version check - Upgrade detection now accurate
1 parent 2e32ad8 commit aeba636

2 files changed

Lines changed: 14 additions & 13 deletions

File tree

catalog/codex.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"homepage": "https://github.com/codex-cli/codex",
66
"package_name": "codex",
77
"python_version": "3.13",
8-
"notes": "Codex is a web server app - use uv tool list for version detection. Running codex --version starts the full server and hangs."
8+
"version_command": "uv tool list | grep '^codex ' | awk '{print $2}'",
9+
"notes": "Codex is a web server app - running codex --version starts the full server. Use uv tool list for version detection."
910
}

tools_snapshot.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"__meta__": {
3-
"collected_at": "2025-11-06T10:57:25Z",
3+
"collected_at": "2025-11-06T11:04:19Z",
44
"count": 1,
5-
"created_at": "2025-11-06T10:57:25Z",
5+
"created_at": "2025-11-06T11:04:19Z",
66
"offline": false,
77
"partial_failures": 0,
88
"schema_version": 1
@@ -11,16 +11,16 @@
1111
{
1212
"category": "other",
1313
"hint": "",
14-
"installed": "20251023",
15-
"installed_method": "version_command",
16-
"installed_version": "20251023",
17-
"latest_upstream": "20251023",
18-
"latest_url": "https://github.com/rbenv/ruby-build/releases/tag/20251023",
19-
"latest_version": "",
20-
"status": "UNKNOWN",
21-
"tool": "ruby-build",
22-
"tool_url": "https://github.com/rbenv/ruby-build",
23-
"upstream_method": "gh"
14+
"installed": "1.8.17",
15+
"installed_method": "uv",
16+
"installed_version": "1.8.17",
17+
"latest_upstream": "1.8.17",
18+
"latest_url": "https://pypi.org/project/codex/",
19+
"latest_version": "1.8.17",
20+
"status": "UP-TO-DATE",
21+
"tool": "codex",
22+
"tool_url": "https://pypi.org/project/codex/",
23+
"upstream_method": "pypi"
2424
}
2525
]
2626
}

0 commit comments

Comments
 (0)