Codex App: show GitLab Merge Request link in sidebar, including self-hosted GitLab

Open 💬 0 comments Opened Jun 8, 2026 by janbernloehr

What variant of Codex are you using?

App

What feature would you like to see?

When working in a GitLab-backed repository, Codex App should detect the associated GitLab Merge Request and show a direct link to it in the floating/sidebar UI, similar to how it shows a GitHub Pull Request link for GitHub repositories.

This should support both:

  • GitLab.com
  • self-hosted GitLab instances / GitLab Enterprise

Current behavior

For GitHub repositories, Codex App surfaces a convenient PR link in the floating/sidebar UI. For GitLab repositories or branches associated with an MR, the equivalent GitLab Merge Request link is missing.

This is especially limiting for organizations using self-hosted GitLab, where Codex may work with the local repository but does not provide the same workflow context as it does for GitHub PRs.

Expected behavior

If the current branch has an associated GitLab Merge Request, Codex App should show a visible MR link in the sidebar, for example:

  • “Open Merge Request”
  • GitLab MR title / ID
  • target branch
  • MR status, if available
  • link to the self-hosted GitLab instance when applicable

Why this matters

For teams using GitLab — especially self-hosted GitLab — this is one of the main missing workflow integrations compared with GitHub.

Even if Codex can operate on the local repository, the app loses important workflow context because users cannot quickly jump back to the active MR from the Codex UI.

Possible implementation

Codex could detect GitLab remotes such as:

  • git@gitlab.com:group/project.git
  • https://gitlab.com/group/project.git
  • git@gitlab.company.com:group/project.git
  • https://gitlab.company.com/group/project.git

Then resolve the active branch to an MR via the GitLab API.

For self-hosted GitLab, Codex could allow configuring one or more GitLab hosts and access tokens, similar to how other integrations handle enterprise/self-hosted instances.

A minimal fallback would already be useful: construct a best-effort MR search URL for the current branch on the detected GitLab host.

Additional information

There is an older broad issue for supporting non-GitHub platforms (#8156), but it is closed and does not cover this specific Codex App UX parity issue, especially not for self-hosted GitLab.

View original on GitHub ↗