Skip to content

fix(setup-hints): update first_three_launches_can_include_hotkey_notice_too to assert retired spawn-notice behavior #139

Closed

Description

@KooshaPari

Summary

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

Decision

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

  1. added
    kilo-duplicate
    kilo-triaged
    on Oct 19, 2026
  2. kilo-code-bot commented on Oct 19, 2026

    @kilo-code-bot

    This issue appears to be a duplicate of #136.

    fix(setup-hints): delete orphaned StartupHints::with_spawn_notice helper (#136)

    Similarity score: 92%

    This comment was generated by Kilo Auto-Triage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kilo-duplicatekilo-triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions