Skip to content

Bug: task search applies its 25-hit limit before board filters and hides matching work #3745

Closed

Description

@yannickmonney

Bug: task search applies its 25-hit limit before board filters and hides matching work

Suggested severity: P2.

Combining a priority filter with a matching search can return no tasks even though the only priority-filtered task contains that exact search term. TasksWorkspace intersects the filtered board with the generic search endpoint's first 25 hits; search does not receive the selected facet.

Local native fixture: organization SGMunuKBFIJrSVf0LMuIB0sElV4JapJm, project c7773635-7fff-4e35-8ec8-9b41e0056803; 26 active To do tasks created through real local HTTP routes. The oldest task is tasksearchbrowser1790620112 urgent needle at Urgent priority (p0); 25 newer tasks share the prefix but have Medium priority (p2). No archived tasks, comments or dependencies are involved.

Reproduction through the real workspace and query adapters:

  1. Open List: all 26 task title buttons render.
  2. Filter → Priority → Urgent: the single Urgent task remains.
  3. Search tasksearchbrowser1790620112: the task disappears; all lanes read empty. The native /tasks/search request returns 25 other tasks and excludes the Urgent task.
  4. Change the query to tasksearchbrowser1790620112 urgent: the same Urgent task returns. The selected priority did not change.

Expected: combine the query and facets over the complete candidate set before limiting results, or explicitly provide paging/truncation recovery. A matching filter combination must not appear empty because unrelated matches consumed another query's result cap. The tasks guide says filters narrow the board; the table search guide requires wiring query and rows to the same data source.

Root: TasksWorkspace calls search without facets and later intersects its IDs with already filtered tasks. Native search limits results to SEARCH_MAX_RESULTS = 25. This is not the board's separate 2,000-task cap.

Fixture isolation: editing a task changes its search order. The earlier date-control browser audit updated the original target, so the parent preserved it and created this separate 26-task fixture without edits to the target. The final proof uses this untouched ordering precondition.

Acceptance:

  • The 26-active-task reproduction returns the matching Urgent task for both queries.
  • Verify combined assignee, priority and review filters across result boundaries.
  • Bound work with paging or a shared scoped query without silently dropping valid matches.

Evidence: seed-browser-search.py / seed-browser-search.log (native HTTP fixture and direct search controls), browser-search-fixture.json, parent-browser-fixture.test.tsx, parent-browser-fixture-evidence.jsonl (search-cap-before-facet), parent-final-replay.log (8 cases passed across both families). Actual TasksWorkspace, List/Board, filter controls, feature query hooks and adapters execute; network admits only read-only localhost task/project endpoints. Auth identity/directory/navigation and inactive mutation/automation boundaries are fixture seams; the task modal is unmounted. Parent also reproduced the same 1 → 0 → 1 sequence in actual Chrome at localhost:3073; screenshots parent-search-isolated-empty.png and parent-search-isolated-control.png. This proves desktop interaction, not other breakpoints or production behavior.

Distinct from #3596: that report has archived field matches starving active comment matches inside search; this one has only active title matches and a separately applied priority facet. Correctly merging field/comment candidates would not fix this composition. #2054 concerns useListPage's unloaded infinite pages; all 26 tasks are already loaded here. #3597 concerns blocked indicators; this fixture has no dependencies.

Replay from the detached audit worktree with its installed dependencies:

/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x vitest run --config /Users/yannick/.codex/notes/tale-1000-additional/task-dates-next/parent-final.config.ts --silent=false

No production target is used. Both original and isolated browser fixtures are retained; their seeders refuse to reset existing state. The final replay configuration uses the isolated search fixture.

Verified locally against 480ee6a3e6d33c3414a2c0f8a52fded1ddc4ca2d. No production testing, real provider calls or repository source edits. GitHub reporting follows independent local verification. Source comparison is in source-comparison.json; DatePicker, TasksWorkspace, task query hooks, native service, and task adapters are byte-identical to fetched main 2be6c267eaf8b7a67d0e5abe1b0b3d655eb2ca25. FilterPanel has unrelated open/disabled behavior and style changes; its single-select radio implementation is unchanged. TaskModal has unrelated title/description validation changes; its DatePicker bindings are unchanged.

Dedup searched title and full body of all 1,051 all-state issues in issues-live-batch05.json, plus all 102 baseline records. dedup-final.json records corpus hashes, all matches, specific body reviews, and exclusions. All 26 bodies #1941–1966 were read. Manual known debt and repo debt contain no matching accepted gap. Parent independently inspected the proof and source, replayed all eight observation/control cases, and reviewed relevant overlaps. A fresh dedup pass covered all 1,058 issues in issues-live-batch07.json. No matching report was found.

Parent final execution: parent-final-replay.log; all eight cases passed using isolated retained fixtures. Browser observations are confined to the explicitly named cases above.

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

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions