[Bug]: GitCafe review summaries offer unsupported reactions
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/web; the same permission logic also affects desktop and mobile.
Steps to reproduce
Use an isolated fixture rather than writing to a live GitCafe repository:
- Supply GitCafe PR activity containing a review summary with ID
review_fixture, alongside an ordinary comment. Keep the provider's advertisedreactions: truecapability. - Open the PR in T3 Code's Summary or Timeline tab and expand the conversation. The review summary offers an add-reaction picker.
- With reaction writes intercepted by a recording transport, select thumbs-up on the review summary.
At the provider layer, this is also reproducible using production gitCafePullRequestJson.toActivity and GitCafePullRequestProvider.setReaction, replacing only GitCafeApi with a recording fake.
Expected behavior
GitCafe review summaries should not offer reaction actions because the integration cannot represent them as supported reaction subjects. Reactions on actual comments and the PR description should remain available.
Actual behavior
The global reaction capability makes review summaries reactable. The activity mapper preserves the review's ID, while the provider labels every supplied reaction subject ID as a PR comment ID. The recording fixture captures:
POST /repos/owner/repo/pulls/7/reactions/
{
"subject": { "kind": "pull_request_comment", "id": "review_fixture" },
"emoji": { "kind": "unicode", "value": "π" }
}
The ID belongs to a review, not a comment. This demonstrates incorrect request construction; no live GitCafe rejection or successful persistence was observed, and no host mutations were used for reproduction.
Supporting API source
GitCafe's official OpenAPI specification, checked on 2026-11-13, permits only issue, issue_comment, pull_request, and pull_request_comment in the JSON request body's subject.oneOf for POST /api/repos/{owner}/{repo}/pulls/{pr}/reactions/. components.schemas.Reaction.properties.subject has the same kinds. Reviews are separate Review objects returned by the /reviews endpoint; there is no review reaction subject.
Impact
Minor bug: the UI offers an unsupported action on GitCafe review summaries.
Version or commit
Reproduced against main at 2d8a843e6be9ca170f3bce98cc92ad76617b00c4.
Environment
Isolated Linux development server and real web client in T3 Code's built-in Browser panel, using fixture RPC responses. Mobile paths were inspected, but native UI interaction was not verified.
Screenshots
Real web client before the fix: review summaries and the ordinary comment all offer reactions.
Workaround
Avoid reacting to GitCafe review summaries; ordinary comment reactions remain supported.
Proposed fix
https://github.com/pingdotgg/t3code/pull/36171
I tried to reproduce this on the current build and could not.
On origin/main c7a3f02e38 I added a test to packages/source-control-gitcafe/src/server/GitCafePullRequestProvider.test.ts. It runs the production GitCafePullRequestProvider.setReaction against a fake GitCafe API: the PR, an empty reactions list, and a review with id review_fixture. Calling setReaction({subjectId: 'review_fixture', content: 'thumbs-up', reacted: true}) sends POST /repos/owner/repo/pulls/7/reactions/ with subject {kind: 'pull_request_comment', id: 'review_fixture'}, so the test fails. That matches the reporter's provider-layer reproduction. I did not run the web client with GitCafe fixture data. That the web client offers the picker on review summaries comes from reading the code: PullRequestSummaryTab.tsx:698 and PullRequestTimelineTab.tsx:782 enable it from the global capabilities.reactions flag for every comment, reviews included.
Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.
[!NOTE] π€ GPT-6.1 Sol responding on behalf of saphitv
@juliusmarminge Reproduced in the real web client against live GitCafe on the same unmodified main commit, c7a3f02e3851923ced8ebd000db79f641e11b038, on Linux using vp run dev with isolated T3 state.
8-second recording: ordinary-comment reaction succeeds, review-summary reaction fails. The idle gap was removed; the recorded interactions run at their original speed.
The disposable public repository and PR #1 remain available. These are real GitCafe objects and network requests, not fixture RPC responses.
Exact steps:
- Clone
https://git.cafe/saphitv/t3-gitcafe-review-reactions-repro.git, add it as a project in T3 Code, and authenticate with GitCafe. - Open PR #1 in Summary. It contains an ordinary comment starting
CONTROL:and a comment-only review startingREVIEW SUMMARY:. - Add π to the ordinary comment: it saves. A fresh GitCafe API read confirms the reaction on
prcomment_01m7akbamnexs839jmyy2tb41m. - Add π to the review summary: the optimistic count briefly appears, then disappears with βThe reaction could not be saved.β
Sending the same review-subject payload directly to the live reaction endpoint also returns HTTP 400:
POST /api/repos/saphitv/t3-gitcafe-review-reactions-repro/pulls/1/reactions/
{"subject":{"kind":"pull_request_comment","id":"review_01m7akbbjve0k8hmbr79pw3ph9"},"emoji":{"kind":"unicode","value":"π"}}
Exact response:
{"type":"https://cafe.sh/errors/validation-error","title":"Invalid request","status":400,"detail":"The request does not match the expected contract at body.subject.id."}
The live reaction list contains the successful ordinary-comment reaction and no review reaction. This supplies the live web-client reproduction missing from the earlier isolated evidence. The scoped fix is #36171.