← Back to Pull requests

Add support for metacity-theme-3.xml #826

Merged
City-busz merged 2 files (52 lines) on Nov 30, 2026 18:58 UTC
View on GitHub
City-busz City-busz commented on Oct 05, 2026 11:13 UTC
Author
Diff: 52 lines (+47 / -5) across 2 files Reviewer: vkareh Review duration: 81105m
All Vouch review confidence checks passed
Residual risk 0.07 = Change Risk (0.28) × (1 − Review Confidence (0.76)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.28 · 52 lines diff across 2 files
0.28
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.52 · 2 substantive comment(s)
0.52
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
75%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.238
Real PR Conversation Timeline
4 items
vkareh vkareh commented on code on Nov 28, 2026 15:55 UTC
Code Review
capplets/common/mate-theme-info.c:1
@@ -1000,8 +1000,10 @@ marco_dir_changed (GFileMonitor              *monitor,
 
   affected_file = g_file_get_basename (file);
 
-  /* The only file we care about is metacity-theme-(1|2).xml */
-  if (!strcmp (affected_file, "metacity-theme-1.xml") || !strcmp (affected_file, "metacity-theme-2.xml")) {
+  /* The only file we care about is metacity-theme-(1|2|3).xml */

This entire block ends up calling update_marco_index with the file that was deleted, which means if a theme deletes metacity-theme-1.xml, it will report has_marco=FALSE above even though it still contains metacity-theme-3.xml, for example.

I think it needs to call the function with the highest version that exists, rather than the lowest version that was deleted.

vkareh vkareh requested changes on Nov 28, 2026 15:56 UTC
Changes Requested Reviewer

There seems to be a bug here that was already present, but mostly hidden since most modern themes ship with the newer theme file.

City-busz City-busz commented on code on Nov 28, 2026 17:18 UTC
Code Review
capplets/common/mate-theme-info.c:1
@@ -1000,8 +1000,10 @@ marco_dir_changed (GFileMonitor              *monitor,
 
   affected_file = g_file_get_basename (file);
 
-  /* The only file we care about is metacity-theme-(1|2).xml */
-  if (!strcmp (affected_file, "metacity-theme-1.xml") || !strcmp (affected_file, "metacity-theme-2.xml")) {
+  /* The only file we care about is metacity-theme-(1|2|3).xml */

Okay, I fixed that.

Reviewers
Assignees
City-busz City-busz
Labels
risk: low confidence: 75.6% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 28.2% (LOW) · Higher = larger blast radius
28.2%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 75.6% · Lower = rushed or shallow review
75.6%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 6.9% · Safe to merge
6.9%