Skip to content

[P1/bug] No removeEntry UI — clear-all is the only way to shrink the history list #327

Closed

Description

@EVWorth

Context

The historyStore has a removeEntry(id) action and the test suite explicitly covers idempotent removal (historyStore.test.ts:148-160), but the QueryHistory component never wires it.

Problem

The only way to evict a single entry is to clear everything (and lose the rest of the history). For a user debugging a noisy recursive query that fills 200 entries, "clear all" is too blunt — they want to delete just the offending entries.

Files

  • src/components/history/QueryHistory.tsx:42-49
  • src/stores/historyStore.ts:33-36

Expected

A small "×" button on each entry (hover-affordance) or right-click context menu "Delete entry" item, calling removeEntry(entry.id). Single-entry delete should be reversible (the user can re-run the query to re-add it), so no confirmation needed.

Proposed fix

Scope S — add a small "×" button on each entry that appears on hover, or right-click "Delete entry" in the context menu, calling removeEntry(entry.id).

Acceptance

Hover a history entry → "×" icon appears → click → entry disappears from the list; refresh confirms the entry is also gone from localStorage.

Needs human verify

no

Activity

  1. added
    audit
    severity/p1
    kind/bug
    area/history
    on Jul 31, 2026
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

    area/historyauditkind/bugseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions