fix(ui): paginate all task-list views (#23564)

## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work.
> - Its task lists help people find and manage work across personal and
organization views.
> - Several personal views stop after 100 tasks, and Blocked stops after
200 tasks.
> - Other lists have page reads but lack a consistent way to load more
or retry a failed page.
> - This pull request makes pagination available across every task-list
view.
> - People can reach older tasks, keep filters active, and retry without
losing readable rows.

## Linked Issues or Issue Description

**What happened?**
Task lists have inconsistent pagination. Mine, Recent, and Unread stop
at the first task batch. Blocked stops at 200 tasks. Everything has the
same missing-page behavior before this PR. Some organization layouts and
searches replace paged rows with separate capped queries.

**Expected behavior**
Every task-list view can load its remaining tasks. A failed later page
keeps loaded tasks visible and offers a retry.

**Steps to reproduce**
1. Use a company and account with more tasks than a view's first batch.
2. Open Mine, Recent, Unread, Everything, or Blocked and scroll to the
bottom.
3. Try to reach older tasks. The affected views stop without a next-page
control.
4. Check organization status views, Archived, search, and board layouts
for consistent loading controls.

**Paperclip version or commit**
The affected code is present at base commit
`53bebb59f907571228dfb85a834a38536f934aa6`.

**Deployment mode**
Observed on hosted staging. Verified locally from source on macOS arm64.

GitHub searches found no duplicate open PR or directly matching issue.

## What Changed

- Apply one task pagination control to personal, organization, status,
archive, classic, and sandbox task lists.
- Make Recent, Unread, and Everything page through touched tasks. Remove
the shared 100-task display cutoff.
- Filter unread tasks on the server before paging.
- Keep Mine's coherent initial snapshot. Fetch older task pages through
the existing authorized list API.
- Add older pages to Blocked. Load Needs attention task details in
batches from its existing task index.
- Let the Tasks route supply paged search and board data to the shared
list components, so separate capped queries cannot replace loaded pages.
- Keep loaded rows visible during later-page loading and errors. Keep
the retry control available when the final attention page fails.
- Pause the classic and streamlined lists' automatic server-page reads
after a later-page error. Keep an explicit retry button available to
restart that page.
- Keep one paging and retry control inside each task-list component for
list and board layouts.
- Reuse the same request filters for the first and later Legacy Inbox
pages.
- Preserve the array cache contract for archive rollback, live updates,
and sharing the first page across tabs.
- Update product documentation and cover the additional views with
regression tests.

## Verification

- Revision: `9275d37c06dc14d00b6759ad71fb6402252db84b`, based on
`origin/master` at `53bebb59f907571228dfb85a834a38536f934aa6`.
- Environment: macOS arm64, Node v25.6.1, pnpm 9.15.4.
- From `ui/`, ran `pnpm exec vitest run
src/components/IssuesList.paging.test.tsx
src/pages/TaskListPagination.test.tsx src/pages/Issues.test.tsx
src/hooks/useInboxTouchedIssues.test.tsx src/lib/inbox.test.ts
src/lib/blockedInbox.test.ts src/lib/inboxArchiveCache.test.ts
src/lib/inboxOrderPin.test.ts src/hooks/useSharedPolling.test.ts
src/hooks/useSharedPollingSnapshot.test.tsx
src/hooks/useTaskListCollection.test.tsx`: all 133 tests passed across
11 files.
- Real IssuesList tests cover both UI modes. They verify that provided
board and search pages stay visible, capped column and search queries do
not run, and each layout has one paging and retry control. Only leaf row
and board rendering are stubbed.
- Real Inbox page tests load later Mine and Recent pages in both UI
modes. They also check Unread's server filter, first-page and later-page
filter agreement, and removal of the control after the last page.
- Page tests cover All tasks, Active, Backlog, Done, Archived, Needs
attention, Blocked, and classic Tasks with server search. Supporting UI
services and row rendering are isolated.
- Red-green regressions proved the old 100-task display cutoff and
automatic retries after a failed page. The fixed lists keep readable
rows and require an explicit retry after failure.
- The work-limit test uses 500 full task fixtures across five pages. A
deterministic counter throws above a linear task-ID read budget. Ten
unchanged rerenders per page perform no collection work.
- Tests also cover page overlap, duplicate observer events, last-page
detection, loading and retry, account and company changes, archive
rollback, live invalidation, and the fallback without
IntersectionObserver.
- Ran `pnpm --dir ui typecheck`: passed.
- Ran `node scripts/check-test-budget.mjs --base origin/master`: passed
for all four changed test files.
- Ran `git diff --check origin/master...HEAD`: passed.
- A prior `pnpm verify` attempt selected 2,319 files and started a broad
server run. It was stopped to avoid duplicating broad CI for this UI
change. That interrupted attempt is not a pass.
- Full local build and browser acceptance of the modified pages were not
run. [Greptile passed with 5/5 on this
revision](https://github.com/paperclipai/paperclip/pull/23564#issuecomment-7362362373).
Both inline review threads are resolved. [CI
typecheck](https://github.com/paperclipai/paperclip/actions/runs/47004999629/job/143907916923)
and
[build](https://github.com/paperclipai/paperclip/actions/runs/47004999629/job/143907916990)
passed. [Both required CI checks passed on this
revision](https://github.com/paperclipai/paperclip/actions/runs/47004999629):
`ci / e2e` and `ci / verify`. No CI checks remain pending or failed.
Confirmation that automated design review has cleared the prior hold is
still pending.

## Risks

- Task updates can move rows between offset pages. The merge removes
duplicate task IDs, and live refreshes update loaded pages.
- Search and task filters cover loaded rows in personal views. Use Load
more tasks to include older rows while filters are active.
- Mine keeps the existing snapshot and access behavior. The change adds
no database migration or public API contract.

## Model Used

OpenAI `gpt-6.1-sol` through the Codex harness, with xhigh reasoning
effort and tool use.

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [x] All Paperclip CI gates are green
- [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge

---------

Co-authored-by: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Devin FoleyandPaperclip authored and GitHub committed 2026-12-02 17:28:12 -08:00
1 parent 2a8a0b8e18
commit 2b65b97cae
18 files changed
+983 -160

No files matched your search

+7
View File
@@ -102,6 +102,13 @@ Tasks have parentage. Every task exists in service of a parent task, all the way
The current issue model includes stable issue identifiers, parent/sub-issues, blockers, a single assignee, comments, issue documents, attachments and work products, and review/approval handoffs. That structure keeps work inspectable by both the board and agents while still allowing agents to decompose work into smaller tasks.
Task lists load additional pages as you scroll, with a **Load more tasks** button
available as well. This applies to personal views, including Mine, Recent, Unread,
Everything, and Blocked, and to organization views and their board layouts.
Recent has no fixed 100-task cutoff. Needs attention loads task details in pages
from its attention index. With search or task filters active, use the button to
include older tasks. A failed page keeps loaded tasks visible and offers a retry.
Canceling a task with active subtasks opens a modal headed “Cancel N active subtasks?”
The modal lists each readable active descendant's status icon and title, without task IDs or links.
Done and canceled tasks are excluded. The person can cancel only the parent,