TUI Vim composer mode: repeated `e` does not advance to the next word end
What version of Codex CLI is running?
codex-cli 0.132.0
What subscription do you have?
Pro Lite
Which model were you using?
gpt-5.5
What platform is your computer?
Darwin 25.4.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
cmux Version 0.63.2 Build 79 Commit 179b16ce6
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1779395611s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.132.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "/Users/brad/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/Users/brad/.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "/Users/brad/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/Users/brad/.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "/Users/brad/.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": "/Users/brad/.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": "/Users/brad/.codex",
"config.toml": "/Users/brad/.codex/config.toml",
"config.toml parse": "ok",
"cwd": "/Users/brad/_dotfiles/home/bakgit/claude-code/_scratch",
"enabled feature flags": "shell_tool, unified_exec, shell_snapshot, terminal_resize_reflow, sqlite, hooks, enable_request_compression, multi_agent, apps, tool_search, tool_suggest, plugins, plugin_hooks, in_app_browser, browser_use, browser_use_external, computer_use, plugin_sharing, image_generation, skill_mcp_dependency_install, steer, guardian_approval, goals, collaboration_modes, tool_call_mcp_elicitation, personality, fast_mode, tui_app_server, workspace_dependencies",
"feature flag overrides": "goals=true",
"feature flags enabled": "29",
"log dir": "/Users/brad/.codex/log",
"mcp servers": "1",
"model": "gpt-5.5",
"model provider": "openai",
"sqlite home": "/Users/brad/.codex"
},
"remediation": null,
"durationMs": 0
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/opt/homebrew/bin/codex",
"current executable": "/opt/homebrew/bin/codex",
"install context": "brew",
"managed by bun": "false",
"managed by npm": "false",
"managed package root": "not set"
},
"remediation": null,
"durationMs": 31
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "warning",
"summary": "MCP configuration has optional issues",
"details": {
"configured servers": "1",
"disabled servers": "0",
"optional reachability failed": "affinity: http://localhost:6767/sse (HEAD connect failed; GET connect failed)",
"streamable_http servers": "1"
},
"remediation": "Set the missing MCP env vars or disable the affected server.",
"durationMs": 55
},
"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": 413
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 2 IPv6, first IPv4",
"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": 912
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running brew on macos-aarch64",
"details": {
"commit": "unknown",
"current executable": "/opt/homebrew/bin/codex",
"install method": "brew",
"platform": "macos-aarch64",
"version": "0.132.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (system)",
"details": {
"search command": "rg",
"search command readiness": "ripgrep 15.1.0",
"search provider": "system"
},
"remediation": null,
"durationMs": 4
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "OnRequest",
"codex-linux-sandbox helper": "none",
"execve wrapper helper": "/Users/brad/.codex/tmp/arg0/codex-arg0BkvOBB/codex-execve-wrapper",
"filesystem sandbox": "restricted",
"network sandbox": "restricted"
},
"remediation": null,
"durationMs": 0
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "/Users/brad/.codex (dir)",
"active rollout files": "174 files, 192296647 total bytes, 1105153 average bytes",
"archived rollout files": "23 files, 7074296 total bytes, 307578 average bytes",
"log DB": "/Users/brad/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/Users/brad/.codex/log (dir)",
"sqlite home": "/Users/brad/.codex (dir)",
"state DB": "/Users/brad/.codex/state_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 376
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "warning",
"summary": "height 23 rows - content may scroll off (recommended >=24)",
"details": {
"COLORTERM": "truecolor",
"SSH_CLIENT": "present",
"SSH_TTY": "present",
"TERM": "xterm-256color",
"TERM_PROGRAM": "ghostty",
"color output": "disabled (stdout is not a terminal)",
"effective locale": "en_US.UTF-8",
"multiplexer": "tmux 3.6a",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "false",
"terminal": "Ghostty",
"terminal size": "91x23",
"terminal version": "1.3.0-HEAD+9fa3ab0",
"tmux allow-passthrough": "off",
"tmux client termname": "xterm-256color",
"tmux client termtype": "ghostty 1.3.0-HEAD+9fa3ab0",
"tmux extended-keys": "always",
"tmux focus-events": "off",
"tmux set-clipboard": "external",
"tmux xterm-keys": "on"
},
"issues": [
{
"severity": "warning",
"cause": "height 23 rows - content may scroll off (recommended >=24)",
"measured": "91 x 23",
"expected": ">= 24 rows",
"remedy": "resize the window to at least 24 rows",
"fields": [
"terminal size"
]
}
],
"remediation": null,
"durationMs": 49
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.132.0",
"check for update on startup": "true",
"last checked at": "2026-05-21T18:37:39.010651Z",
"latest version": "0.133.0",
"latest version status": "newer version is available",
"update action": "brew upgrade --cask codex",
"version cache": "/Users/brad/.codex/version.json"
},
"remediation": null,
"durationMs": 195
}
}
}
What issue are you seeing?
When repeatedly hitting e in vim composer mode, the cursor does not advance to the next word end—just stays on the same word end.
What steps can reproduce the bug?
- Enable Vim composer mode with
/vim, or set it as the default:
``toml``
[tui]
vim_mode_default = true
- In the Codex TUI composer, enter text like:
``text``
alpha beta gamma
- Enter Vim normal mode.
- Put the cursor on the final character of
alpha. - Press
erepeatedly.
What is the expected behavior?
Like Vim/Neovim, pressing e from the end of alpha should move to the end of beta, then the end of gamma.
Repeated e should continue advancing to the next end-of-word.
Additional information
The current implementation appears to route normal-mode e through vim_word_end_cursor().
That function appears to compute end_of_next_word() from the current cursor position, then map the returned exclusive end back with prev_atomic_boundary(end).
When the cursor is already on the last character of the current word, end_of_next_word() can return the byte position just after that same word. Mapping that back with prev_atomic_boundary(end) returns the current cursor position, so repeated e becomes a no-op.
A Vim-specific end-word motion likely needs to detect when the cursor is already at prev_atomic_boundary(end_of_next_word()), advance past the current atomic boundary, and then search for the next word end.
References:
- Vim composer mode PR: https://github.com/openai/codex/pull/18595
- Current
textarea.rsimplementation: https://raw.githubusercontent.com/openai/codex/main/codex-rs/tui/src/bottom_pane/textarea.rs