Skip to content

[BUG REPORT] windows下使用codex文本渲染错误 #22

Closed

Description

@wsrer

Where

Windows

What happened

Image

Steps to reproduce

  1. 打开codex
  2. 让codex执行任务

What you expected

没有文本重叠

Commit or version

0.1.8

Logs

Activity

  1. added
    bug
    on Oct 23, 2026
  2. Raiden-MeixElysia commented on Oct 23, 2026

    @Raiden-MeixElysia
    Contributor

    奇怪了,我也一直用codex从来没碰到这个问题,我看看是codex的问题还是terminal的问题。

  3. Raiden-MeixElysia commented on Oct 24, 2026

    @Raiden-MeixElysia
    Contributor

    @wsrer 谢谢你的报告和截图。

    我们找到了一个真实的缺陷,已在 4b94326 修复。alacritty 擦除、插入或删除时,若边界落在中文宽字符的中间,只清掉其中一半;留下的左半格仍画出整个字,压在下一格上。ConPTY 按 xterm 的规则擦除后,认为这些格已经空了,不再重画,残字便留在状态栏里,和截图一致。插入模式下打字、在半个宽字符上覆写,也会这样。

    现在 ELYTerminal 用 ELY-Open-Source/alacritty 的 elyterminal-0.26.0 分支:每次编辑前,按 xterm 的做法,先用当前背景色把被劈开的宽字符整个清掉。2715 组编辑与 xterm.js 结果相同;覆写时的背景和属性也与真实 XTerm 对照过。

    我在 Windows 11 上跑了两次 codex 会话,没有复现截图里的那一幕。codex 的仓库里有同类报告,出现在 Windows Terminal 上:openai/codex#38002、openai/codex#30975,所以 codex 的重绘也可能有份。修复随下个版本发布。升级后若仍能看到,请重新打开这个 issue,附上 codex 版本、所用 shell 和截图。

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions