Prevent preference defaults startup crash - #1295
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
One reliability concern with the fallback:
Suggest:
Test coverage for the new fallback path ( |
6b91060 to
6294586
Compare
|
One correctness concern: Suggest caching the resolved 🤖 Generated with Claude Code |
6294586 to
ac8ff6f
Compare
|
Reliability note on the fallback: Test coverage is otherwise reasonable — the new test exercises the |
Summary
Validation
⏱️ Timeout: 240s
🛣️ Test lane: full
🔎 Test filter: PreferencesServiceTests
🏗️ Test prebuild: 1 | disable XCTest: 0 | reset module cache: 0
🧪 SWIFT_TEST=1 | SKIP_EVENT_TAP_TESTS=1
🪵 KEYPATH_LOG_LEVEL=3 | KEYPATH_TEST_VERBOSE_LOGS=0
🧹 Refreshing generated /Users/malpern/local-code/KeyPath/.worktrees/preferences-defaults-fallback/.build/debug symlink
♻️ Reusing generated module cache: /Users/malpern/local-code/KeyPath/.worktrees/preferences-defaults-fallback/.build/ModuleCache.noindex
🎯 Swift test args: --filter PreferencesServiceTests
📦 Scratch: /Users/malpern/local-code/KeyPath/.worktrees/preferences-defaults-fallback/.build | HOME=/private/var/folders/0s/42v7yl697hn0l1cdnx0vrvyr0000gn/T/tmp.wA8mCB6K4a
🗂️ Module cache: /Users/malpern/local-code/KeyPath/.worktrees/preferences-defaults-fallback/.build/ModuleCache.noindex
🔨 Building tests...
[0/1] Planning build
[1/1] Compiling plugin CompileKeyboardStageMetal
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/18] Write swift-version--112E4EF74740DA65.txt
Build complete! (3.12s)
🚀 Launching swift test...
[0/1] Planning build
Test Suite 'Selected tests' started at 2026-09-13 09:37:47.157.
Test Suite 'KeyPathPackageTests.xctest' started at 2026-09-13 09:37:47.158.
Test Suite 'PreferencesServiceTests' started at 2026-09-13 09:37:47.158.
Test Case '-[KeyPathTests.PreferencesServiceTests testCanonicalDefaultsFallsBackToStandardWhenSuiteIsUnavailable]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testCanonicalDefaultsFallsBackToStandardWhenSuiteIsUnavailable]' passed (0.002 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testCommunicationConfigDescription_ContainsTCPAndPort]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testCommunicationConfigDescription_ContainsTCPAndPort]' passed (0.001 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testCommunicationProtocol_TCPHasDisplayInfo]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testCommunicationProtocol_TCPHasDisplayInfo]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDDisplayMode_AllCasesHaveDisplayNames]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDDisplayMode_AllCasesHaveDisplayNames]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDHoldDelayMs_CustomPresetUsesCustomValue]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDHoldDelayMs_CustomPresetUsesCustomValue]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDHoldDelayMs_LongPreset]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDHoldDelayMs_LongPreset]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDHoldDelayMs_MediumPreset]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDHoldDelayMs_MediumPreset]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDHoldDelayMs_ShortPreset]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDHoldDelayMs_ShortPreset]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDHoldDelayPreset_AllCasesHaveDisplayNames]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDHoldDelayPreset_AllCasesHaveDisplayNames]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDHoldDelayPreset_MillisecondsValues]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDHoldDelayPreset_MillisecondsValues]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDTriggerMode_AllCasesHaveDisplayNames]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testContextHUDTriggerMode_AllCasesHaveDisplayNames]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testIsValidPort_AcceptsUserPorts]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testIsValidPort_AcceptsUserPorts]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testIsValidPort_RejectsOutOfRange]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testIsValidPort_RejectsOutOfRange]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testIsValidPort_RejectsSystemPorts]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testIsValidPort_RejectsSystemPorts]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testKeyLabelStyle_AllCasesHaveDisplayNames]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testKeyLabelStyle_AllCasesHaveDisplayNames]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testKeyLabelStyle_InitFromRawValue]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testKeyLabelStyle_InitFromRawValue]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testKeyLabelStyle_RawValues]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testKeyLabelStyle_RawValues]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testKindaVimLeaderHUDMode_AllCasesHaveDisplayNames]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testKindaVimLeaderHUDMode_AllCasesHaveDisplayNames]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testPreferredProtocol_AlwaysTCP]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testPreferredProtocol_AlwaysTCP]' passed (0.000 seconds).
Test Case '-[KeyPathTests.PreferencesServiceTests testResetCommunicationSettings_RestoresDefaults]' started.
Test Case '-[KeyPathTests.PreferencesServiceTests testResetCommunicationSettings_RestoresDefaults]' passed (0.000 seconds).
Test Suite 'PreferencesServiceTests' passed at 2026-09-13 09:37:47.166.
Executed 20 tests, with 0 failures (0 unexpected) in 0.007 (0.008) seconds
Test Suite 'KeyPathPackageTests.xctest' passed at 2026-09-13 09:37:47.166.
Executed 20 tests, with 0 failures (0 unexpected) in 0.007 (0.008) seconds
Test Suite 'Selected tests' passed at 2026-09-13 09:37:47.166.
Executed 20 tests, with 0 failures (0 unexpected) in 0.007 (0.009) seconds
Test run started.
Testing Library Version: 1902
Target Platform: arm64e-apple-macos14.0
Test run with 0 tests in 0 suites passed after 0.001 seconds.
✅ All tests passed (21 passed)
📊 Runner summary: lane=full exit=0 prebuild=1 disable_xctest=0 reset_module_cache=0 build=4s test=2s total=6s build_log=252 bytes build_log_swift_warnings=0 build_log_module_cache_warnings=0 log=5337 bytes test_log_swift_warnings=0 test_log_module_cache_warnings=0 test_log_app_warnings=0 test_log_app_errors=0