[Remote][macOS] Switching chats repeatedly escapes underscores in unsent composer drafts
What version of the Codex App are you using (From “About Codex” dialog)?
26.818.21641 (build 6849)
What subscription do you have?
Unknown; the current plan is not shown in the Codex app UI used for this report.
What platform is your computer?
macOS 26.6.1 (25G76), Darwin 25.6.0 arm64 arm
What issue are you seeing?
In Codex Remote, an unsent composer draft is modified when switching to another chat and then returning. Markdown escape characters accumulate before underscores, and a space can be restored as the literal HTML entity  .
Minimal original text:
sara_storage_config
After switching away from the chat and returning, the composer adds backslashes before the underscores. Repeating the chat switch adds more backslashes, so the draft becomes progressively more corrupted. In the observed case, a space at the end of the draft was also shown as the literal text  .
The corruption happens before the prompt is sent. It appears to occur while persisting or restoring the composer draft, and it is visible directly in the input field.
What steps can reproduce the bug?
- Open a Codex task through Remote.
- Type
sara_storage_configinto the composer without sending it. - Switch to a different chat.
- Return to the original chat.
- Observe that backslashes have been inserted before the underscores.
- Repeat steps 3 and 4.
- Observe that additional backslashes accumulate on each restore. A trailing space may also appear as the literal text
 .
What is the expected behavior?
Switching between chats should preserve an unsent draft byte-for-byte. Restoring the draft repeatedly should be idempotent: sara_storage_config should remain exactly sara_storage_config, with no added backslashes or HTML entities.
Additional information
- Surface: Codex Remote composer in the ChatGPT/Codex desktop app.
- Bundle identifier:
com.openai.codex. - Local CLI version available on the host:
codex-cli 0.147.0. - The visual pattern is consistent with an already escaped Markdown/HTML draft being escaped again during each persistence/restore round trip. This is a hypothesis based on the observed output.
- Public issue searches for combinations of
composer draft,backslash,escaped underscore,switch chat, and did not find an exact existing report as of 2026-08-21.
2 Comments
This bug behavior also exists in current windows codex app.
Redacted screenshot showing the composer after repeated chat switches. Unrelated prompt content has been removed; the repeated backslash accumulation and literal
 remain visible.<img width="744" height="127" alt="Image" src="https://github.com/user-attachments/assets/c21df2d3-6f9f-4954-bbdc-1cd67a9b75b1" />