Skip to content

Let readers find a past conversation by title — History offers only 30-at-a-time paging, while every file list has a filter field #158

Open

Description

@bencode

Problem

listStoredConversations (ui-packages/web/src/data/conversation-store.ts:20) pages the by-last-active index 30 at a time, and that cursor is the only retrieval the store offers — no query by title exists anywhere. The History panel's whole reach is scroll plus "Show 30 more" (ui-packages/web/src/features/conversation/conversation-history.tsx:233–241). A reader who discussed a document two weeks ago can only page back through every conversation since.

The file side of the same product already solved this list-finding problem: the library, recent and starred lists each carry a "Filter files" searchbox (see ui-packages/web/src/shell/file-navigation.integration.test.tsx:112–127). History is the one growing list without one — even though #46 made titles worth reading and renaming, and creation/activity times (commit 69d165d) gave each row orientation. The agent's memory notes do not close this gap: they are curated notes, not the reader's way back to a conversation.

Proposal

  • Add a title filter field to the History header, mirroring the library's "Filter files" searchbox: case-insensitive substring match on the title (the auto-title or the reader's rename).
  • Implement it as a store-level query, not a filter over the loaded page, so it reaches conversations beyond the visible 30.
  • Keep recency order among matches; an empty query keeps today's paged behavior unchanged.

Goal

After this, a reader who remembers any word of a conversation's title types it into History and lands on that conversation, with every stored conversation reachable — no paging through "Show 30 more" to get there.

Verification

grep -rqiE 'filter|search' ui-packages/web/src/features/conversation/conversation-history.tsx ui-packages/web/src/data/conversation-store.ts
# store test: a title query returns matches beyond the first loaded page;
# history test: typing into the filter field leaves only matching rows
cd ui-packages/web && pnpm vitest run --project unit src/data/conversation-store.test.ts src/features/conversation/conversation-history.test.tsx

Refs

Activity

  1. added
    enhancement
    source:scheduled
    on Oct 21, 2026
  2. bencode commented on Oct 21, 2026

    @bencode
    OwnerAuthor

    Independent review — posted by the scheduled issue-reviewer loop (a session separate from the one that files these issues), under the maintainer's standing instruction to evaluate, sharpen, or retire source:scheduled proposals. Audited against main@ebb0ee0.

    Evidence audit: all citations confirmed to the line.

    • ✅ data/conversation-store.ts — defaultPageSize = 30; listStoredConversations (:20 area) is a by-last-active cursor walk and the only retrieval the store offers; "title" appears only in the rename/update path (:110-117), no query exists.
    • ✅ conversation-history.tsx:233-241 — "Show 30 more" is the sole reach beyond the first page; no filter/searchbox anywhere in the panel.
    • ✅ shell/file-navigation.integration.test.tsx:112-127 — the "Filter files"/"Filter recent files"/"Filter starred files" searchbox pattern is real and is exactly the control this mirrors.
    • ✅ PRODUCT.md:39 — "Prefer familiar controls" verified; this reuses the app's own pattern rather than inventing one.
    • ✅ Complements, not duplicates: Let readers rename a conversation — the auto-title is a permanent first utterance #46 (rename, closed) made titles worth matching; Give conversations an export path — weeks of questions and answers live and die with the browser profile #50 (export, closed) is the way out; nothing open or closed covers finding a past conversation.

    Verification block repaired (logged here per policy): the original block only ran the two existing test files, which pass on unmodified main — the verify gate reported "implemented" with nothing implemented (inverse of the #41/#55 anchor refusals). Prepended a discriminating grep over the two deliverable files:

    grep -rqiE 'filter|search' ui-packages/web/src/features/conversation/conversation-history.tsx ui-packages/web/src/data/conversation-store.ts

    It fails today ✓ (neither file contains either word); re-linted ✓; verify now fails today ✓ (was falsely passing).

    Verdict: valid, keep open. Sensor: lint ✓, verify ✗. One sharpening suggestion: the store-level query (not filtering the loaded page) is the load-bearing half of the proposal — a UI-only filter over 30 loaded rows would satisfy the grep but not the Goal, so the store test ("returns matches beyond the first loaded page") should be written first and kept as the regression anchor.

  3. bencode commented on Oct 24, 2026

    @bencode
    OwnerAuthor

    Re-audit — posted by the scheduled issue-reviewer loop, independent of the authoring session. Against main@90b046f (20 commits since the last review at ebb0ee0; two of them land in this issue's own files).

    Evidence audit: premises hold; one line drift.

    • ✅ conversation-store.ts:11,20 — defaultPageSize = 30; listStoredConversations is still the by-last-active cursor walk; title appears only in the rename path (:122-129).
    • 🔁 conversation-history.tsx:243-247 — "Show 30 more" (cited :233-241, drifted ~+6); still the only reach beyond the first page, still no filter field.
    • ✅ Verification anchor still discriminates: filter|search has zero matches in both cited files at HEAD.

    New since the review (6d92ea4, e3e4447): the composer gained a find-by-title path — rankConversations (conversation-mentions.ts:17-30) case-insensitively title-substring-matches over listAllStoredConversations (conversation-store.ts:50, full store, no paging), surfaced by typing #. Adjacent, not a substitute: that inserts a reference into the draft; this issue's act is opening the conversation from History. Not implemented, and no open or closed issue covers it → not a duplicate.

    Sharpening: the first review made the store-level query the load-bearing half. The codebase has since set its own precedent — the # path ships full-load + in-memory rank, recency-first. Mirroring that in History is now the familiar-controls route, and the two should share one matching helper. The regression anchor to keep is the history-level test (typing leaves only matching rows, including rows beyond the first 30), not the store-query form.

    Sensor: lint ✓; verify ✗ → not implemented on main.

    Verdict: valid, keep open.

  4. bencode commented on Oct 27, 2026

    @bencode
    OwnerAuthor

    Re-audit — posted by the scheduled issue-reviewer loop, independent of the authoring session. Against main@dbf9cb6d (≈40 commits since the last review at 90b046f; 8 touch this issue's files, none add a History filter).

    Evidence audit: premises hold; one line drift.

    • ✅ conversation-store.ts:11,20 — defaultPageSize = 30, listStoredConversations unchanged; title still appears only in the rename path.
    • 🔁 conversation-history.tsx:251 — "Show 30 more" (body cites :233-241; drifted ~+18 through the composer/background-reply work); still the only reach beyond the first page, still no filter field.
    • 🔁 the # find-by-title path moved: conversation-mentions.ts → composer/conversation-mentions.ts (rankConversations still :17); still adjacent, not a substitute.

    Verification block still discriminates: filter|search has zero matches in both cited files at HEAD.

    Duplicate check: clean (open + closed).

    Sensor: lint ✓; verify ✗ → not implemented on main.

    Verdict: valid, keep open. The prior review's load-bearing note stands: mirror the # path's full-load match in History (share one matching helper), and anchor on the history-level outcome — typing leaves only matching rows, including rows beyond the first 30.

  5. bencode commented on Nov 2, 2026

    @bencode
    OwnerAuthor

    Re-audit — posted by the scheduled issue-reviewer loop, independent of the authoring session. Against main@d05b6b6 (4 commits since the last review at dbf9cb6 — the plugins feature de9243b/4baf829 and the docs merge; none touch this issue's files).

    Evidence audit: zero drift since the last review.

    • ✅ conversation-store.ts:11,20 — defaultPageSize = 30; listStoredConversations still the by-last-active cursor walk; title still appears only in the rename path (:122-129).
    • ✅ conversation-history.tsx:251 — "Show 30 more", still the only reach beyond the first page; no filter field.
    • ✅ the # find-by-title path is untouched (composer/conversation-mentions.ts:17 rankConversations); still adjacent, not a substitute.

    Verification block still discriminates: filter|search has zero matches in both cited files at HEAD.

    Duplicate check: clean (open + closed; #202/#171/#46/#50 all different acts).

    Sensor: lint ✓; verify ✗ → not implemented on main.

    Verdict: valid, keep open. Sharpening from the prior review stands: mirror the # path's full-load match in History (share one matching helper), and anchor on the outcome — typing leaves only matching rows, including rows beyond the first 30.

  6. bencode commented on Nov 13, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Re-audit at d05b6b6 — second-stalest review this beat (12 days). HEAD still unchanged since 2026-10-28; valid, stays open; no edits.

    Verdict unchanged: valid, keep open. Prior sharpening stands: mirror the # path's full-load matching (share one helper), and anchor the test on the outcome — typing leaves only matching rows, including rows beyond the first 30.

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

    enhancementsource:scheduled

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions