Problem#
When a linked pull request is approved and then added to GitHub's merge queue, T3 Code continues to display its status as Approved. GitHub displays the pull request as Queued, so T3 Code's status is stale and makes it look as though the merge action has not taken effect.
Expected behavior#
T3 Code should recognize GitHub's merge-queue state and display a yellow Queued status for the linked pull request. Once GitHub merges the pull request, T3 Code should transition it to Merged as usual.
Steps to reproduce#
- Link a pull request to a T3 Code thread.
- Obtain the required approval and passing checks.
- Add the pull request to GitHub's merge queue.
- Observe that GitHub reports
Queued while T3 Code still reports Approved.
Why this matters#
The current status does not distinguish an approved pull request awaiting action from one already accepted into the merge queue.
Thanks for the clear report — this is a real gap, not a stale refresh of an existing field.
T3 does not have a merge-queue state, so a PR that GitHub shows as Queued keeps looking Approved here.
What T3 actually shows#
Linked-PR status is built from host snapshot fields that stop at lifecycle + review + checks:
PullRequestStateis onlyopen | closed | merged, with draft overlaid (packages/contracts/src/pullRequest.ts)ThreadPullRequestSnapshotpersistsstate,isDraft,reviewDecision,checksState, andmergeability— nothing for queue membership (packages/contracts/src/orchestration.ts)reviewDecision === "approved"(apps/web/src/components/pullRequest/ThreadPullRequestsPanel.tsx)resolvePullRequestState()and can only render Open / Draft / Closed / Merged (apps/web/src/components/pullRequest/pullRequestIcons.tsx,apps/web/src/components/ThreadStatusIndicators.tsx)GitHub’s fetch path never asks for queue membership either. List and detail queries request
state,isDraft,mergeable,reviewDecision, checks, andautoMergeRequest— notisInMergeQueue/mergeQueueEntry(apps/server/src/pullRequest/gitHubPullRequestJson.ts). The sync reactor copies only those summary fields onto the thread snapshot (apps/server/src/orchestration/PullRequestSyncReactor.ts).So after a PR is approved and then added to the merge queue:
OPEN, stillreviewDecision: APPROVED, andisInMergeQueue: true→ UI says Queuedopen+approved→ UI says Approved / Openstate: "merged"and can show Merged as todayautoMergeEnabledis a different thing. It exists on detail (the armed auto-merge control) and is not on the thread snapshot, so it cannot substitute for a yellow Queued badge on a linked PR.The product already knows enqueue can happen — stack merge treats GitHub’s
enqueuedresponse as success and toasts “merged the stack or added it to its merge queue” (apps/server/src/pullRequest/githubStackActions.ts,apps/web/src/components/pullRequest/PullRequestStackMenu.tsx) — but that does not change the displayed status.Not a duplicate#
I did not find an existing issue or Ideas discussion that asks for a Queued merge-queue status on linked PRs. Nearby “queued” threads are about composer/outbox messages, not GitHub’s merge queue.
Suggested shape (if we take this)#
This is a small, GitHub-only model addition rather than a general status rewrite:
inMergeQueue(or equivalent) onPullRequestSummary,ThreadPullRequestSnapshot, list rows, and detailisInMergeQueue(and maybemergeQueueEntry.state) on the existing list + detail readsCONTRIBUTING.mdstill prefers Ideas discussions for net-new product work. This one is tightly scoped to an existing PR-status surface, and T3 already enqueues into merge queues, so keeping it as an issue looks reasonable.I have not changed code or opened a PR.