@mmmbuto/codex-cli-termux 0.58.3-termux → 0.60.1-termux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +134 -34
  2. package/bin/codex +0 -0
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -6,11 +6,8 @@
6
6
  [![downloads](https://img.shields.io/npm/dt/@mmmbuto/codex-cli-termux?style=flat-square)](https://www.npmjs.com/package/@mmmbuto/codex-cli-termux)
7
7
  [![ko-fi](https://img.shields.io/badge/☕_Support-Ko--fi-FF5E5B?style=flat-square&logo=ko-fi)](https://ko-fi.com/dionanos)
8
8
 
9
- > [!TIP]
10
- > **Enjoying Codex on mobile?**
11
- > This project requires ~20 hours/month for ARM64 compilation, upstream tracking, and compatibility patches.
12
- > [Support development →](https://ko-fi.com/dionanos)
13
-
9
+ ---
10
+ > 💡 Like CLI tools? Check out my next project, **NexusCLI** an open, developer-focused AI terminal cockpit: https://github.com/DioNanos/NexusCLI
14
11
  ---
15
12
 
16
13
  ## What This Is
@@ -38,6 +35,10 @@ We only apply patches for issues that:
38
35
 
39
36
  **Current patches**: See [patches/](./patches/) directory for full documentation.
40
37
 
38
+ Serve aiuto per debuggare gli avvisi di upgrade? Consulta
39
+ [docs/termux-upgrade-checks.md](./docs/termux-upgrade-checks.md) per cause note e
40
+ strategie di fix.
41
+
41
42
  **Found an issue?** Well-documented bug reports with reproduction steps are welcome! Open an [issue](https://github.com/DioNanos/codex-termux/issues).
42
43
 
43
44
  ---
@@ -79,7 +80,7 @@ npm install -g @mmmbuto/codex-cli-termux
79
80
 
80
81
  ```bash
81
82
  codex --version
82
- # Output: codex-cli 0.58.0
83
+ # Output: codex-tui 0.60.1
83
84
 
84
85
  codex login
85
86
  # Opens browser for authentication
@@ -111,6 +112,84 @@ For full documentation, see [OpenAI Codex docs](https://github.com/openai/codex)
111
112
 
112
113
  ---
113
114
 
115
+ ## 🧪 Testing & Validation
116
+
117
+ ### Automated Test Suite
118
+
119
+ This project includes a comprehensive test suite specifically designed for Termux validation:
120
+
121
+ **Test Suite**: [`CODEX_TEST_SUITE.md`](./CODEX_TEST_SUITE.md)
122
+
123
+ **Coverage**:
124
+ - ✅ **74 automated tests** across 11 categories
125
+ - ✅ **10 Termux-specific tests** validating all 8 compatibility patches
126
+ - ✅ File operations, shell execution, environment detection
127
+ - ✅ Android permissions, library paths, package manager
128
+ - ✅ Error handling and edge cases
129
+
130
+ **How to use**:
131
+
132
+ ```bash
133
+ # Start Codex
134
+ codex
135
+
136
+ # Feed the test suite
137
+ > Read and execute all tests in https://github.com/DioNanos/codex-termux/blob/main/CODEX_TEST_SUITE.md
138
+ ```
139
+
140
+ Codex will automatically:
141
+ 1. Execute all 74 tests sequentially
142
+ 2. Report PASS/FAIL for each test
143
+ 3. Generate a final summary with:
144
+ - Total passed/failed counts
145
+ - Category breakdowns
146
+ - Critical failures (if any)
147
+ - Overall verdict
148
+
149
+ **Test Categories**:
150
+ 1. System Information (3 tests)
151
+ 2. File Operations (8 tests)
152
+ 3. Search & Discovery (3 tests)
153
+ 4. Shell Execution (4 tests)
154
+ 5. Text Processing (2 tests)
155
+ 6. Web & Network (2 tests - optional)
156
+ 7. Git Operations (2 tests - optional)
157
+ 8. AI Capabilities (3 tests)
158
+ 9. Error Handling (3 tests)
159
+ 10. **Termux-Specific (10 tests)** ⭐ - Validates all Android patches
160
+ 11. Cleanup (1 test)
161
+
162
+ **Termux-Specific Tests Include**:
163
+ - ✅ Environment paths (`$PREFIX`, `$HOME`, `$LD_LIBRARY_PATH`)
164
+ - ✅ Shell detection (bash/zsh on Android)
165
+ - ✅ Package manager (`pkg` commands)
166
+ - ✅ Storage access (`/sdcard`, `~/storage`)
167
+ - ✅ Android permissions and sandbox isolation
168
+ - ✅ Library path preservation (Patch #8 validation)
169
+ - ✅ Browser opener availability (Patch #1 validation)
170
+ - ✅ Architecture detection (aarch64/ARM64)
171
+
172
+ **Success Criteria**:
173
+ - All System, Files, Shell, and Termux tests must pass
174
+ - At least 80% overall pass rate
175
+ - No critical crashes
176
+
177
+ **Example Report**:
178
+ ```
179
+ CODEX CLI TEST SUITE - FINAL REPORT
180
+ ====================================
181
+ Total Tests: 74
182
+ ✅ Passed: 71
183
+ ❌ Failed: 1
184
+ ⚠️ Skipped: 2 (WebSearch, Git - optional)
185
+
186
+ Termux-Specific: 10/10 passed ✅
187
+
188
+ VERDICT: ✅ PASS
189
+ ```
190
+
191
+ ---
192
+
114
193
  ## 🔨 Building from Source
115
194
 
116
195
  See [BUILDING.md](./BUILDING.md) for compilation instructions.
@@ -153,7 +232,7 @@ See [LICENSE](./LICENSE) file for details.
153
232
 
154
233
  ---
155
234
 
156
- **Version**: Based on OpenAI Codex 0.58.0 (includes GPT-5.1 support)
235
+ **Version**: Based on OpenAI Codex 0.60.1 (includes GPT-5.1 MAX support)
157
236
  **Platform**: Android Termux ARM64
158
237
  **Maintained**: Community-driven, not affiliated with OpenAI
159
238
 
@@ -161,41 +240,62 @@ See [LICENSE](./LICENSE) file for details.
161
240
 
162
241
  ## 📜 Changelog
163
242
 
164
- ### v0.58.0-termux (2025-11-13)
243
+ ### v0.60.1-termux (2025-11-20)
244
+
245
+ **Major Update**: Synced with upstream OpenAI Codex rust-v0.60.1 (250+ commits)
246
+
247
+ **Upstream Features**:
248
+ - 🤖 **GPT-5.1 MAX Support**: New MAX model with enhanced capabilities and performance
249
+ - 🔧 **App-Server Protocol**: Enhanced v2 APIs for thread management
250
+ - ⚡ **Performance Optimizations**: Improved TUI responsiveness and memory usage
251
+ - 🪟 **Windows Sandbox**: Enhanced security features (not applicable to Termux)
252
+ - 🐛 **Bug Fixes**: 250+ commits with stability improvements and fixes
165
253
 
166
- Synced with upstream OpenAI Codex rust-v0.58.0 (62 commits)
254
+ **Termux-Specific**:
255
+ - ✅ **All 8 patches preserved and verified**
256
+ - ✅ **Patch #8 updated**: Shell detection refactored for upstream changes
257
+ - ✅ **Build optimized for 8GB RAM**: Compiled successfully on ROG Phone 3
258
+ - ✅ **Binary size**: 37MB (24% smaller than 0.58.4)
259
+ - ✅ **Test Suite**: 74 automated tests including 10 Termux-specific validations
167
260
 
168
- **Major features:**
169
- - 🤖 **GPT-5.1 Support**: New model family (gpt-5.1-codex, gpt-5.1-codex-mini, gpt-5.1)
170
- - 🧠 **Adaptive Reasoning**: Configurable effort levels (Low, Medium, High)
171
- - ⌨️ **Enhanced TUI**: Job control, improved navigation, better model picker
172
- - 🔧 **Shell Detection**: Centralized command generation for unified exec
173
- - 📊 **App-server v2**: Thread/Turn APIs improvements
261
+ **Patches Validated**:
262
+ 1. Browser login (`termux-open-url`)
263
+ 2. RAM optimizations (`lto=false`, `codegen-units=16`)
264
+ 3. Android shell detection (`$SHELL` env var)
265
+ 4. Android sandbox disabled
266
+ 5. LD_* environment variables preserved
267
+ 6. ✅ Auto-update URL (`DioNanos/codex-termux`)
268
+ 7. ✅ Version parser (`-termux` suffix support)
269
+ 8. ✅ NPM package name (`@mmmbuto/codex-cli-termux`)
174
270
 
175
- **Termux-specific:**
176
- - ✅ All Android patches preserved and verified working
177
- - ✅ Browser login fix (termux-open-url)
178
- - ✅ RAM optimizations (lto=false, codegen-units=16)
179
- - ✅ Auto-update for @mmmbuto/codex-cli-termux
271
+ **Breaking Changes**: None - fully backward compatible
180
272
 
181
- Full upstream changelog: https://github.com/openai/codex/compare/rust-v0.57.0...rust-v0.58.0
273
+ **Testing**: Comprehensive test suite with 74 tests available at [`CODEX_TEST_SUITE.md`](./CODEX_TEST_SUITE.md)
274
+
275
+ Full upstream changelog: https://github.com/openai/codex/compare/rust-v0.58.0...rust-v0.60.1
182
276
 
183
277
  ---
184
278
 
185
- ### v0.57.0-termux (2025-11-10)
279
+ ### v0.58.4-termux (2025-11-14)
280
+
281
+ **Critical bugfix**: Auto-update detection now working
282
+
283
+ **Fixes:**
284
+ - 🐛 **Auto-update detection restored** - Fixed version parser losing `-termux` suffix support after upstream merge
285
+ - 🐛 **Tag parsing fixed** - `extract_version_from_latest_tag` now supports both `rust-v*` (upstream) and `v*-termux` (fork) formats
286
+ - 🔧 **Test coverage added** - New test for Termux tag format validation
186
287
 
187
- Synced with upstream OpenAI Codex rust-v0.57.0 (25 commits)
288
+ **Technical details:**
289
+ - **Root cause**: v0.58.0 upstream merge overwrote previous `-termux` suffix fix in `parse_version()`
290
+ - **Additional issue**: New upstream code only accepted `rust-v` prefix, rejecting our `v0.58.0-termux` tags
291
+ - **Impact**: `~/.config/codex/version.json` was never created, preventing "Update available" banner
292
+ - **Solution**: Re-applied `-termux` suffix support + added `v*` prefix support in tag parser
188
293
 
189
- **Upstream improvements:**
190
- - ⌨️ **TUI Navigation**: CTRL-n / CTRL-p for navigating slash commands, files, history
191
- - 🔧 **Unified Exec**: Improved safe commands handling, process group timeout fixes
192
- - 🪟 **WSL Support**: Path normalization for Windows Subsystem for Linux
193
- - 🚀 **App-server v2**: New Thread/Turn APIs, account endpoints
194
- - 🧹 **Refactoring**: Terminal cleanup (deprecated flush logic removed)
294
+ **Affected versions**: v0.58.0 through v0.58.3 had broken auto-update detection.
195
295
 
196
- **Termux-specific:**
197
- - ✅ Android auto-update disabled (manual update instructions shown)
198
- - ✅ `termux-open-url` for browser login (ndk-context crash fix maintained)
199
- - ✅ RAM optimizations for 16GB devices (lto=false, codegen-units=16)
296
+ **Termux patches (4 total):**
297
+ - ✅ **Patch #1**: Browser login fix (`termux-open-url`)
298
+ - ✅ **Patch #2**: RAM optimizations (`lto=false`, `codegen-units=16`)
299
+ - ✅ **Patch #3**: Auto-update URL (`@mmmbuto/codex-cli-termux`)
300
+ - ✅ **Patch #4**: Auto-update detection (this release)
200
301
 
201
- Full upstream changelog: https://github.com/openai/codex/compare/rust-v0.56.0...rust-v0.57.0
package/bin/codex CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mmmbuto/codex-cli-termux",
3
- "version": "0.58.3-termux",
4
- "description": "OpenAI Codex CLI v0.58.0 with GPT-5.1 support, pre-compiled for Android Termux (ARM64)",
3
+ "version": "0.60.1-termux",
4
+ "description": "OpenAI Codex CLI v0.60.1 with GPT-5.1 MAX support, pre-compiled for Android Termux (ARM64)",
5
5
  "type": "module",
6
6
  "main": "bin/codex.js",
7
7
  "bin": {