Fix Termux/Android compatibility issues (DNS, locking, Android target support)#5
Fix Termux/Android compatibility issues (DNS, locking, Android target support)#5wallentx wants to merge 30 commits into
Conversation
d61ca4b to
6c3d14b
Compare
|
Hi, do you know if this will continue to work with, and maybe improve, https://github.com/termux-user-repository/tur/blob/cf26feef42820d03b7061866ee5f456324657a7a/tur/codex/build.sh ? |
The current TUR provided codex is impacted by the issue that my PR resolves, so if I get an invite to PR upstream, this should fix at least the locking issues. I had some code change logic to handle the absence of /etc/resolve.conf on android, but found that simply adding an aarch64-linux-android target made all of that unnecessary.. but if this never gets merged upstream, I could provide a patch with that original conditional logic so that this can be fully solved via patches in the TUR. Are you a maintainer, @robertkirkman ? |
Yes, I have merge permission for TUR. If you want users of Codex on TUR to get this fix, you could also submit this to https://github.com/termux-user-repository/tur/pulls and I would be able to approve it there, and then whenever this version gets merged the patch could be removed from the TUR version when it gets updated. |
4cccbca to
89ee71b
Compare
|
Upstream, they have made a prerelease for rusty-v8 that they are using to test artifacts against their release binaries https://github.com/openai/codex/releases/tag/rusty-v8-v147.4.0 Then I can mirror their upstream prerelease for rust-v8-v147.4.0 which will also include my android artifacts, and this PR might actually be suitable for upstream merging. |
- The Python SDK now supports first-class authentication, including API key login, ChatGPT browser and device-code flows, account inspection, and logout APIs. (openai#23093) - Python turn APIs are easier to use for text-only workflows: you can pass a plain string as input, and handle-based runs now return a richer `TurnResult` with collected items, timing, and usage data. (openai#23151, openai#23162) - `codex exec resume` now accepts `--output-schema`, so resumed automations can keep session context while still enforcing structured JSON output. (openai#23123) - TUI startup is faster because terminal capability probes are now batched instead of waiting on several serial checks before the first interactive frame. (openai#23175) - Remote executor registration can now use standard Codex auth instead of a separate registry credential flow. (openai#22769) - App-server turns can preserve requested image fidelity, including original-resolution local images, across user inputs and image-producing tools. (openai#20693) ## Bug Fixes - Goal continuations now stop when they hit usage limits or a repeated blocker instead of looping and burning more tokens, and completion responses phrase usage more naturally. (openai#23094, openai#22907) - The session picker is easier to trust: renamed threads now show `name (thread-id)` in resume hints, and pasted text works in the picker search box. (openai#23234, openai#23338) - Multi-session TUI flows are more reliable: in-progress MCP calls stay marked as active during replay, and elicitation replies are sent back to the thread that requested them. (openai#23236, openai#23241) - Remote sessions now keep websocket connections alive and show repo-relative diff paths again instead of `/tmp/...`-prefixed paths. (openai#23226, openai#23261) - Windows installs are more robust: `codex doctor` now detects npm-managed installs correctly, and MSVC release binaries no longer depend on separately installed VC++ runtime DLLs. (openai#22967, openai#22905) - TUI polish fixes include immediate shutdown feedback on exit, hiding the ChatGPT usage link for non-OpenAI providers, and keeping a cleared Fast tier from reappearing after side-thread resume. (openai#23323, openai#23127, openai#23121) ## Documentation - The Python SDK docs, FAQ, and examples were refreshed around the new auth flow and turn APIs, with clearer setup guidance and simpler text-only examples. (openai#22941, openai#23093, openai#23151, openai#23162) ## Chores - Memory summaries are now versioned and rebuilt when the stored format is stale, which should keep long-lived memory context leaner and more predictable. (openai#23148) ## Changelog Full Changelog: openai/codex@rust-v0.131.0...rust-v0.132.0 - openai#20693 Preserve image detail in app-server inputs @fjord-oai - openai#22891 tui: pass active permission profiles through app commands @bolinfest - openai#22924 app-server-protocol: remove PermissionProfile from API @bolinfest - openai#22941 [codex] Refine Python SDK user-facing docs @aibrahim-oai - openai#22967 Fix Windows doctor npm root probe @etraut-openai - openai#22920 core: set permission profiles from snapshots @bolinfest - openai#22939 [codex] Split Python SDK helper logic @aibrahim-oai - openai#22907 Improve goal completion usage reporting @etraut-openai - openai#23030 test: construct permission profiles directly @bolinfest - openai#22769 exec-server: support auth-backed remote executor registration @miz-openai - openai#22946 [codex] preserve MCP result meta in McpToolCallItemResult @miaolin-oai - openai#23069 multiagent: trim model-visible description, cap to 5 models @sayan-oai - openai#22913 [1 of 4] tui: route primary settings writes through app server @etraut-openai - openai#23093 sdk/python: add first-class login support @aibrahim-oai - openai#23151 [codex] Return TurnResult from Python turn handles @aibrahim-oai - openai#23147 Make multi-agent v2 tool namespace configurable @jif-oai - openai#23036 test: reduce core sandbox policy test setup @bolinfest - openai#23162 [codex] Accept string input for Python turns @aibrahim-oai - openai#23226 Add exec-server websocket keepalive @starr-openai - openai#23148 Densify and version memory summaries @jif-oai - openai#22448 [codex] Add installed-plugin mention API @xli-oai - openai#23288 chore: goal ext skeleton @jif-oai - openai#23291 Make extension lifecycle hooks async @jif-oai - openai#23293 feat: add extension event sink capability @jif-oai - openai#23295 chore: isolate thread goal storage behind GoalStore @jif-oai - openai#23301 chore: goal resumed metrics @jif-oai - openai#23305 chore: make token usage async @jif-oai - openai#23306 Emit goal update events from goal extension tools @jif-oai - openai#23121 tui: keep cleared Fast tier from reappearing after side-thread resume @etraut-openai - openai#23123 Support --output-schema for exec resume @etraut-openai - openai#23128 Fix TUI stream cleanup after turn errors @etraut-openai - openai#23127 Hide ChatGPT usage link for non-OpenAI status @etraut-openai - openai#23175 [1 of 2] Optimize TUI startup terminal probes @etraut-openai - openai#22706 [codex] Remove legacy shell output formatting paths @pakrym-oai - openai#23332 nit: read prompt @jif-oai - openai#22905 windows: link MSVC release binaries with static CRT @iceweasel-oai - openai#23323 fix(tui): show shutdown feedback on exit @fcoury-oai - openai#23261 Fix remote turn diff display roots @starr-openai - openai#22569 Simplify legacy Windows sandbox ACL persistence @iceweasel-oai - openai#23273 Upload rust full CI JUnit reports @starr-openai - openai#22893 fix: harden plugin creator sharing validation @efrazer-oai - openai#23094 goal: pause continuation loops on usage limits and blockers @etraut-openai - openai#23234 Clarify resume hints for renamed threads @etraut-openai - openai#23241 TUI: route elicitation responses to request thread @etraut-openai - openai#23236 TUI: replay in-progress MCP calls as started @etraut-openai - openai#23088 goals: keep pause transitions explicit @etraut-openai - openai#23338 feat(tui): handle paste in session picker @fcoury-oai - openai#23335 feat(app-server): add optional thread_id to experimentalFeature/list @owenlin0
(cherry picked from commit 337303c)
438ac09 to
7ead295
Compare
Termux rust-v0.132.0
…nt/wallentx_termux-target_from_release_0.132.0_a234e07f3bcf # Conflicts: # .github/workflows/rust-release.yml # codex-rs/Cargo.toml
…et_from_release_0.132.0_a234e07f3bcf checkpoint: into wallentx/termux-target from release/0.132.0 @ a234e07
Termux rust-v0.133.0-alpha.1
…nt/wallentx_termux-target_from_release_0.133.0_5180a72112f6 # Conflicts: # .github/workflows/rust-release.yml # codex-rs/Cargo.toml
…et_from_release_0.133.0_5180a72112f6 checkpoint: into wallentx/termux-target from release/0.133.0 @ 5180a72
Termux rust-v0.133.0-alpha.3
…nt/wallentx_termux-target_from_release_0.133.0_cf55321c25b5 # Conflicts: # codex-rs/Cargo.toml
…et_from_release_0.133.0_cf55321c25b5 checkpoint: into wallentx/termux-target from release/0.133.0 @ cf55321
- Goals are now enabled by default, backed by dedicated storage, and track progress across active turns. (openai#23300, openai#23685, openai#23696, openai#23732) - `codex remote-control` now runs like a foreground command, waits for readiness, reports machine status, and keeps explicit daemon-style `start`/`stop` commands. (openai#22878) - Permission profiles gained list APIs, inheritance, managed `requirements.toml` support, runtime refresh behavior, and stronger Windows sandbox integration. (openai#22928, openai#23412, openai#22270, openai#23433, openai#22931, openai#23715) - Plugin discovery is easier to inspect, with marketplace-aware list output, installed versions, visible marketplace roots, and remote collection support. (openai#23372, openai#23584, openai#23727, openai#23730) - Extensions can observe more lifecycle events, including subagent start/stop, tool execution, turn metadata, and async approval/turn processing. (openai#22782, openai#22873, openai#23309, openai#23688, openai#23690, openai#23692) ## Bug Fixes - Fixed TUI startup choosing the wrong working directory when reusing a local app-server socket. (openai#23538) - Fixed plan-mode free-form answers so modified Enter keys, like Shift+Enter, no longer submit unexpectedly. (openai#23536) - Removed stale background terminal poll events after a process exits. (openai#23231) - Preserved raw code-mode exec output unless an explicit output token limit is requested. (openai#23564) - Made AGENTS instruction loading more reliable, including local global reads and warnings for invalid UTF-8 instead of silent drops. (openai#23343, openai#23232) - Fixed app-server startup/shutdown races, empty resume/fork paths, plugin upgrade failures, and realtime v1 websocket compatibility. (openai#23516, openai#23578, openai#23400, openai#23356, openai#23771) ## Documentation - Added clearer plugin-creator guidance for updating and reinstalling local personal plugins. (openai#23542) - Expanded app-server/API docs and schema coverage around managed permission profile requirements. (openai#23433, openai#23555) ## Chores - Added a canonical Codex package archive pipeline and moved installers, npm packages, DotSlash, and SDK runtimes toward that shared layout. (openai#23513, openai#23582, openai#23586, openai#23596, openai#23635, openai#23636, openai#23637, openai#23638, openai#23786) - Fixed Linux Python runtime wheel tags so glibc-based systems can install the runtime artifacts. (openai#21812) - Improved release and CI reliability with package-builder tests, prebuilt resource packaging, DotSlash zstd handling, platform-sharded Rust tests, and Codex Linux release runners. (openai#23760, openai#23759, openai#23752, openai#23358, openai#23761) ## Changelog Full Changelog: openai/codex@rust-v0.132.0...rust-v0.133.0 - openai#23343 codex: route global AGENTS reads through LOCAL_FS @starr-openai - openai#22380 fix: default unknown tool schemas to empty schemas @celia-oai - openai#23309 Add tool lifecycle extension contributor @jif-oai - openai#23253 Reduce rust-ci-full Windows nextest timeout flakes @starr-openai - openai#22878 Improve `codex remote-control` CLI UX @owenlin0 - openai#21812 Publish Linux runtime wheels with glibc-compatible tags @aibrahim-oai - openai#22709 [codex] Trim unused TurnContextItem fields @pakrym-oai - openai#23353 Include plugin id in plugin MCP tool metadata @mzeng-openai - openai#22728 [codex] Move pending input into input queue @pakrym-oai - openai#23371 fix(tui): warn on unsupported iTerm2 pet versions @fcoury-oai - openai#23376 [codex-analytics] preserve user thread source for exec threads @marksteinbrick-oai - openai#23360 app-server: use profile ids in v2 permission params @bolinfest - openai#23384 [codex] Remove external websocket session resets @pakrym-oai - openai#22721 cleanup: Remove skill env var dependency prompting @xl-openai - openai#23389 Remove ToolSearch feature toggle @sayan-oai - openai#23080 [1 of 7] Add thread settings to UserInput @etraut-openai - openai#23081 [2 of 7] Remove UserInputWithTurnContext @etraut-openai - openai#23075 [3 of 7] Remove UserTurn @etraut-openai - openai#23396 [codex] Extract turn skill and plugin injections @pakrym-oai - openai#23356 fix(plugins): keep version upgrades additive @iceweasel-oai - openai#22508 [5 of 7] Replace OverrideTurnContext with ThreadSettings @etraut-openai - openai#22086 CI: Customize v8 building @cconger - openai#23390 Remove explicit connector tool undeferral @sayan-oai - openai#22928 core: expose permission profile picker metadata @viyatb-oai - openai#23352 Preserve context baselines for full-history agent forks @jif-oai - openai#23300 feat: dedicated goal DB @jif-oai - openai#22835 Remove ToolsConfig from tool planning @jif-oai - openai#22870 Add `body_after_prefix` auto-compact token limit scope @jif-oai - openai#23144 Defer v1 multi-agent tools behind tool search @jif-oai - openai#23409 [codex] Allow empty turn/start requests @pakrym-oai - openai#23388 [codex] Move hook request plumbing into hook runtime @pakrym-oai - openai#23405 [codex] Preserve steer input as user input @pakrym-oai - openai#22914 [2 of 4] tui: route app and skill enablement through app server @etraut-openai - openai#23397 [codex] Make contextual user fragments dyn-renderable @pakrym-oai - openai#23475 chore: namespace v1 sub-agent tools @jif-oai - openai#23493 Make `deny` canonical for filesystem permission entries @viyatb-oai - openai#22929 Harden CLI rate limit window labels @ase-openai - openai#22782 Add SubagentStart hook @abhinav-oai - openai#23513 build: add Codex package builder @bolinfest - openai#23369 Make local environment optional in EnvironmentManager @starr-openai - openai#23327 Refactor exec-server websocket pump @starr-openai - openai#23536 fix(tui): preserve modified enter in plan questions @fcoury-oai - openai#23400 Fix empty rollout path app-server handling @wiltzius-openai - openai#23551 Route local-only app-server gating through processors @starr-openai - openai#23372 Split plugin install discovery into list and request tools @mzeng-openai - openai#23516 fix: serialize unix app-server startup @efrazer-oai - openai#22169 [codex] Honor role-defined spawn service tiers @aibrahim-oai - openai#23555 Add CUA requirements subsection for locked computer use @adams-oai - openai#23538 Fix: TUI starting in wrong CWD @canvrno-oai - openai#23526 build: fetch rg for Codex packages @bolinfest - openai#23573 Remove unused ARC monitor path @mzeng-openai - openai#23576 test: fix multi-agent service tier assertion @bolinfest - openai#23541 build: default Codex package target and output @bolinfest - openai#23358 Fan out rust-ci-full nextest by platform @starr-openai - openai#23593 feat: expose codex-app-server version flag @bolinfest - openai#23412 feat: add permission profile list api @viyatb-oai - openai#23535 Move plugin and skill warmup into session startup @aibrahim-oai - openai#23231 Fix stale background terminal poll events @etraut-openai - openai#23564 [codex] Preserve raw code-mode exec output by default @aibrahim-oai - openai#23232 Warn on invalid UTF-8 in AGENTS.md files @etraut-openai - openai#23584 feat: Add vertical remote plugin collection support @xl-openai - openai#23586 build: package prebuilt Codex entrypoints @bolinfest - openai#23582 ci: build Codex package archives in release workflow @bolinfest - openai#23596 runtime: detect Codex package layout @bolinfest - openai#23500 add encryptedcontent to functioncalloutput @sayan-oai - openai#23633 Migrate exec-server remote registration to environments @richardopenai - openai#23451 Add timeout for remote compaction requests @jif-oai - openai#23667 feat: rename 1 @jif-oai - openai#23669 feat: rename 3 @jif-oai - openai#23668 feat: rename 2 @jif-oai - openai#23675 fix: main @jif-oai - openai#23685 feat: wire goal extension tools to the dedicated goal store @jif-oai - openai#23690 feat: async approval contrib @jif-oai - openai#23692 feat: async turn item process @jif-oai - openai#23688 feat: expose turn-start metadata to extensions @jif-oai - openai#23605 [codex] Hide deferred tools from code mode prompt @pakrym-oai - openai#23634 runtime: use install context for bundled bwrap @bolinfest - openai#23635 release: publish Codex package archive checksums @bolinfest - openai#23592 feat: Add btw alias for side slash command @anp-oai - openai#23696 feat: account active goal progress in the goal extension @jif-oai - openai#23176 [2 of 2] Start fresh TUI thread in background @etraut-openai - openai#23578 fix(app-server): speed up shutdown @fcoury-oai - openai#22896 windows-sandbox: add resolved permissions helper @bolinfest - openai#23502 Add thread/settings/update app-server API @etraut-openai - openai#23507 Sync TUI thread settings through app server @etraut-openai - openai#23666 feat: add turn_id and truncation_policy to extension tool calls @jif-oai - openai#23636 install: consume Codex package archives @bolinfest - openai#23717 [codex] Preserve failed goal accounting flushes @jif-oai - openai#23655 add standalone websearch api client @sayan-oai - openai#23724 Fix thread settings clippy failure @etraut-openai - openai#23637 npm: ship platform packages in Codex package layout @bolinfest - openai#23729 fix(config): resolve cloud requirements deny-read globs @viyatb-oai - openai#23638 dotslash: publish Codex entrypoints from package archives @bolinfest - openai#22918 windows-sandbox: send permission profiles to elevated runner @bolinfest - openai#23735 windows-sandbox: share bundled helper lookup @bolinfest - openai#18868 Add MITM hook config model @evawong-oai - openai#22270 feat(permissions): resolve permission profile inheritance @viyatb-oai - openai#23719 cli: add strict config to exec-server @bolinfest - openai#23542 [skills] Create a personal update flow for plugin creator @caseychow-oai - openai#21272 Support compact SessionStart hooks @abhinav-oai - openai#20659 Wire MITM hooks into runtime enforcement @evawong-oai - openai#23752 release: use DotSlash zstd for package archives @bolinfest - openai#22923 windows-sandbox: drive write roots from resolved permissions @bolinfest - openai#23761 chore: use Codex Linux runners for Rust releases @bolinfest - openai#23759 release: package prebuilt resource binaries @bolinfest - openai#23167 windows-sandbox: feed setup from resolved permissions @bolinfest - openai#22931 core: refresh active permission profiles at runtime @viyatb-oai - openai#22873 Add SubagentStop hook @abhinav-oai - openai#23727 feat(plugins): tabulate plugin list output @caseychow-oai - openai#23732 Make goals feature on by default and no longer experimental @etraut-openai - openai#23537 Honor client-resolved service tier defaults @shijie-oai - openai#23771 [codex] Fix realtime v1 websocket compatibility @guinness-oai - openai#23764 Remove Windows sandbox resource stamping @iceweasel-oai - openai#23730 [codex] List marketplaces considered by plugin discovery @caseychow-oai - openai#23760 ci: run Codex package builder tests @bolinfest - openai#23737 [codex] Add plugin id to MCP tool call items @mzeng-openai - openai#18240 Use named MITM permissions config @evawong-oai - openai#23774 [codex] Reject read-only fallback with approvals disabled @viyatb-oai - openai#23714 windows-sandbox: add profile-native elevated APIs @bolinfest - openai#23433 feat: support managed permission profiles in requirements.toml @viyatb-oai - openai#23715 core: pass permission profiles to Windows runner @bolinfest - openai#23786 sdk: launch packaged Codex runtimes @bolinfest
Termux rust-v0.133.0
…nt/wallentx_termux-target_from_release_0.133.0_7bcabc22ebc3
…et_from_release_0.133.0_7bcabc22ebc3 checkpoint: into wallentx/termux-target from release/0.133.0 @ 7bcabc2


Codex CLI currently fails on native Termux/Android due to DNS resolution and unsupported lock semantics in this environment. This PR adds compatibility adjustments that allow:
The changes preserve existing behavior on non-Android platforms.
Changes
DNS/Resolver fixes
$PREFIX/etc/resolv.conf,Graceful handling of unsupported locks
std::io::ErrorKind::Unsupportedfromtry_lock()without failing.Android build target support in CI
To produce and validate builds targeting Android (e.g. native Termux):
aarch64-linux-androidtarget in GitHub Actions.CC, andARfor the Android target.keyringtarget dependencies for Android.This enables CI to build Android artifacts that include the compatibility adjustments above, which aids testing and validation.
Validation
just fmtcargo test