$ the-wire · showcase
openai-python and openai-node release 3.7.0 and 7.9.0 with usage API updates
By RepoJournal · Filed · About OpenAI
The Python and Node SDKs shipped new minor releases today, aligning usage APIs and trimming an unlaunched field, while Codex fixed a sandbox availability probe and hardened session and approval behavior.
openai-python 3.7.0 and openai-node 7.9.0 both landed, each updating usage APIs and documentation [1][2]. Both SDKs add optional `line_items` filtering to organization cost usage requests and remove the unlaunched `compute_units` field from Responses and Chat Completions usage types [3][4]. openai-node 7.9.0 also fixes Responses WebSockets to prevent them from following redirects, a behavior change that stops responses from being transparently reassigned across origins [2]. On the Python side, 3.7.0 includes a fix that avoids repeated numpy checks for embeddings, cutting per-call overhead in embedding paths [1]. Codex 0.152.1 fixes a Guardian approval review bug so it now honors Node REPL policies provided through model metadata [5]. Related Codex hardening work scopes session MCP approvals to the specific app account link, so remembering an approval for one account no longer reuses it when the same tool is called with a different selected account [6]. Codex also improved Git root discovery for metadata enrichment by coalescing concurrent lookups for the same working directory and running probes on detached threads, preventing blocking-pool exhaustion and delayed shutdown [7]. The Windows MXC availability probe now emits `codex.windows_mxc.available` at most once per process, labeled with the probe result, which determines whether the native Windows MXC process security environment is usable when selecting a sandbox [8].
Action items
- → Upgrade openai-python to 3.7.0 and openai-node to 7.9.0 to get usage API updates and bug fixes openai/openai-python [plan]
- → Review code that uses the removed `compute_units` field in usage responses openai/openai-python [immediate]
- → Monitor Codex session approval behavior if you use multiple accounts with the same MCP tool openai/codex [monitor]
References
- [1] v3.7.0 ↗ openai/openai-python
- [2] v7.9.0 ↗ openai/openai-node
- [3] feat(api): update usage APIs and documentation ↗ openai/openai-node
- [4] feat(api): update usage APIs and documentation ↗ openai/openai-python
- [5] 0.152.1 ↗ openai/codex
- [6] Scope session MCP approvals to app account links ↗ openai/codex
- [7] Bound Git root discovery for metadata enrichment ↗ openai/codex
- [8] Record Windows MXC availability (#42094) ↗ openai/codex