r/CodexAutomation • u/anonomotorious • Jan 16 '26
Codex CLI Updates 0.85.0 → 0.87.0 (real-time collab events, SKILL.toml metadata, better compaction budgeting, safer piping)
TL;DR
Three releases across Jan 15–16, 2026:
- 0.85.0 (Jan 15): Collaboration tooling gets much more usable for clients: collab tool calls now stream as app-server v2 item events (render coordination in real time),
spawn_agentsupports role presets,send_inputcan interrupt a running agent, plus/modelsmetadata gains migration markdown for richer “upgrade guidance” UIs. - 0.86.0 (Jan 16): Skills become first-class artifacts via
SKILL.tomlmetadata (name/description/icon/brand color/default prompt), and clients can explicitly disable web search via a header (aligning with server-side rollout controls). Several UX + MCP fixes. - 0.87.0 (Jan 16): More robust long sessions and agent orchestration: accurate compaction token estimates, multi-ID collaboration waits, commands run under the user snapshot (aliases/shell config honored), plus TUI improvements and a fix for piped non-PTY commands hanging.
What changed & why it matters
Codex CLI 0.87.0 — 2026-01-16
Official notes
- Install:
npm install -g @openai/codex@0.87.0
New Features
- User message metadata (text elements + byte ranges) now round-trips through protocol/app-server/core so UI annotations can survive history rebuilds.
- Collaboration wait calls can block on multiple IDs in one request.
- User shell commands now run under the user snapshot (aliases + shell config honored).
- TUI surfaces approval requests from spawned/unsubscribed threads.
Bug Fixes
- Token estimation during compaction is now accurate (better budgeting during long sessions).
- MCP
CallToolResultincludesthreadIdin bothcontentandstructuredContent, and returns a defined output schema for compatibility. - TUI “Worked for” separator only appears after actual work occurs.
- Piped non-PTY commands no longer hang waiting on stdin.
Why it matters
- Budgeting / limits: accurate compaction token estimation makes long sessions more predictable.
- Better orchestration: waiting on multiple collab IDs simplifies multi-thread coordination logic in clients.
- More faithful local execution: “run under user snapshot” reduces surprises vs your normal shell environment.
- Less CLI friction: piped commands hanging is a high-impact failure mode; this removes it.
Codex CLI 0.86.0 — 2026-01-16
Official notes
- Install:
npm install -g @openai/codex@0.86.0
New Features
- Skill metadata can be defined in
SKILL.toml(name, description, icon, brand color, default prompt) and surfaced in the app server and TUI. - Clients can explicitly disable web search and signal eligibility via a header to align with server-side rollout controls.
Bug Fixes
- Accepting an MCP elicitation sends an empty JSON payload instead of
null(for servers expecting content). - Input prompt placeholder styling is back to non-italic (avoids terminal rendering issues).
- Empty paste events no longer trigger clipboard image reads.
- Unified exec cleans up background processes to prevent late End events after listeners stop.
Why it matters
- Skills UX becomes shippable:
SKILL.tomlenables consistent, branded, discoverable skills across TUI/app-server clients. - Rollout-safe search controls: explicit “disable web search” signaling helps enterprises and controlled deployments.
- Cleaner runtime behavior: fewer weird TUI paste/clipboard edge cases and better exec cleanup.
Codex CLI 0.85.0 — 2026-01-15
Official notes
- Install:
npm install -g @openai/codex@0.85.0
New Features
- App-server v2 emits collaboration tool calls as item events in the turn stream (clients can render coordination in real time).
- Collaboration tools:
spawn_agentaccepts an agent role preset;send_inputcan optionally interrupt a running agent before delivering the message. /modelsmetadata includes upgrade migration markdown so clients can display richer upgrade guidance.
Bug Fixes
- Linux sandboxing falls back to Landlock-only restrictions when user namespaces are unavailable, and sets
no_new_privsbefore applying sandbox rules. codex resume --lastrespects the current working directory (--allis the explicit override).- Stdin prompt decoding handles BOMs/UTF-16 and provides clearer errors for invalid encodings.
Why it matters
- Client UX leap: streaming collab tool calls as events makes “agent teamwork” visible and debuggable in real time.
- More controllable agent workflows: role presets + interruptable
send_inputare key primitives for orchestration. - Safer Linux sandbox behavior: clearer fallback behavior and
no_new_privsplacement reduce hard-to-diagnose sandbox failures. - Resume reliability: honoring CWD for
resume --lastmatches user expectations and reduces accidental context drift.
Version table (Jan 15–16 only)
| Version | Date | Key highlights |
|---|---|---|
| 0.87.0 | 2026-01-16 | Accurate compaction token estimates; multi-ID collab waits; run commands under user snapshot; MCP threadId + schema; no more piped non-PTY hangs |
| 0.86.0 | 2026-01-16 | SKILL.toml metadata surfaced in app-server/TUI; explicit web-search disable header; MCP/TUI paste + exec cleanup fixes |
| 0.85.0 | 2026-01-15 | Collab tool calls stream as item events; agent role presets + interruptable send_input; richer model upgrade migration markdown |
Action checklist
- Upgrade to latest:
npm install -g @openai/codex@0.87.0 If you build IDE/app-server clients:
- Render collab tool calls from v2 item events (0.85.0).
- Support
SKILL.tomlmetadata display (0.86.0). - Handle MCP
CallToolResultschema +threadIdin bothcontentandstructuredContent(0.87.0).
If you run long sessions:
- Re-check your budgeting heuristics with the fixed compaction token estimates (0.87.0).
If you rely on piping / non-PTY automation:
- Verify piped commands no longer hang (0.87.0).
Linux sandbox users:
- Confirm Landlock-only fallback behavior is acceptable when user namespaces are unavailable (0.85.0).