Registry Mirror
Skip to content

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

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 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.

Before After
Commit b68aedfdb7 34b06c172e
Summary Before: no reviewers, one comment After: reviewer and Approved entry
Timeline Before: approval absent After: approval visible
Recording Before After

Scenario · GitLab seed script · Runner verdict

Not shown:

  • 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.
  • Open PRs fix(gitlab): retain approval and withdrawal system notes #21570 and fix(web): handle GitLab approval notes in review actions #21571 carry another fix for this issue; I did not read or build on them.
  • 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

Run by the t3code factory in T3 Code.

juliusmarminge and others added 2 commits November 12, 2026 09:06
… 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>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 13, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 34b06c1

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.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

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.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: ernest0-production

Merge Risk: Minimal · up to eba37

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed 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 Passed 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
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 34b06c1 and eba3717.

Files selected for processing: 2

  • packages/source-control-gitlab/src/server/gitLabMergeRequestJson.test.ts
  • packages/source-control-gitlab/src/server/gitLabMergeRequestJson.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Other scenarios

All 64 scenario measurements match main.

All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded 10.5 KiB 10.5 KiB 0 B (0.0%) 12.7 KiB ✅
Codex short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn running, cold open HTTP decoded 281.7 KiB 281.7 KiB 0 B (0.0%) 302.7 KiB ✅
Codex long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Codex long turn running, history page HTTP decoded 92.4 KiB 92.4 KiB 0 B (0.0%) 107.4 KiB ✅
Codex long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Codex long turn finished, cold open HTTP decoded 381.5 KiB 381.5 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, socket cold open WebSocket decoded 381.6 KiB 381.6 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, work page HTTP decoded 186.2 KiB 186.2 KiB 0 B (0.0%) 200.2 KiB ✅
Codex long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Codex idle thread resume WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell snapshot HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Codex fleet shell subscribe WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Codex fleet shell resume check rows 0 0 0 0 ✅
Codex stale shell reload HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex stale shell reload rows 27 27 0 (0.0%) 27 ✅
Codex stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Codex stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex stale todo list cold open HTTP decoded 72.4 KiB 72.4 KiB 0 B (0.0%) 83.0 KiB ✅
Codex stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Codex stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅
Claude short turn resume WebSocket decoded 10.6 KiB 10.6 KiB 0 B (0.0%) 12.7 KiB ✅
Claude short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn running, cold open HTTP decoded 283.3 KiB 283.3 KiB 0 B (0.0%) 302.7 KiB ✅
Claude long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Claude long turn running, history page HTTP decoded 93.4 KiB 93.4 KiB 0 B (0.0%) 107.4 KiB ✅
Claude long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Claude long turn finished, cold open HTTP decoded 384.2 KiB 384.2 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, socket cold open WebSocket decoded 384.3 KiB 384.3 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, work page HTTP decoded 188.1 KiB 188.1 KiB 0 B (0.0%) 200.2 KiB ✅
Claude long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Claude idle thread resume WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell snapshot HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Claude fleet shell subscribe WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Claude fleet shell resume check rows 0 0 0 0 ✅
Claude stale shell reload HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude stale shell reload rows 27 27 0 (0.0%) 27 ✅
Claude stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Claude stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude stale todo list cold open HTTP decoded 73.4 KiB 73.4 KiB 0 B (0.0%) 83.0 KiB ✅
Claude stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Claude stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅

Baseline: 0775dc4 · PR result: eba3717 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: system comments are hidden from GitLab MRs

2 participants