Codex Cli causing broken text
Open 💬 1 comment Opened Jun 9, 2026 by anhkysu
What version of Codex CLI is running?
0.137.0
What subscription do you have?
plus
Which model were you using?
gpt-5.4
What platform is your computer?
Microsoft Windows NT 10.0.22621.0 x64
What terminal emulator and version are you using (if applicable)?
PowerShell
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1780977966s since unix epoch",
"overallStatus": "ok",
"codexVersion": "0.137.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "C:\\Users\\TS-575\\.codex\\app-server-control\\app-server-control.sock",
"daemon state dir": "C:\\Users\\TS-575\\.codex\\app-server-daemon",
"mode": "ephemeral",
"pid file": "C:\\Users\\TS-575\\.codex\\app-server-daemon\\app-server.pid (missing)",
"settings": "C:\\Users\\TS-575\\.codex\\app-server-daemon\\settings.json (missing)",
"status": "not running",
"update-loop pid file": "C:\\Users\\TS-575\\.codex\\app-server-daemon\\app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 1
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "auth is configured",
"details": {
"auth file": "C:\\Users\\TS-575\\.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\\TS-575\\.codex",
"config.toml": "C:\\Users\\TS-575\\.codex\\config.toml",
"config.toml parse": "ok",
"cwd": "C:\\Users\\TS-575",
"enabled feature flags": "shell_tool, shell_snapshot, terminal_resize_reflow, sqlite, hooks, enable_request_compression, multi_agent, apps, tool_suggest, plugins, 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": "none",
"feature flags enabled": "26",
"log dir": "C:\\Users\\TS-575\\.codex\\log",
"mcp servers": "0",
"model": "gpt-5.4",
"model provider": "openai",
"sqlite home": "C:\\Users\\TS-575\\.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.41.0.windows.1",
"details": {
"PATH git #1": "C:\\Program Files\\Git\\cmd\\git.exe",
"PATH git entries": "1",
"git build options": "git version 2.41.0.windows.1; cpu: x86_64; built from commit: ff94e79c4724635915dbb3d4ba38f6bb91528260; sizeof-long: 4; sizeof-size_t: 8; shell-path: /bin/sh; feature: fsmonitor--daemon",
"git exec path": "C:/Program Files/Git/mingw64/libexec/git-core",
"git version": "git version 2.41.0.windows.1",
"repo detected": "false",
"selected git": "C:\\Program Files\\Git\\cmd\\git.exe"
},
"remediation": null,
"durationMs": 189
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "C:\\Users\\TS-575\\AppData\\Local\\Programs\\OpenAI\\Codex\\bin\\codex.exe",
"current executable": "C:\\Users\\TS-575\\AppData\\Local\\Programs\\OpenAI\\Codex\\bin\\codex.exe",
"install context": "standalone (windows, package C:\\Users\\TS-575\\.codex\\packages\\standalone\\releases\\0.137.0-x86_64-pc-windows-msvc, bin C:\\Users\\TS-575\\.codex\\packages\\standalone\\releases\\0.137.0-x86_64-pc-windows-msvc\\bin, resources C:\\Users\\TS-575\\.codex\\packages\\standalone\\releases\\0.137.0-x86_64-pc-windows-msvc\\codex-resources, path C:\\Users\\TS-575\\.codex\\packages\\standalone\\releases\\0.137.0-x86_64-pc-windows-msvc\\codex-path)",
"managed by bun": "false",
"managed by npm": "false",
"managed package root": "not set"
},
"remediation": null,
"durationMs": 173
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "no MCP servers configured",
"details": {},
"remediation": null,
"durationMs": 0
},
"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": 246
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 0 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": 1178
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running standalone on windows-x86_64",
"details": {
"commit": "unknown",
"current executable": "C:\\Users\\TS-575\\AppData\\Local\\Programs\\OpenAI\\Codex\\bin\\codex.exe",
"install method": "standalone (windows, package C:\\Users\\TS-575\\.codex\\packages\\standalone\\releases\\0.137.0-x86_64-pc-windows-msvc, bin C:\\Users\\TS-575\\.codex\\packages\\standalone\\releases\\0.137.0-x86_64-pc-windows-msvc\\bin, resources C:\\Users\\TS-575\\.codex\\packages\\standalone\\releases\\0.137.0-x86_64-pc-windows-msvc\\codex-resources, path C:\\Users\\TS-575\\.codex\\packages\\standalone\\releases\\0.137.0-x86_64-pc-windows-msvc\\codex-path)",
"platform": "windows-x86_64",
"version": "0.137.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "C:\\Users\\TS-575\\.codex\\packages\\standalone\\releases\\0.137.0-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": "OnRequest",
"codex-linux-sandbox helper": "none",
"execve wrapper helper": "none",
"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": "C:\\Users\\TS-575\\.codex (dir)",
"active rollout files": "14 files, 37413684 total bytes, 2672406 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "C:\\Users\\TS-575\\.codex\\goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "C:\\Users\\TS-575\\.codex\\logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "C:\\Users\\TS-575\\.codex\\log (missing)",
"memories DB": "C:\\Users\\TS-575\\.codex\\memories_1.sqlite (file)",
"memories DB integrity": "ok",
"sqlite home": "C:\\Users\\TS-575\\.codex (dir)",
"standalone release cache": "3 entries in C:\\Users\\TS-575\\.codex\\packages\\standalone\\releases",
"state DB": "C:\\Users\\TS-575\\.codex\\state_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 2324
},
"state.rollout_db_parity": {
"id": "state.rollout_db_parity",
"category": "threads",
"status": "ok",
"summary": "rollout files and state DB thread inventory agree",
"details": {
"default model provider": "openai",
"rollout DB active files": "14",
"rollout DB active rows": "14",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "0",
"rollout DB archived rows": "0",
"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=14",
"rollout DB rows": "14",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "cli=14",
"rollout DB stale rows": "0"
},
"remediation": null,
"durationMs": 2278
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-US",
"details": {
"os": "Windows 10.0.22621 (Windows 11 Professional) [64-bit]",
"os language": "en-US",
"os type": "Windows",
"os version": "10.0.22621"
},
"remediation": null,
"durationMs": 1
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLUMNS": "209",
"WT_SESSION": "present",
"color output": "enabled",
"console input code page": "932",
"console output code page": "932",
"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": "209x51"
},
"remediation": null,
"durationMs": 1
},
"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": "TS-575",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.138.0",
"check for update on startup": "true",
"last checked at": "2026-06-09T02:28:32.638909Z",
"latest version": "0.138.0",
"latest version status": "newer version is available",
"update action": "standalone installer",
"version cache": "C:\\Users\\TS-575\\.codex\\version.json"
},
"remediation": null,
"durationMs": 701
}
}
}
What issue are you seeing?
Codex cause broken string when editing my vuejs source. I use vietnamese text string and Codex turned them into mojibake. This issue happened over and over again though I told codex to write itself the md to not violate the problem again. But it did many times.
It just burn my limits, credits and made errors
What steps can reproduce the bug?
Just tell it to fix any vuejs template files containing vietnamese and it's gonna turn them to mojibake.
What is the expected behavior?
No mojibake anymore
Additional information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗