You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Broken shell step preview in VSCode's chat window #6178
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.
@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?
@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?
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).
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...
Activity
bolinfest commentedon Nov 4, 2025
@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
.jsonlfile under~/.codex/sessionsand could you share the content if it's not sensitive? Perhaps then we could at least figure out what command it was running?fix: improve text encoding for shell output in VSCode preview (openai…
nos1609 commentedon Nov 4, 2025
@bolinfest here you go, a new example
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
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
nos1609 commentedon Nov 4, 2025
Wow, this markup even breaks GH's own code block preview 🤔
bolinfest commentedon Nov 4, 2025
@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
joshka-oai commentedon Nov 4, 2025
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).
nos1609 commentedon Nov 4, 2025
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-8as env, which is already the default encoding in WSL...6 remaining items
nos1609 commentedon Nov 24, 2025
Looks like still not fixed on v0.4.46
etraut-openai commentedon Nov 24, 2025
@nos1609, the PR that attempts to fix this should be in the next published release.
nos1609 commentedon Nov 27, 2025
An example on a system with en-US locale, seems a bit different, hope it'll be fixed by that PR
Fix: Improve text encoding for shell output in VSCode preview (openai…
nos1609 commentedon Dec 16, 2025
dylan-hurd-oai commentedon Jan 8, 2026
@nos1609 what version of the extension are you running / which model are you using?
nos1609 commentedon Jan 20, 2026
Looks like fixed on v0.4.60
But this is the native PowerShell use, no WSL implied
Fix: Improve text encoding for shell output in VSCode preview (#6178)…
ax-openai commentedon Jun 12, 2026
Closing as resolved in current releases.
Fix: Improve text encoding for shell output in VSCode preview (openai…
Fix: Improve text encoding for shell output in VSCode preview (#6178)…