PARAS MADAN
All writing

Latest in AI

Codex CLI 0.174: Start and Resume Cloud Chats From the Terminal

Select the Cloud environment for a new Codex chat, then verify the environment and permissions before resuming work.

Codex CLI 0.174.0 adds a terminal entry point for new and existing Cloud chats. The practical change is that you can start in the terminal without treating the terminal's local checkout as the execution environment. That distinction matters if your laptop and Cloud workspace have different branches, files or permissions.

Start with an explicit Cloud environment

The December 4 release notes list codex --cloud for a new Cloud chat and codex resume --cloud for an existing one. For a new chat, codex --cloud --env <ENV_ID> selects an environment. Use an ID that already belongs to the intended project. The release doesn't say that passing an ID creates a new environment or copies your uncommitted local files into it.

The terminal remembers a Cloud environment choice per project, according to the environment selection change. The saved choice is convenient for the next task in the same project. I would set it explicitly the first time a repository has both a scratch environment and one used for ongoing work.

Verify the workspace before asking for edits

In a harmless test repository, commit a small marker file to the branch you expect the Cloud chat to use. Start the Cloud chat and ask it to report the branch, revision and first line of that file. Compare with your intended remote revision. Then reopen the same conversation using codex resume --cloud and check that you see the earlier result. These are proposed checks, not results from a live run.

You can browse local and connected Cloud tasks together in the Agent Command Center. The release notes describe features.tui_workspace for the docked view on wide terminals. A task appearing in the same list as a local session does not make the two environments interchangeable.

Check the active chat when results differ

The release also adds a tabbed /status view with the active chat's confirmed permissions. Check that before trying to fix a permission error by changing your local settings. If the expected revision is missing, check the Cloud environment and its checkout first.

If the terminal disconnects, let history catch up before resending the prompt. The notes say it can recover missed replies and preserve a draft; they list Ctrl+R if automatic recovery fails. A second prompt is unnecessary if the original turn is already there.

I'm Paras. I work across AI, engineering and distribution.

I help developer-tool teams turn release notes into workflows people can verify on their own projects.

Book a 30-minute call