You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interim result, not final: no code changed in this pass because the brief listed nothing to change. The branch is unchanged at 34b06c1. Pull request #36318 is linked to this thread and watched; at the time of reading it had no reviews, no line comments and no issue comments, was mergeable, and its checks (Test, Lint, Build and Typecheck, the Test Server and Test Web shards, and the three Macroscope checks) were queued or in progress with none failed. The watch is still on: I have not called unwatch_pull_request, so the checks have not been confirmed green and the review bots have not reported yet. The fix itself is as before: decodeNotesJson turns GitLab's two approval system notes into review entries (APPROVED, and DISMISSED for a withdrawal) and still drops every other system note.
Commit 9efd960 (origin/main). Created a private gitlab.com project as the VM's GitLab account, pushed a feature branch, ran glab mr create (MR !1), glab mr approve 1, and glab mr note 1 -m "regular comment". GitLab's notes API then returned two notes: the regular comment (system:false) and 'approved this merge request' (system:true). Started the app with T3CODE_DEV_SEED=0 vp run dev (fresh database), paired a headless Chromium driven by Playwright (the preview browser is blocked by AppArmor on this host), added the clone through Command palette > Add project, and opened MR !1 from the composer header. Summary tab: 'Reviewers: None', 'Comments (1)' listing only 'regular comment'. Timeline tab: only '1 comment', 'Merge request opened' and the commit 'add a'. No approval appears anywhere, though GitLab reports the MR approved. The unit test on origin/factory/repro-9802 ('keeps approval and withdrawal notes as reviews') fails on 9efd960: decodeNotesJson returns [].
Evidence
Created a real private GitLab MR, approved it, and added a regular comment. On both commits, opened the same MR through the composer header and inspected Summary and Timeline. Chromium, 1280×800, light theme, fresh isolated databases. scenarios:prove exited 0: approval absent on base and visible on head.
Approval withdrawal rendering was not exercised; this reproduction covers approval.
Assignments, pushes, and other system activity remain filtered by the fix and were not demonstrated as visible.
Tests
None in this pass. Read the pull request state over REST: gh api repos/pingdotgg/t3code/pulls/36318, .../commits/34b06c172e/check-runs, .../pulls/36318/reviews, .../pulls/36318/comments, .../issues/36318/comments.
Not in this change
Other GitLab system activity (assignments, labels, pushes, title edits) is still not shown in the Timeline; the issue lists it as 'ideally', and surfacing it as comments is what made the first attempt wake watching agents. It needs a non-remark timeline event type, which is a separate change.
decodeDiscussionsJson still filters system notes out of discussion threads; left as is because approvals are not resolvable threads.
The watch report words a review remark as a 'new comment' (pullRequestWatch.ts changeLines); that wording is shared by all hosts and was not changed.
The Summary tab's 'Reviewers' field is fed from the MR detail, not from notes, and was not touched; I did not check whether it reflects the approval after this change.
Other GitLab system activity (assignments, labels, pushes, title edits) is still not shown in the Timeline; it needs a non-remark timeline event type, which is a separate change.
decodeDiscussionsJson still filters system notes out of discussion threads; approvals are not resolvable threads.
Who did the work
Written by Claude Fable 5.2, in Claude Code
Reviewed by GPT-6.1 Sol, in Codex, and by Claude Opus 5.5, each on its own
Proof captured by GPT-6.1 Sol and checked by Claude Opus 5.5
… history
Reproduces #9802: GitLab's approval system notes are dropped, so the
merge request shows no approval in its timeline or comments.
AI-assisted; verified with the tests and tools listed above.
GitLab records an approval only as a system note, and the adapter dropped
every system note, so an approved merge request showed no approval anywhere.
The notes decoder now turns the two approval notes into reviews (APPROVED,
and DISMISSED for a withdrawal), the same shape the other hosts report.
Every other system note is still dropped: labels, assignments and pushes are
not remarks and must not wake an agent watching the merge request.
Fixes#9802
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Macroscope's review found this PR approvable — GitLab approvals and withdrawals now appear as review events in merge-request activity, including existing watch notifications. Exact matching keeps unrelated system notes excluded, with no changes to permissions or remote data.
No code changes detected at eba3717. Prior analysis still applies.
You can add or adjust custom eligibility rules. Learn more.
No actionable comments were generated in the recent review.
Walkthrough
decodeNotesJson now converts system notes with exact trimmed approval or withdrawal text into review comments with APPROVED or DISMISSED states. Other system notes remain excluded.
Changes: GitLab approval notes
Layer / File(s)
Summary
Decode approval system notes packages/source-control-gitlab/src/server/gitLabMergeRequestJson.ts, packages/source-control-gitlab/src/server/gitLabMergeRequestJson.test.ts
decodeNotesJson maps the two recognized system-note bodies to review comments with states APPROVED and DISMISSED. The test checks both states. Other system notes remain skipped.
GitLab approval and withdrawal notes now appear as review entries on a merge request. The change is small and contained, and no concrete merge-blocking issue was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: GitLab approvals and withdrawals now appear on a merge request. The raw summary confirms that decodeNotesJson now maps approval and withdrawal system notes to APPROVED…
Description check
The description follows the repository template closely. It has a Problem section that states the expected behavior and reproduction steps. It has a Change section that explains the fix. It has a Scop…
Linked Issues check
Issue #9802 reports that GitLab MR approvals are not shown in t3code. The whole-PR diff (merge base 0775dc4 to head eba3717) adds a map in packages/source-control-gitlab/src/server/gitLabMergeRe…
Out of Scope Changes check
The whole-PR diff touches only gitLabMergeRequestJson.ts (the approval-state map and the system-note branch in decodeNotesJson) and its unit test. Both changes implement the approval-visibility object…
Full details: Title check
Explanation
The title names the main change: GitLab approvals and withdrawals now appear on a merge request. The raw summary confirms that decodeNotesJson now maps approval and withdrawal system notes to APPROVED and DISMISSED review entries. The title is concise, uses the conventional commit format, and is specific enough for a teammate to understand the primary change.
Full details: Description check
Explanation
The description follows the repository template closely. It has a Problem section that states the expected behavior and reproduction steps. It has a Change section that explains the fix. It has a Scope section that links issue #9802 as the bug. It has a Verification section with reproduction and before/after evidence, plus notes on what was not checked. Gaps: the Tests section says no tests were run in this pass, and the description states that the unit test on the repro branch fails on the base commit, but it does not report a passing test run for the final commit. Checks were queued or in progress and not confirmed green. The description also includes long background content (watch state, bot status) that the template does not request. The required sections are present and the fix is clear, so the check passes, but the author should confirm test results and checks before merge.
Full details: Linked Issues check
Explanation
Issue #9802 reports that GitLab MR approvals are not shown in t3code. The whole-PR diff (merge base 0775dc4 to head eba3717) adds a map in packages/source-control-gitlab/src/server/gitLabMergeRequestJson.ts. The map sends the system notes 'approved this merge request' to reviewState APPROVED and 'unapproved this merge request' to DISMISSED. decodeNotesJson emits these as kind 'review' entries. Other system notes still hit 'continue' and are dropped. The added unit test in gitLabMergeRequestJson.test.ts asserts this mapping. This meets the core reported requirement: an approval reaches the MR review data. Not covered: the issue's broader request for other system activity (assignments, pushes, labels, rejections) in the timeline or comments. The issue asks for this 'at least the timeline' but also calls it ideally desired. The PR states this is deferred to a separate timeline event type. The Summary Reviewers field and timeline rendering were not verified in code. The PR description reports a headless browser reproduction, but it describes head 34b06c1, not the current head eba3717. Its screenshots and runner verdict are not independent evidence for the current head.
Full details: Out of Scope Changes check
Explanation
The whole-PR diff touches only gitLabMergeRequestJson.ts (the approval-state map and the system-note branch in decodeNotesJson) and its unit test. Both changes implement the approval-visibility objective of #9802. The new review entries have empty body, null url, and null path, which fits the approval case. decodeDiscussionsJson is unchanged. Side effects, such as approval entries counting as comments or reaching watch logic, follow from the approach and are not unrelated changes. Head eba3717 differs from the previously reviewed head 34b06c1, but the whole-PR diff against the merge base shows the same code, so no new out-of-scope change was found.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:S10-29 changed lines (additions + deletions).vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Interim result, not final: no code changed in this pass because the brief listed nothing to change. The branch is unchanged at 34b06c1. Pull request #36318 is linked to this thread and watched; at the time of reading it had no reviews, no line comments and no issue comments, was mergeable, and its checks (Test, Lint, Build and Typecheck, the Test Server and Test Web shards, and the three Macroscope checks) were queued or in progress with none failed. The watch is still on: I have not called unwatch_pull_request, so the checks have not been confirmed green and the review bots have not reported yet. The fix itself is as before: decodeNotesJson turns GitLab's two approval system notes into review entries (APPROVED, and DISMISSED for a withdrawal) and still drops every other system note.
Fixes #9802
Reproduction on main
Commit 9efd960 (origin/main). Created a private gitlab.com project as the VM's GitLab account, pushed a
featurebranch, ranglab mr create(MR !1),glab mr approve 1, andglab mr note 1 -m "regular comment". GitLab's notes API then returned two notes: the regular comment (system:false) and 'approved this merge request' (system:true). Started the app withT3CODE_DEV_SEED=0 vp run dev(fresh database), paired a headless Chromium driven by Playwright (the preview browser is blocked by AppArmor on this host), added the clone through Command palette > Add project, and opened MR !1 from the composer header. Summary tab: 'Reviewers: None', 'Comments (1)' listing only 'regular comment'. Timeline tab: only '1 comment', 'Merge request opened' and the commit 'add a'. No approval appears anywhere, though GitLab reports the MR approved. The unit test on origin/factory/repro-9802 ('keeps approval and withdrawal notes as reviews') fails on 9efd960: decodeNotesJson returns [].Evidence
Created a real private GitLab MR, approved it, and added a regular comment. On both commits, opened the same MR through the composer header and inspected Summary and Timeline. Chromium, 1280×800, light theme, fresh isolated databases. scenarios:prove exited 0: approval absent on base and visible on head.
Scenario · GitLab seed script · Runner verdict
Not shown:
Tests
None in this pass. Read the pull request state over REST: gh api repos/pingdotgg/t3code/pulls/36318, .../commits/34b06c172e/check-runs, .../pulls/36318/reviews, .../pulls/36318/comments, .../issues/36318/comments.
Not in this change
Who did the work
Run by the t3code factory in T3 Code.