You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(setup-hints): update first_three_launches_can_include_hotkey_notice_too to assert retired spawn-notice behavior #139
The test setup_hints_tests::first_three_launches_can_include_hotkey_notice_too was always broken — even before PR #128 — because its constructed state (hotkey_configured: true with the rest from SetupHintsState::default()) had startup_spawn_hint_dismissed: true, which would short-circuit the prior gate if !hotkey_configured || dismissed to None. PR #128 ("refactor(setup-hints): remove unreachable startup spawn notice", commit 081c1cf) retired the spawn notice entirely; PR #128's own commit message acknowledged this test was already failing on master for that reason.
Investigation
Pre-refactor(setup-hints): remove unreachable startup spawn notice #128: gate was if !hotkey_configured || _state.startup_spawn_hint_dismissed { None } else { Some(notice) }. The test state had hotkey_configured=true but inherited startup_spawn_hint_dismissed=true from default, so the gate returned None and the test panicked at expect("expected startup hint").
Test was wrong, not production. The PR #128 production change was deliberate and correct (the gate was demonstrably unreachable). Fix the test to assert the new intended behavior.
Fix
Update the test to assert startup_hints_for_launch(&state).is_none() for a state with hotkey_configured=true and startup_spawn_hint_dismissed=true. Update the docstring to record the PR #128 provenance so future maintainers understand the change. Keep the #[cfg(target_os = "macos")] gate so the test remains macOS-only, symmetric with other launch-hotkey notice tests in the file.
Companion change
Also includes the dead-code removal of StartupHints::with_spawn_notice (the helper left orphaned by PR #128). Without that removal, cargo clippy -p jcode-setup-hints --all-targets --all-features -- -D warnings fails with -D dead_code implied by -D warnings. That removal is identical to PR #137 ("fix(setup-hints): delete orphaned StartupHints::with_spawn_notice helper") — cherry-picked onto this branch because it's strictly required for clippy to pass.
Activity
kilo-code-bot commentedon Oct 19, 2026
This issue appears to be a duplicate of #136.
Similarity score: 92%
This comment was generated by Kilo Auto-Triage.
fix(setup-hints): update first_three_launches_can_include_hotkey_noti…