Skip to content

Broken shell step preview in VSCode's chat window #6178

Closed

Description

@nos1609

What version of Codex is running?

0.53.0

What subscription do you have?

Plus

Which model were you using?

gpt5-codex

What platform is your computer?

Win 11 10.0.26200.0 ARM64 + WSL Fedora 42

What issue are you seeing?

Image some unreadable text in shell step preview

What steps can reproduce the bug?

run codex exec "пример", the chat's preview window of VSCode extension, it is going to show some weird characters, no matter fonts or locale availability.

What is the expected behavior?

correct text encoding, accordingly to OS fonts and locale availability, same as in the VSCode's built-in terminal window.

Additional information

Able to reproduce locally on demand if needed

Activity

  1. added
    bug
    on Nov 3, 2025
  2. added
    extension
    windows-os
    on Nov 3, 2025
  3. bolinfest commented on Nov 4, 2025

    @bolinfest
    Collaborator

    @nos1609 Out of curiosity, was this running anything whether the output may have been binary or had any special encoding?

    Is it possible for you to find the corresponding .jsonl file under ~/.codex/sessions and could you share the content if it's not sensitive? Perhaps then we could at least figure out what command it was running?

  4. nos1609 commented on Nov 4, 2025

    @nos1609
    Author

    @bolinfest here you go, a new example

    $ bash -lc 'prompt="$(< tmp/assistant_contexts/20251104-anaconda.txt)"; (HOME=$PWD/tmp/codex_home XDG_CONFIG_HOME=$PWD/tmp/codex_home/.config codex exec "$prompt" --output-last-message tmp/assistant_contexts/responses/codex.txt) & wait'
    2025-11-04T15:54:40.792590Z  WARN codex_core::project_doc: Project doc `/home/nos1609/myawesomeproject/AGENTS.md` exceeds remaining budget (32768 bytes) - truncating.
    OpenAI Codex v0.53.0 (research preview)
    --------
    workdir: /home/nos1609/myawesomeproject
    model: gpt-5-codex
    provider: openai
    approval: never
    sandbox: workspace-write [workdir, /tmp, $TMPDIR]
    reasoning effort: medium
    reasoning summaries: auto
    --------
    user
    �он�ек��:
    - Rocky Linux 10 ���ановка �е�ез Anaconda из iPXE.
    - �ене�и��ем kickstart �к�ип�ом `generate_ks.sh`; ди�к в�би�ае��� ав�о (`PRIMARY_DISK`), �азме�ка в %pre запи��вае��� в /tmp/ks-disk.cfg.
    - �о�ле зап��ка iPXE и заг��зки Anaconda видим в `anaconda.log`:
      - `15:00:47,992 ERR kickstart.parsing: the following arguments are required: -- name`
      - ���ал�ной лог �каз�вае�, ��о %pre-�к�ип� в�полнил�� ��пе�но, ди�ки оп�еделили�� (`sda`), bootloader �ежим ENABLED, custom partitioning �оздан.
    - � kickstart (`build/ks.cfg`) ди�ек�о�ов `part` �озда�м � �лагами `--label=... --name=...`, п�име� дл� BIOS:
    

    part biosboot --fstype=biosboot --size=1 --ondisk=${PRIMARY_DISK} --label=BIOSBOOT --name=biosboot
    part /boot --fstype=xfs --size=1024 --ondisk=${PRIMARY_DISK} --label=BOOT --name=boot
    part swap --fstype=swap --size=${SWAP_SIZE} --ondisk=${PRIMARY_DISK} --label=SWAP --name=swap
    part / --fstype=xfs --size=1 --grow --ondisk=${PRIMARY_DISK} --label=ROOT --name=root

    - `%include /tmp/ks-disk.cfg` подкл��ае��� по�ле %pre; никаки� `logvol`/`volgroup` не�.
    - �ол�зова�ел��кие па�аме��� (hostname, ipv4/6) под��авл����� ко��ек�но.
    
    �ада�а:
    - �он���, по�ем� Anaconda в�� е�� ��еб�е� `--name` и на какой команде ��о ��аба��вае�.
    - ��едложи�� минимал�н�е п�авки �аблона или гене�а�ии, ��об� ��а�но п�ой�и па��инг Kickstart.
    - �о возможно��и под�ве�ди��, н�жно ли добавл��� `--name` к `clearpart`/`ignoredisk` или каким-�о д��гим ���но���м, либо пе�екл��и���� на `part --asprimary`/`reqpart`.
    
    �г�ани�ени�:
    - Kickstart �о�ми��е��� динами�е�ки в %pre (Anaconda 40.13/Rocky 10).
    - � rescue ок��жении не� ��или�� `tee`, и�пол�з�ем �ол�ко POSIX-�елл.
    

    Also noted a "self-fixing" behavior - once completed the task, review shows text in correct encoding.

    Worth mentioning, that @LIHUA919 description is accurate about the issue.
    #6182

  5. nos1609 commented on Nov 4, 2025

    @nos1609
    Author

    Wow, this markup even breaks GH's own code block preview 🤔

  6. bolinfest commented on Nov 4, 2025

    @bolinfest
    Collaborator

    @joshka-oai this appears to be a bad interaction between VS Code's integrated terminal on Windows and...non-Latin characters, maybe? Seems likely to be a decoding or escaping issue: can you investigate?

    /cc @easong-openai

  7. joshka-oai commented on Nov 4, 2025

    @joshka-oai
    Contributor

    The linked PR seems reasonable, but I wonder In terms of sidestepping this issue rather than detecting and converting if it is reasonable / possible for codex to configure the shell to only output utf-8. Or is that not possible? Apologies in advance for my naive question here. It's likely that @nos1609 and @LIHUA919 are probably much more familiar with international code pages than I am here (there's a lot of unknown unknowns for me).

  8. nos1609 commented on Nov 4, 2025

    @nos1609
    Author

    I don't see any issue with that, but I don't even know what could be more imperative for codex on Fedora than
    LANG=en_US.UTF-8 as env, which is already the default encoding in WSL...

  9. 6 remaining items

  10. nos1609 commented on Nov 24, 2025

    @nos1609
    Author

    Looks like still not fixed on v0.4.46

    Image
  11. etraut-openai commented on Nov 24, 2025

    @etraut-openai
    Contributor

    @nos1609, the PR that attempts to fix this should be in the next published release.

  12. nos1609 commented on Nov 27, 2025

    @nos1609
    Author

    An example on a system with en-US locale, seems a bit different, hope it'll be fixed by that PR

    Image
  13. nos1609 commented on Dec 16, 2025

    @nos1609
    Author
    Image Fresh catch today
  14. dylan-hurd-oai commented on Jan 8, 2026

    @dylan-hurd-oai
    Contributor

    @nos1609 what version of the extension are you running / which model are you using?

  15. nos1609 commented on Jan 20, 2026

    @nos1609
    Author

    Looks like fixed on v0.4.60

    Image Image

    But this is the native PowerShell use, no WSL implied

  16. ax-openai commented on Jun 12, 2026

    @ax-openai
    Contributor

    Closing as resolved in current releases.

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

Metadata

Metadata

Labels

bugextensionwindows-os

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions