Skip to content

id(find): local tag-list failures are silently reported as empty or partial search results #12080

Closed

Description

@dezren39

Verified behavior

The local-search branch of cmd_find_matches suppresses both failure modes while traversing local tags:

  • if let Ok(mut list) = store_handle.tags().list().await treats a failure to start listing as an empty tag set.
  • if let Ok(item) = item skips individual stream errors and continues with partial results.

The function returns Result<Vec<FindMatch>>, and the remote branch propagates connection, protocol, and response errors. A local database/list failure can therefore be reported to callers as a successful empty or incomplete search result.

Evidence: pkgs/id/crates/id-cli/src/commands/find.rs, local branch of cmd_find_matches (around lines 955–957 on current main).

Why it matters

A damaged, inaccessible, or otherwise failing local tag store looks indistinguishable from “no matches,” which can mislead users and downstream commands. Stream failures can also silently produce incomplete results.

Acceptance criteria

  • Propagate tag-list initialization and item-stream errors as errors (or provide an explicit partial-result contract; do not silently return empty/partial success).
  • Add tests for failure to initialize the tag listing and for an item-stream error, asserting the caller receives visible failure rather than an empty/partial successful result.
  • Preserve normal local and remote search behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions