Fix crash when minimizing desktop app to tray #3549
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 343 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.349
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3549"
general
weight: 0.35
Him188
Closes #3490
Closing the window with “Minimize to system tray” enabled crashes while ComposeNativeTray encodes the icon against Skiko 0.150.1. Update the tray dependency from
io.github.kdroidfilter:composenativetray:1.3.0todev.nucleusframework:composenativetray:2.1.1, and migrate the two tray imports. This includes the upstream encoding compatibility fix in ComposeNativeTray#428.Add a desktop regression test that renders a colored composable through the tray library, decodes its PNG, and checks dimensions and pixels for both unscaled output and the scaled 32px Windows icon.
Verification
:app:desktop:test: all 5 tests passed, including the icon encoding regression test against Skiko 0.150.1.:app:desktop:createDistributablewith JBR/JCEF 21 using thedesktop-ui-verifyskill, then launched the packaged macOS arm64 app.NoSuchMethodErrororANI FATALentries appeared in the app log.Runtime screenshots
Uploaded as GitHub attachments with the
github-image-uploadskill; all three previews were verified. No verification media is committed.1. Close behavior selected: Settings → Interface shows “最小化到系统托盘” (Minimize to system tray).
!Minimize to system tray selected
2. Window closed, tray available: the native menu shows “显示主窗口” (Open main window) and “关闭应用” (Exit). The app remained running with no visible main window.
!Native tray menu after closing the window
3. Window restored: selecting “Open main window” returned to the same settings page in the same process.
!Main window restored from the tray