Code section formatting by Codex (using ` U+0060) leads to broken file location link

Open 💬 0 comments Opened Feb 8, 2026 by lewis-wf

What version of the IDE extension are you using?

0.4.71

What subscription do you have?

ChatGPT Plus

Which IDE are you using?

VS Code

What platform is your computer?

Darwin 25.2.0 arm64 arm

What issue are you seeing?

It seems like the Codex extension is formatting code sections in markdown as file references, which leads to their content being mangled. The only workaround is to copy the message and look at it manually in the editor.

I suspect this is something to do with the time formatting (e.g. 23:00) being read as a file line reference (file.py:300) or similar.

Prompt: how does the overnight window check work?
Response:

For an overnight schedule like `22:00 -> 06:00`, the window wraps across midnight, so it’s not one continuous `start <= t < end` interval on the same day.

The check becomes:

`in_schedule = (t >= start) or (t < end)`

Why this works:

1. Times late in the evening (e.g. `23:30`) satisfy `t >= 22:00`.
2. Times after midnight (e.g. `02:15`) satisfy `t < 06:00`.
3. Daytime times (e.g. `12:00`) satisfy neither, so they’re outside.

Example with `start=22:00`, `end=06:00`:

1. `21:00` -> false OR false -> out  
2. `23:00` -> true OR false -> in  
3. `03:00` -> false OR true -> in  
4. `07:00` -> false OR false -> out

For non-overnight schedules (`start < end`), you use the normal check: `start <= t < end`.

Displayed text in sidebar:

For an overnight schedule like 22:00 -> 06 (line 0), the window wraps across midnight, so it’s not one continuous start <= t < end interval on the same day. The check becomes: in_schedule = (t >= start) or (t < end) Why this works: Times late in the evening (e.g. 23 (line 30)) satisfy t >= 22 (line 0). Times after midnight (e.g. 02 (line 15)) satisfy t < 06 (line 0). Daytime times (e.g. 12 (line 0)) satisfy neither, so they’re outside. Example with start=22 (line 0), end=06 (line 0): 21 (line 0) -> false OR false -> out 23 (line 0) -> true OR false -> in 03 (line 0) -> false OR true -> in 07 (line 0) -> false OR false -> out For non-overnight schedules (start < end), you use the normal check: start <= t < end.

<img width="776" height="344" alt="Image" src="https://github.com/user-attachments/assets/b556c1bc-97f6-4a1a-8942-789ebd33ed66" />

What steps can reproduce the bug?

See above, you ask for a response, get a respomnse with backtick characters (` U+0060) wrapping text, (possibly requiring file line references) and you get a formatted link such as:

Times late in the evening (e.g. 23 (line 30)) satisfy t >= 22 (line 0).

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗