# Pull request and issue link preview

> Agents cite pull requests and issues all the time ("I opened PR #712", "see issue #40").

- Area: Desktop, mobile and web
- Plans: All plans
- Last checked against the product: 2026-11-24
- Web page: https://agentsroom.dev/docs/pr-link-preview

## What it does

Agents cite pull requests and issues all the time ("I opened PR #712", "see
issue #40"). Hovering such a GitHub link in the Conversation view shows a card
with its title, number, repository, state (draft, open, merged, closed),
author, and for a pull request its review verdict (approved, changes
requested) and the state of its checks (CI passed, failed, running). No need
to leave AgentsRoom to know where it stands. GitLab merge requests and issues
(gitlab.com or your own instance) get the same card. On the phone, a long
press on the link shows the same card.

## Where to find it

Conversation view of an agent: hover a link to
`github.com/<owner>/<repo>/pull/<number>` or `.../issues/<number>`, or to a
GitLab `.../-/merge_requests/<number>` or `.../-/issues/<number>`, for a
moment. Click the link to open it in the browser, as before.

On the phone: agent screen, Conversation view, long press the link. A tap
still opens it in the browser.

## How to use it

1. Connect GitHub (Import from GitHub) or GitLab (Import from GitLab) once,
   or use the grey PR badge of the Changes tab. The same connection serves the
   PR badge and the CI badge.
2. Hover the link in the agent's answer: the card appears after a short pause.

## Settings

None.

## Agent tools (MCP)

None. The agent writes the link; the card reads it for you.

## Providers

All providers, no difference: the card reads the text shown in the
conversation, whatever the agent CLI.

## Mobile

Yes: long press a GitHub or GitLab pull request, merge request or issue link
in the agent's Conversation view. The card shows the same title, state,
author, review and checks; its "Open #<number> on GitHub" (or "Open !<number>
on GitLab") line opens the link. The desktop reads it with its GitHub or
GitLab connection (the phone never holds the token), so the desktop must be
connected.

## Limits

- GitHub.com and GitLab links of the Conversation view. Links printed in the
  terminal come later.
- GitLab: only the instance you connected is asked (gitlab.com or your own).
  The review shows "Approved" once someone approved; "Changes requested" is
  not shown for GitLab.
- Nothing is read until you hover (or long press on the phone). A card is
  kept for a minute: hovering the same link again does not ask GitHub again.
- Without a GitHub (or GitLab) connection, or for a private repository the
  connection cannot see, the card says "Preview unavailable: no account linked for this
  repository".

## Common questions

- **Can I see if a pull request an agent mentions is merged without leaving
  AgentsRoom?** Yes: hover its GitHub or GitLab link in the Conversation view,
  or long press it on the phone.
- **Does the preview work with GitLab merge requests?** Yes, for gitlab.com
  and for the self-hosted instance you connected: title, state, author,
  approvals and pipeline.
- **Does AgentsRoom read every link of a conversation?** No: only the link you
  hover, and only after a short pause.
- **Why does the card say no account is linked?** Connect GitHub (Import from
  GitHub) or GitLab (Import from GitLab). For a private repository, the
  connected account must have access. A GitLab link of an instance other than
  the connected one is never read.

## Related

- [Pull requests from the Changes tab](https://agentsroom.dev/docs/pull-requests.md): create, follow and review the pull request of a branch.
- [CI pipeline status in the Changes tab](https://agentsroom.dev/docs/ci-pipeline-status.md): the CI badge of a branch.
