The Codex Changelog
All Episodes
Remote Alerts Over SSH with OSC 777 in Codex CLI

Remote Alerts Over SSH with OSC 777 in Codex CLI

0:00|0:00

Discover how Codex CLI 0.168.0 uses OSC 777 escape sequences to deliver native desktop notifications over SSH connections, alongside configuration tips for tmux and terminal emulators like Ghostty and Kitty. We also cover recent quality-of-life updates including multi-tab side chats, collapsible transcript turns, and local diagnostic ZIP exports.


Chapter 1

OSC 777 Notifications in Codex 0.168.0

James Turner

If you run Codex on a remote box over SSH, you've probably walked away from an approval prompt and come back twenty minutes later to find the agent just sitting there. Codex CLI 0.168.0, published November 13, 2026, has a fix for that. And thanks to Jellypod AI for sponsoring this episode.

James Turner

The change is one config key. Under the tui table in your ~/.codex/config.toml, set tui.notification_method equal to the string osc777. You can also flip it from the /config screen. The pull request is number 59256, if you want to read the source.

James Turner

Now, what does it actually do? Before this, notifications mostly leaned on desktop system alerts, audio chimes, or title bar tricks. Those depend on a notification daemon running on the same machine as the terminal. Over SSH, or inside a multiplexer, that chain often just breaks.

James Turner

With osc777, Codex doesn't call a desktop daemon at all. It writes a terminal escape sequence into standard output. The shape is escape, right bracket, 777, semicolon, notify, semicolon, a title, semicolon, a body, then a string terminator. That's it. Your terminal emulator reads the stream, spots the sequence, and raises a native desktop notification on your local machine.

James Turner

And that's why it survives SSH. The bytes travel down the same connection as your text. The terminal on your laptop is the one interpreting them, so it doesn't matter that Codex is running on a headless server three hops away. The terminals named as supporting it are Ghostty, Kitty, WezTerm, and foot.

James Turner

There's a second improvement tied to this. Approval notifications sent over OSC 777 show an expanded preview of the command, and they distinguish between two situations. One, the agent is waiting for interactive terminal input. Two, it's asking for outbound network access. Those need different reactions from you, and now the notification tells you which one before you even switch windows.

James Turner

To set it up, add this to your config. Under the tui table, notification_method equals osc777. Restart Codex, kick off a task that needs approval, and switch to another window. If your terminal supports the sequence, you should get a native alert.

James Turner

Now the caveats, and there are two worth knowing. First, terminal support. If your emulator doesn't parse OSC 777, it may silently ignore the sequence. Or, if passthrough is misconfigured, it may print the raw escape string into your screen. Not pretty.

James Turner

Second, tmux. Inside tmux, the escape codes have to reach the outer terminal, so you need set -g allow-passthrough on in your .tmux.conf. Without it, tmux swallows the sequence and you're back to missing approvals. If notifications work outside tmux but not inside, check that line first.

James Turner

This also pairs nicely with the split-pane TUI workspace, the opt-in features.tui_workspace flag. With several panes and tabs on screen, you're less likely to be watching the one that needs you. A native notification pulls your attention to the right one. That's my interpretation, not something the release notes claim, but it's the natural fit.

Chapter 2

Smaller Quality of Life Changes

James Turner

A few smaller things from the same window. In 0.169.0, the workspace gets multi-tab side chats. You can open several, switch by keyboard or mouse, and recover local side chats after restarting Codex. Those are pull requests 59784 and 60152.

James Turner

There's a new Collapse turn details toggle in the full-screen transcript. It folds completed execution activity under each prompt, keeps the responses visible, and tool logs stay searchable. That's number 60554.

James Turner

Also, pressing Ctrl+S in the terminal report editor now creates a local diagnostic ZIP file, even when remote uploads are disabled. That's handy if you're in a locked down environment and still need to share a bug report. That's 60542.

James Turner

And finally, under Sessions, then Model providers, you can browse providers and set the default for new chats right in the TUI. That's 59541. If you work over SSH, try the osc777 setting today. It's a one line change, and it might save you a lot of idle agent time.