TUI renders an empty row when a separator space lands at the wrap boundary
What version of Codex CLI is running?
codex-cli 0.147.0
What subscription do you have?
ChatGPT Pro
Which model were you using?
gpt-5.6-sol
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What terminal emulator and version are you using (if applicable)?
Windows Terminal, Herdr 0.8.0 using ConPTY, PowerShell 7.6.4
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1786193642s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.147.0-fork.1",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "C:\\Users\\jonat\\.codex\\app-server-control\\app-server-control.sock",
"daemon state dir": "C:\\Users\\jonat\\.codex\\app-server-daemon",
"mode": "ephemeral",
"pid file": "C:\\Users\\jonat\\.codex\\app-server-daemon\\app-server.pid (missing)",
"settings": "C:\\Users\\jonat\\.codex\\app-server-daemon\\settings.json (missing)",
"status": "not running",
"update-loop pid file": "C:\\Users\\jonat\\.codex\\app-server-daemon\\app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 0
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "auth is configured",
"details": {
"auth file": "C:\\Users\\jonat\\.codex\\auth.json",
"auth storage mode": "File",
"stored API key": "false",
"stored ChatGPT tokens": "true",
"stored agent identity": "false",
"stored auth mode": "chatgpt"
},
"remediation": null,
"durationMs": 0
},
"config.load": {
"id": "config.load",
"category": "config",
"status": "ok",
"summary": "config loaded",
"details": {
"CODEX_HOME": "C:\\Users\\jonat\\.codex",
"config.toml": "C:\\Users\\jonat\\.codex\\config.toml",
"config.toml parse": "ok",
"cwd": "C:\\Users\\jonat",
"enabled feature flags": "<redacted>",
"feature flag overrides": "unified_exec=true, memories=true, default_mode_request_user_input=true",
"feature flags enabled": "42",
"log dir": "C:\\Users\\jonat\\.codex\\log",
"mcp servers": "4",
"model": "gpt-5.6-sol",
"model provider": "openai",
"sqlite home": "C:\\Users\\jonat\\.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.55.0.windows.2",
"details": {
"PATH git #1": "C:\\Program Files\\Git\\cmd\\git.exe",
"PATH git entries": "1",
"git build options": "git version 2.55.0.windows.2; cpu: x86_64; built from commit: c8dff95af823bd04181a583c03f3fbb954551c30; sizeof-long: 4; sizeof-size_t: 8; shell-path: D:/git-sdk-64-build-installers/usr/bin/sh; rust: disabled; feature: fsmonitor--daemon; gettext: enabled; libcurl: 8.21.0; OpenSSL: OpenSSL 3.5.7 9 Jun 2026; zlib: 1.3.2; SHA-1: SHA1_DC; SHA-256: SHA256_BLK; default-ref-format: files; default-hash: sha1",
"git exec path": "C:/Program Files/Git/mingw64/libexec/git-core",
"git version": "git version 2.55.0.windows.2",
"repo detected": "false",
"selected git": "C:\\Program Files\\Git\\cmd\\git.exe"
},
"remediation": null,
"durationMs": 194
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "C:\\Users\\jonat\\AppData\\Roaming\\npm\\codex",
"PATH codex #2": "C:\\Users\\jonat\\AppData\\Roaming\\npm\\codex.cmd",
"PATH codex entries": "2",
"current executable": "C:\\Users\\jonat\\AppData\\Roaming\\npm\\node_modules\\@jjliebig\\codex-plus-plus\\node_modules\\@jjliebig\\codex-plus-plus-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin\\codex.exe",
"install context": "npm (package C:\\Users\\jonat\\AppData\\Roaming\\npm\\node_modules\\@jjliebig\\codex-plus-plus\\node_modules\\@jjliebig\\codex-plus-plus-win32-x64\\vendor\\x86_64-pc-windows-msvc, bin C:\\Users\\jonat\\AppData\\Roaming\\npm\\node_modules\\@jjliebig\\codex-plus-plus\\node_modules\\@jjliebig\\codex-plus-plus-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin, resources C:\\Users\\jonat\\AppData\\Roaming\\npm\\node_modules\\@jjliebig\\codex-plus-plus\\node_modules\\@jjliebig\\codex-plus-plus-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-resources, path C:\\Users\\jonat\\AppData\\Roaming\\npm\\node_modules\\@jjliebig\\codex-plus-plus\\node_modules\\@jjliebig\\codex-plus-plus-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path)",
"managed by bun": "false",
"managed by npm": "true",
"managed by pnpm": "false",
"managed package root": "C:\\Users\\jonat\\AppData\\Roaming\\npm\\node_modules\\@jjliebig\\codex-plus-plus",
"npm update target": "C:\\Users\\jonat\\AppData\\Roaming\\npm\\node_modules\\@jjliebig/codex-plus-plus"
},
"remediation": null,
"durationMs": 345
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "MCP configuration is locally consistent",
"details": {
"configured servers": "4",
"disabled servers": "2",
"stdio servers": "3",
"streamable_http servers": "1"
},
"remediation": null,
"durationMs": 239
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"proxy env vars": "none"
},
"remediation": null,
"durationMs": 0
},
"network.provider_reachability": {
"id": "network.provider_reachability",
"category": "reachability",
"status": "ok",
"summary": "active provider endpoints are reachable over HTTP",
"details": {
"ChatGPT base URL": "https://chatgpt.com/backend-api/ reachable (HTTP 403)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 72
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 2 IPv6, first IPv6",
"auth mode": "chatgpt",
"connect timeout": "15000 ms",
"endpoint": "wss://chatgpt.com/backend-api/<redacted>",
"handshake result": "HTTP 101 Switching Protocols",
"model provider": "openai",
"models etag present": "true",
"provider name": "OpenAI",
"proxy env vars": "none",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 1061
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running npm on windows-x86_64",
"details": {
"commit": "unknown",
"current executable": "C:\\Users\\jonat\\AppData\\Roaming\\npm\\node_modules\\@jjliebig\\codex-plus-plus\\node_modules\\@jjliebig\\codex-plus-plus-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin\\codex.exe",
"install method": "npm (package C:\\Users\\jonat\\AppData\\Roaming\\npm\\node_modules\\@jjliebig\\codex-plus-plus\\node_modules\\@jjliebig\\codex-plus-plus-win32-x64\\vendor\\x86_64-pc-windows-msvc, bin C:\\Users\\jonat\\AppData\\Roaming\\npm\\node_modules\\@jjliebig\\codex-plus-plus\\node_modules\\@jjliebig\\codex-plus-plus-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin, resources C:\\Users\\jonat\\AppData\\Roaming\\npm\\node_modules\\@jjliebig\\codex-plus-plus\\node_modules\\@jjliebig\\codex-plus-plus-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-resources, path C:\\Users\\jonat\\AppData\\Roaming\\npm\\node_modules\\@jjliebig\\codex-plus-plus\\node_modules\\@jjliebig\\codex-plus-plus-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path)",
"platform": "windows-x86_64",
"version": "0.147.0-fork.1"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "C:\\Users\\jonat\\AppData\\Roaming\\npm\\node_modules\\@jjliebig\\codex-plus-plus\\node_modules\\@jjliebig\\codex-plus-plus-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path\\rg.exe",
"search command readiness": "file exists",
"search provider": "bundled"
},
"remediation": null,
"durationMs": 0
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "Never",
"codex-linux-sandbox helper": "none",
"execve wrapper helper": "none",
"filesystem sandbox": "unrestricted",
"network sandbox": "enabled"
},
"remediation": null,
"durationMs": 0
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "C:\\Users\\jonat\\.codex (dir)",
"active rollout files": "72246 files, 30105568801 total bytes, 416709 average bytes",
"archived rollout files": "78971 files, 57441409760 total bytes, 727373 average bytes",
"goals DB": "C:\\Users\\jonat\\.codex\\goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "C:\\Users\\jonat\\.codex\\logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "C:\\Users\\jonat\\.codex\\log (dir)",
"memories DB": "C:\\Users\\jonat\\.codex\\memories_1.sqlite (file)",
"memories DB integrity": "ok",
"queue DB": "C:\\Users\\jonat\\.codex\\queue_1.sqlite (file)",
"queue DB integrity": "ok",
"sqlite home": "C:\\Users\\jonat\\.codex (dir)",
"state DB": "C:\\Users\\jonat\\.codex\\state_5.sqlite (file)",
"state DB integrity": "ok",
"thread history DB": "C:\\Users\\jonat\\.codex\\thread_history_1.sqlite (missing)",
"thread history DB integrity": "skipped (missing)"
},
"remediation": null,
"durationMs": 13154
},
"state.rollout_db_parity": {
"id": "state.rollout_db_parity",
"category": "threads",
"status": "warning",
"summary": "rollout files and state DB thread inventory differ",
"details": {
"default model provider": "openai",
"rollout DB active files": "10000",
"rollout DB active rows": "72237",
"rollout DB archive mismatches": "skipped (scan cap reached)",
"rollout DB archived files": "0",
"rollout DB archived rows": "59259",
"rollout DB duplicate DB paths": "0",
"rollout DB duplicate rollout thread ids": "0",
"rollout DB malformed file names": "0",
"rollout DB missing active rows": "0",
"rollout DB missing archived rows": "0",
"rollout DB model providers": "openai=131478, lmstudio_local=18",
"rollout DB rows": "131496",
"rollout DB scan cap reached": "true",
"rollout DB scan errors": "0",
"rollout DB sources": "exec=61631, subagent:review=57809, subagent:thread_spawn=8884, subagent:other=1772, cli=814, vscode=377, subagent:memory_consolidation=209",
"rollout DB stale rows": "skipped (scan cap reached)"
},
"issues": [
{
"severity": "warning",
"cause": "rollout scan was incomplete or found bad files",
"measured": "0 scan errors, 0 malformed names, scan cap reached: true",
"expected": "rollout directories are fully scannable",
"remedy": "Check file permissions and unexpected files under CODEX_HOME sessions.",
"fields": []
}
],
"remediation": null,
"durationMs": 12973
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-GB",
"details": {
"EDITOR": "not set",
"VISUAL": "not set",
"os": "Windows 10.0.26200 (Windows 11 Professional) [64-bit]",
"os language": "en-GB",
"os type": "Windows",
"os version": "10.0.26200"
},
"remediation": null,
"durationMs": 0
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"WT_SESSION": "present",
"color output": "enabled",
"console input code page": "850",
"console output code page": "850",
"stderr console mode": "0x00000007 (VT processing: true)",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout console mode": "0x00000007 (VT processing: true)",
"stdout is terminal": "true",
"terminal": "Windows Terminal",
"terminal size": "120x30"
},
"remediation": null,
"durationMs": 0
},
"terminal.title": {
"id": "terminal.title",
"category": "title",
"status": "ok",
"summary": "terminal title default",
"details": {
"terminal title activity": "true",
"terminal title items": "activity, project-name",
"terminal title project source": "cwd",
"terminal title project value": "jonat",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "warning",
"summary": "fork release status cache is stale or unavailable",
"details": {
"cached latest version": "0.146.0-fork.2",
"check for update on startup": "true",
"latest version status": "current version is not older",
"npm update target": "C:\\Users\\jonat\\AppData\\Roaming\\npm\\node_modules\\@jjliebig/codex-plus-plus",
"update action": "npm install -g @jjliebig/codex-plus-plus"
},
"remediation": null,
"durationMs": 332
}
}
}
What issue are you seeing?
Codex CLI's prompt composer renders a full blank row when a normal single separator space lands immediately after a visual line that exactly fills the textarea width.
The input contains one space, not a newline. Resizing the pane by one column moves the blank row to a different word boundary.
What steps can reproduce the bug?
- Run Codex CLI 0.147.0 with a 102-column terminal or pane. (102 isn't a special number just so happens that was my width and reproduced this precisely, also happens with any other width)
- Paste this single paragraph:
One independent observation: most of the remaining ~26K ops/s is process_runtime_marker's 1s negative TTL re-reading environment blocks of the same candidates. Since a process's environment can't change after spawn, caching negative results for the lifetime of (pid, creation_time) would close that too, orthogonal to the snapshot-lifetime design choice here.
- Observe a blank row between
environmentandcan't, even though the source contains one space. - Resize the terminal or pane to 103 columns.
- Observe the blank row move to the boundary after
would.
This reproduces with the same input and without submitting the prompt.
What is the expected behavior?
A separator space at a soft-wrap boundary should be consumed by normal word wrapping. The next word should start on the following visual row without inserting an empty row. The underlying prompt text should remain unchanged.
Additional information
Reproduced on Windows in Herdr 0.8.0.
This appears to have started with PR #37166 (ad6e48ddd35af1ab477d417ceb1becb5dbb96a60), which added extra handling for overflowing spaces to keep the cursor inside the viewport:
https://github.com/openai/codex/pull/37166
Current main at 3aae5d885bac39c1262491aa3fd100dfd8b3919f still contains the behavior.
At 102 columns the blank row appears after environment. At 103 columns it moves after would, which shows this is width-dependent rendering rather than an input newline.
1 Comment
This is fixed by a16863f8704831d13e041ed7dba2c4a57a2a940b PR #37709