Skip to content

Commit 23c10b0

Browse files
jgamblinclaude
andcommitted
feat(system): recognize macOS 26 Tahoe in name map
Apple jumped from macOS 15 (Sequoia) to macOS 26 (Tahoe), skipping versions 16-25. Smoke tests on macOS 26.4.1 reported 'macOS Unknown 26.4.1'. This update adds macOS 26 to the name map and improves the test to validate both the new mapping and ensure truly-unknown versions (99) still return 'Unknown'. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent f371548 commit 23c10b0

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/macos_maid/system.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
13: "Ventura",
1717
14: "Sonoma",
1818
15: "Sequoia",
19+
26: "Tahoe",
1920
}
2021

2122

tests/test_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,5 @@ def test_macos_name_mapping():
7575
assert _macos_name((13, 0, 0)) == "Ventura"
7676
assert _macos_name((14, 0, 0)) == "Sonoma"
7777
assert _macos_name((15, 0, 0)) == "Sequoia"
78-
assert _macos_name((16, 0, 0)) == "Unknown"
78+
assert _macos_name((26, 0, 0)) == "Tahoe"
79+
assert _macos_name((99, 0, 0)) == "Unknown"

0 commit comments

Comments
 (0)