Codex Desktop preview pane treats .sql files as unsupported audio instead of plain text

Open 💬 0 comments Opened Jun 19, 2026 by kross51

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

26.616.31447

What subscription do you have?

Pro

What platform is your computer?

Darwin 25.5.0 x86_64 i386

What issue are you seeing?

Codex Desktop on macOS is showing “Audio previews aren't supported yet” when clicking .sql file links from assistant output.

Expected:
.sql files should open as plain text/source code in the Codex preview pane.

Actual:
Preview pane opens, but displays:
“Audio previews aren't supported yet. Open this file outside Codex to view it.”

Environment:

  • Codex Desktop app
  • macOS
  • File type: .sql
  • macOS identifies the file correctly:
  • MIME: text/plain
  • UTI: org.iso.sql
  • UTI tree includes public.text, public.source-code, public.plain-text

Example file path shape:
~/dbo.usp_UPD_Customer.StoredProcedure.sql
~/dbo.usp_UPD_Customer.sql

<img width="274" height="79" alt="Image" src="https://github.com/user-attachments/assets/2bf52988-edbe-4d1a-a5e7-9869653792f6" />

This appears to be a Codex preview routing issue, not a file metadata issue.

What steps can reproduce the bug?

  1. In Codex Desktop on macOS, ask Codex to reference or link to a local .sql file in a response.
  2. Click the .sql file link in the Codex output/preview pane.
  3. Observe that Codex opens the preview pane but does not render the file as text.
  4. Instead, Codex displays: “Audio previews aren't supported yet. Open this file outside Codex to view it.”

What is the expected behavior?

Codex should render .sql files as plain text/source code in the preview pane, similar to other text-based code files.

.sql files are correctly identified by macOS as SQL/text/source-code files, so they should not be routed to an audio/media preview fallback.

Additional information

This appears to be a Codex Desktop preview routing issue rather than a problem with the file itself.

For an affected .sql file, macOS reports:

  • MIME type: text/plain
  • Content type: org.iso.sql
  • Content type tree includes:
  • public.text
  • public.source-code
  • public.plain-text
  • public.data

The exact message shown in Codex is:

“Audio previews aren't supported yet
Open this file outside Codex to view it”

View original on GitHub ↗