﻿---
title: "Windows 上 /ps 空列表，多半是 unified_exec 没开"
summary: "macOS/Linux 默认走 PTY 后台终端。Windows 默认关。旧键 experimental_use_unified_exec_tool 已弃用。"
category: debug
level: intermediate
surfaces: [cli]
tags: ["unified_exec", "/ps", "Windows"]
canonical: /tips/unified-exec-and-ps/
---

# Windows 上 /ps 空列表，多半是 unified_exec 没开

macOS/Linux 默认走 PTY 后台终端。Windows 默认关。旧键 experimental_use_unified_exec_tool 已弃用。

`/ps` 列出后台终端和最近几行输出；`/stop`（别名 `/clean`）停掉当前会话的后台进程。官方说明：只有 `features.unified_exec` 生效时才会出现这些终端，否则列表经常是空的。

```bash
codex features list
codex features enable unified_exec
```

或写入用户配置后新开会话：

```toml
[features]
unified_exec = true
```

一次性 `codex --enable unified_exec` 只覆盖这一程。有人在 Windows 上发现 `--enable` 之后 `features list` 仍显示 `false`，因为平台默认关；要持久开必须写进 `config.toml` 或用 `codex features enable`。

旧键 `experimental_use_unified_exec_tool` 已经弃用。CI 或拿不到 PTY 的环境可以保持关闭。Windows 若命令跑不起来，先对照沙箱日志，不要只怪这个开关。

## 来源

- [OpenAI · Developer commands](https://learn.chatgpt.com/docs/developer-commands)
- [OpenAI · Config reference](https://developers.openai.com/codex/config-reference)
