Skip to content

[Windows][CLI 0.164.0] Mouse movement events leak into the TUI input (regression from 0.156.1) #57052

Closed as duplicate

Description

@fengxinghua2002

What version of Codex CLI is running?

codex-cli 0.164.0

What subscription do you have?

ChatGPT Plus

Which model were you using?

GPT-6-Sol

What platform is your computer?

x64

What terminal emulator and version are you using (if applicable)?

IDE integrated terminal on Windows (IDE name and version not available); no terminal multiplexer.

Codex doctor report

{
  "schemaVersion": 1,
  "generatedAt": "1793000795s since unix epoch",
  "overallStatus": "warning",
  "codexVersion": "0.164.0",
  "checks": {
    "app_server.status": {
      "id": "app_server.status",
      "category": "app-server",
      "status": "ok",
      "summary": "background server is running",
      "details": {
        "app-server version": "0.164.0",
        "control socket": "[REDACTED]",
        "daemon state dir": "[REDACTED]",
        "dedicated pid file": "[REDACTED]",
        "dedicated update-loop pid file": "[REDACTED]",
        "mode": "ephemeral",
        "pid file": "[REDACTED]",
        "settings": "[REDACTED]",
        "status": "running",
        "update-loop pid file": "[REDACTED]"
      },
      "remediation": null,
      "durationMs": 23
    },
    "auth.credentials": {
      "id": "auth.credentials",
      "category": "auth",
      "status": "ok",
      "summary": "auth is configured",
      "details": {
        "auth file": "[REDACTED]",
        "auth storage mode": "[REDACTED]",
        "stored API key": "[REDACTED]",
        "stored ChatGPT tokens": "[REDACTED]",
        "stored agent identity": "[REDACTED]",
        "stored auth mode": "[REDACTED]"
      },
      "remediation": null,
      "durationMs": 0
    },
    "config.load": {
      "id": "config.load",
      "category": "config",
      "status": "ok",
      "summary": "config loaded",
      "details": {
        "CODEX_HOME": "[REDACTED]",
        "active thread overrides": "[REDACTED]",
        "config.toml": "[REDACTED]",
        "config.toml parse": "ok",
        "configuration load ms": "69",
        "configuration scope": "[REDACTED]",
        "configured TUI mode": "[REDACTED]",
        "cwd": "[REDACTED]",
        "enabled feature flags": "[REDACTED]",
        "feature flag overrides": "[REDACTED]",
        "feature flags enabled": "[REDACTED]",
        "log dir": "[REDACTED]",
        "mcp servers": "[REDACTED]",
        "model": "gpt-6-sol",
        "model provider": "openai",
        "sqlite home": "[REDACTED]"
      },
      "remediation": null,
      "durationMs": 1
    },
    "desktop.app.version": {
      "id": "desktop.app.version",
      "category": "desktop",
      "status": "ok",
      "summary": "the desktop application is installed",
      "details": {
        "log directory": "[REDACTED]",
        "running": "false",
        "version": "26.1016.8622.0"
      },
      "remediation": null,
      "durationMs": 0
    },
    "desktop.app_server.handshake": {
      "id": "desktop.app_server.handshake",
      "category": "desktop",
      "status": "ok",
      "summary": "the desktop application is not running",
      "details": {},
      "remediation": null,
      "durationMs": 0
    },
    "desktop.security.enforcement": {
      "id": "desktop.security.enforcement",
      "category": "desktop",
      "status": "ok",
      "summary": "no locally visible recent Codex security enforcement was found",
      "details": {},
      "remediation": null,
      "durationMs": 0
    },
    "git.environment": {
      "id": "git.environment",
      "category": "git",
      "status": "ok",
      "summary": "git executable found; execution not verified",
      "details": {
        ".git entry": "[REDACTED]",
        "PATH git #1": "[REDACTED]",
        "PATH git entries": "[REDACTED]",
        "git execution": "not inspected (PATH helpers are not executed)",
        "repo detected": "true",
        "repo root": "[REDACTED]",
        "selected git": "[REDACTED]"
      },
      "remediation": null,
      "durationMs": 8
    },
    "git.worktree.dev_drive": {
      "id": "git.worktree.dev_drive",
      "category": "git",
      "status": "warning",
      "summary": "this worktree is not on a Windows Dev Drive; moving it to a trusted Dev Drive can significantly improve repository and filesystem performance",
      "details": {},
      "remediation": "[REDACTED]",
      "durationMs": 1
    },
    "installation": {
      "id": "installation",
      "category": "install",
      "status": "ok",
      "summary": "installation looks consistent",
      "details": {
        "PATH codex #1": "[REDACTED]",
        "current executable": "[REDACTED]",
        "install context": "[REDACTED]",
        "managed by Vite+": "false",
        "managed by bun": "false",
        "managed by npm": "true",
        "managed by pnpm": "false",
        "managed package root": "[REDACTED]",
        "npm update target": "[REDACTED]"
      },
      "remediation": null,
      "durationMs": 8
    },
    "mcp.config": {
      "id": "mcp.config",
      "category": "mcp",
      "status": "warning",
      "summary": "MCP configuration has optional issues",
      "details": {
        "configured servers": "[REDACTED]",
        "disabled servers": "[REDACTED]",
        "node_repl": "[REDACTED]",
        "stdio servers": "[REDACTED]"
      },
      "remediation": "[REDACTED]",
      "durationMs": 0
    },
    "network.env": {
      "id": "network.env",
      "category": "network",
      "status": "ok",
      "summary": "network-related environment looks readable",
      "details": {
        "managed proxy": "not configured",
        "proxy env vars present": "HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, NO_PROXY, http_proxy, https_proxy, all_proxy, no_proxy",
        "respect system proxy": "disabled"
      },
      "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 inference URL": "[REDACTED]",
        "desktop assets CDN": "[REDACTED]",
        "reachability mode": "ChatGPT auth"
      },
      "remediation": null,
      "durationMs": 2533
    },
    "network.websocket_reachability": {
      "id": "network.websocket_reachability",
      "category": "websocket",
      "status": "ok",
      "summary": "Responses WebSocket handshake succeeded",
      "details": {
        "DNS": "[REDACTED]",
        "auth mode": "chatgpt",
        "connect timeout": "15000 ms",
        "endpoint": "[REDACTED]",
        "handshake result": "HTTP 101 Switching Protocols",
        "model provider": "openai",
        "provider name": "[REDACTED]",
        "proxy env vars present": "[REDACTED]",
        "reasoning header": "false",
        "server model present": "[REDACTED]",
        "supports websockets": "true",
        "wire API": "responses"
      },
      "remediation": null,
      "durationMs": 3639
    },
    "runtime.provenance": {
      "id": "runtime.provenance",
      "category": "runtime",
      "status": "ok",
      "summary": "running npm on windows-x86_64",
      "details": {
        "commit": "[REDACTED]",
        "current executable": "[REDACTED]",
        "install method": "[REDACTED]",
        "platform": "windows-x86_64",
        "version": "0.164.0"
      },
      "remediation": null,
      "durationMs": 0
    },
    "runtime.search": {
      "id": "runtime.search",
      "category": "search",
      "status": "ok",
      "summary": "search command found (bundled); execution not verified",
      "details": {
        "search command": "[REDACTED]",
        "search command readiness": "file exists",
        "search provider": "bundled"
      },
      "remediation": null,
      "durationMs": 0
    },
    "sandbox.filesystem_paths": {
      "id": "sandbox.filesystem_paths",
      "category": "sandbox",
      "status": "ok",
      "summary": "no explicit filesystem paths to probe",
      "details": {},
      "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": "[REDACTED]",
        "denied-read glob rules": "[REDACTED]",
        "denied-read restrictions": "[REDACTED]",
        "denied-read rules": "[REDACTED]",
        "filesystem sandbox": "restricted",
        "glob scan max depth": "[REDACTED]",
        "managed filesystem source": "[REDACTED]",
        "network sandbox": "restricted",
        "sandbox backend": "<redacted>"
      },
      "remediation": null,
      "durationMs": 0
    },
    "security.endpoint": {
      "id": "security.endpoint",
      "category": "security",
      "status": "ok",
      "summary": "no supported endpoint protection detected",
      "details": {
        "endpoint products": "[REDACTED]"
      },
      "remediation": null,
      "durationMs": 68
    },
    "state.paths": {
      "id": "state.paths",
      "category": "state",
      "status": "ok",
      "summary": "state paths and databases are inspectable",
      "details": {
        "CODEX_HOME": "[REDACTED]",
        "active rollout files": "[REDACTED]",
        "archived rollout files": "[REDACTED]",
        "goals DB": "[REDACTED]",
        "goals DB integrity": "[REDACTED]",
        "log DB": "[REDACTED]",
        "log DB integrity": "[REDACTED]",
        "log dir": "[REDACTED]",
        "memories DB": "[REDACTED]",
        "memories DB integrity": "[REDACTED]",
        "memories v2 DB": "[REDACTED]",
        "memories v2 DB integrity": "[REDACTED]",
        "queue DB": "[REDACTED]",
        "queue DB integrity": "[REDACTED]",
        "sqlite home": "[REDACTED]",
        "state DB": "[REDACTED]",
        "state DB integrity": "[REDACTED]",
        "thread history DB": "[REDACTED]",
        "thread history DB integrity": "[REDACTED]"
      },
      "remediation": null,
      "durationMs": 15168
    },
    "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": "804",
        "rollout DB active rows": "793",
        "rollout DB archive mismatches": "0",
        "rollout DB archived files": "4",
        "rollout DB archived rows": "4",
        "rollout DB duplicate DB paths": "0",
        "rollout DB duplicate rollout thread id sample": "[REDACTED]",
        "rollout DB duplicate rollout thread ids": "9",
        "rollout DB malformed file names": "0",
        "rollout DB missing active rows": "41",
        "rollout DB missing active sample": "[REDACTED]",
        "rollout DB missing archived rows": "0",
        "rollout DB model providers": "[REDACTED]",
        "rollout DB rows": "797",
        "rollout DB scan cap reached": "false",
        "rollout DB scan errors": "0",
        "rollout DB sources": "[REDACTED]",
        "rollout DB stale row sample": "[REDACTED]",
        "rollout DB stale rows": "30"
      },
      "issues": [
        {
          "severity": "warning",
          "cause": "rollout files are missing from the state DB",
          "measured": "41 active, 0 archived",
          "expected": "every rollout file has a matching threads row",
          "remedy": null,
          "fields": []
        },
        {
          "severity": "warning",
          "cause": "state DB rows point at missing or unusable rollout files",
          "measured": "30 stale rows",
          "expected": "every state DB rollout path is a file on disk",
          "remedy": null,
          "fields": []
        },
        {
          "severity": "warning",
          "cause": "duplicate thread inventory entries found",
          "measured": "9 duplicate rollout thread ids, 0 duplicate DB paths",
          "expected": "one rollout path and thread id per thread",
          "remedy": "Attach the doctor report to a bug report so support can inspect samples.",
          "fields": []
        }
      ],
      "remediation": null,
      "durationMs": 2528
    },
    "system.disk": {
      "id": "system.disk",
      "category": "disk",
      "status": "ok",
      "summary": "sufficient free disk space (17.2 GiB)",
      "details": {
        "CODEX_HOME available": "17.2 GiB",
        "failure threshold": "1.0 GiB",
        "warning threshold": "5.0 GiB",
        "worktree available": "595.8 GiB"
      },
      "remediation": null,
      "durationMs": 0
    },
    "system.environment": {
      "id": "system.environment",
      "category": "system",
      "status": "ok",
      "summary": "OS language zh-CN",
      "details": {
        "EDITOR": "[REDACTED]",
        "VISUAL": "[REDACTED]",
        "os": "Windows 10.0.26200 (Windows 11 Professional) [64-bit]",
        "os language": "zh-CN",
        "os type": "Windows",
        "os version": "10.0.26200"
      },
      "remediation": null,
      "durationMs": 4
    },
    "terminal.env": {
      "id": "terminal.env",
      "category": "terminal",
      "status": "warning",
      "summary": "height 13 rows - content may scroll off (recommended >=24)",
      "details": {
        "color output": "enabled",
        "console input code page": "936",
        "console output code page": "936",
        "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": "unknown",
        "terminal size": "192x13"
      },
      "issues": [
        {
          "severity": "warning",
          "cause": "height 13 rows - content may scroll off (recommended >=24)",
          "measured": "192 x 13",
          "expected": ">= 24 rows",
          "remedy": "resize the window to at least 24 rows",
          "fields": [
            "terminal size"
          ]
        }
      ],
      "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": "[REDACTED]",
        "terminal title project source": "[REDACTED]",
        "terminal title project value": "[REDACTED]",
        "terminal title source": "default"
      },
      "remediation": null,
      "durationMs": 0
    },
    "updates.status": {
      "id": "updates.status",
      "category": "updates",
      "status": "warning",
      "summary": "update configuration is locally consistent",
      "details": {
        "cached latest version": "0.164.0",
        "check for update on startup": "true",
        "desktop application": "OpenAI.Codex",
        "desktop latest build": "26.1021.3705.0",
        "desktop update status": "available",
        "dismissed version": "0.164.0",
        "last checked at": "[REDACTED]",
        "latest version probe": "[REDACTED]",
        "npm update target": "[REDACTED]",
        "update action": "[REDACTED]",
        "version cache": "[REDACTED]"
      },
      "remediation": null,
      "durationMs": 5006
    }
  }
}

What issue are you seeing?

In the IDE's integrated terminal on Windows, moving the mouse causes raw mouse-movement/control sequences to appear in the Codex CLI input field, even though I have not typed or pasted anything. This happens with Codex CLI 0.164.0. The same behavior does not occur with Codex CLI 0.156.1 in the same environment. The unexpected text interferes with typing prompts.

What steps can reproduce the bug?

  1. On Windows, open the IDE's integrated terminal.

  2. Run the following commands:

    codex --version
    codex
  3. Confirm that the version is codex-cli 0.164.0.

  4. With the Codex input field active, move the mouse over the terminal without typing or pasting.

  5. Raw mouse-movement/control sequences appear in the input field.

  6. Repeat in the same environment with Codex CLI 0.156.1. The unexpected text does not appear.

Thread ID: not recorded.

codex_question.mp4

What is the expected behavior?

Moving the mouse over the IDE's integrated terminal should not insert any characters or control sequences into the Codex CLI input field. The input field should contain only text that I type or intentionally paste.

Additional information

This may be related to #49071, which reported a similar Windows mouse-input issue and was marked fixed in 0.159.0. I still see the behavior in Codex CLI 0.164.0; Codex CLI 0.156.1 works normally on my Windows setup.

Activity

  1. added
    bug
    on Oct 26, 2026
  2. added
    CLI
    windows-os
    TUI
    on Oct 26, 2026
  3. etraut-openai commented on Oct 27, 2026

    @etraut-openai
    Contributor

    (response from codex)

    Thanks for the recording and for checking both versions in the same terminal. Moving the mouse shouldn’t insert text into the prompt.

    As a workaround on 0.164.0, run /tui, select Scrollback, then quit and restart Codex in the same IDE terminal. Does the prompt stay empty when you move the mouse?

    To help us reproduce this, could you share:

    • The IDE name and version, and which terminal engine it uses if there’s a choice (for example, Classic or Reworked in JetBrains IDEs).
    • The shell and version you’re running inside the IDE.
    • Whether it also happens in Fullscreen mode when you run Codex in standalone Windows Terminal with the same shell.

    That comparison will help us narrow down where the mouse events start appearing as text.

  4. fengxinghua2002 commented on Oct 27, 2026

    @fengxinghua2002
    Author

    Thanks for the workaround! I ran /tui, selected Scrollback, then quit and restarted Codex CLI 0.164.0 in the same GoLand terminal. The prompt now stays empty when I move the mouse.

    Here are the environment details:

    • IDE: GoLand 2025.1.2 (Build #GO-251.26094.127). I have not yet confirmed whether its terminal uses the Classic or Reworked engine.
    • Shell: Windows PowerShell 5.1.26100.9444.
    • Comparison: With the same shell, I cannot reproduce the issue in Fullscreen mode in standalone Windows Terminal.

    Thanks again for looking into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLITUIbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions