openai / openai/codex

Typst is missing from the chat code-block language picker

Open Beginner friendly
#43,707 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What version of the Codex App are you using (From “About Codex” dialog)?

26.901.51231

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Darwin 25.6.0 arm64 arm

What issue are you seeing?

Typst is missing from the language picker for code blocks in Codex App chats. As a result, a chat code block cannot be explicitly set to Typst and does not receive Typst syntax highlighting.

What steps can reproduce the bug?
  1. Open a chat in the Codex App.
  2. Create or receive a fenced code block containing Typst source.
  3. Open the code block's language picker.
  4. Search for Typst or typst.

Typst is not listed.

Example:

#set page(width: 10cm)
= Hello, Codex
What is the expected behavior?

The language picker should offer Typst, and selecting it should apply Typst syntax highlighting to the code block.

Additional information

No matching open or closed issue was found by searching this repository for Typst syntax highlighting.

The packaged app already contains Shiki's Typst grammar, including the typ alias and .typ file mapping. However, the chat code-block path uses a separate hardcoded highlight.js language registry, and Typst is absent from that registry. This appears to explain why Shiki's existing Typst support does not reach the chat language picker.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the chat code-block language picker and its separate hardcoded highlight.js language registry; verify how the packaged Shiki Typst grammar is unrelated to this path. Done means searching for Typst finds it in the picker, and selecting it applies Typst syntax highlighting to the provided fenced example.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
75/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.