Codex CLI 0.136.0: Session Archiving & Clickable TUI Markdown

Codex

Codex CLI 0.136.0, released June 1, 2026, introduces session archiving: developers can archive completed or inactive threads using /archive in the TUI or codex archive/codex unarchive on the command line, keeping workspaces organized without permanently deleting history. The release also improves TUI markdown rendering so web links remain clickable via OSC 8 metadata, and cramped tables automatically reformat to readable key/value records. Reliability fixes address ChatGPT token refresh timing, Vim normal-mode editing in the TUI composer, and sandbox cleanup after interruptions.

Sources & Mentions

2 external resources covering this update


Codex CLI 0.136.0: Session Archiving, Clickable TUI Links, and Reliability Fixes

Codex CLI 0.136.0, released June 1, 2026, brings a long-requested session management capability alongside TUI rendering improvements and a targeted set of reliability fixes that polish everyday developer workflows.

Session Archiving

The headlining feature in 0.136.0 is session archiving, which gives developers a lightweight way to declutter their thread list without permanently deleting history. Sessions can be archived in two ways:

  • In the TUI: run /archive while inside a session
  • From the command line: run codex archive or codex unarchive with the session identifier

Archived sessions are protected from resume and fork operations until explicitly restored, making them safe to stash away without risk of accidentally continuing stale context. This is especially useful for developers working across multiple projects or feature branches who want to keep only active workstreams in their thread view.

Improved TUI Markdown Rendering

The TUI's markdown renderer received two meaningful updates in 0.136.0:

Clickable Web Links

Markdown links in TUI output now carry OSC 8 hyperlink metadata. Terminals that support the OSC 8 protocol, including iTerm2, Warp, and recent versions of GNOME Terminal, will render these as clickable hyperlinks rather than raw URLs. This makes it substantially easier to follow references embedded in agent responses without copy-pasting URLs into a browser.

Readable Table Formatting

When a markdown table is too wide to fit in the current terminal width, Codex now automatically switches to a key/value record layout rather than wrapping or truncating columns. Link targets are preserved in the reformatted output, so no information is lost during the layout change. This makes agent-generated tabular data useful even in narrow or split-pane terminal windows.

Reliability and Bug Fixes

ChatGPT Authentication

Token refreshes now happen proactively before a five-minute expiry window, preventing mid-session authentication failures. When a refresh token is reused (and therefore revoked), Codex now displays a clear relogin prompt rather than a generic cloud error message.

TUI Session History

Resumed TUI sessions now seed their prompt history from the previous session's transcript, so the up-arrow key correctly recalls commands from prior sessions. Multiline hook output is also now rendered as separate rows rather than collapsing into a single line.

Vim Editing Fix

Vim normal-mode editing in the TUI composer now functions correctly, resolving a regression that affected users who had enabled the Vim keybinding mode introduced in 0.129.0.

Sandbox Cleanup

Sandboxed commands clean up more reliably after interruptions or denied network attempts on Windows, reducing leftover background processes in edge cases. The Bedrock provider also now falls back to AWS_REGION or AWS_DEFAULT_REGION environment variables when the primary region configuration is absent.


Mentioned onGitHubReleasebot