Skip to content

Add stale-result regression tests for async command palette search #68

@VatsalSy

Description

@VatsalSy

Why

Command palette search can receive async responses out of order, causing stale results to replace newer queries.

Evidence

Scope

  • Add query-token (or equivalent) guard so only the latest search request may update rendered results.
  • Add targeted test(s) that simulate out-of-order async completions.
  • Keep tests focused on behavior, not implementation internals.

Acceptance Criteria

  • Rapidly typed queries cannot be overwritten by slower, older search responses.
  • Test suite includes deterministic stale-response regression coverage for command palette search.
  • Issue Improve JavaScript test coverage (currently at 10.75%) #53 can reference this as one concrete coverage increment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions