Repository navigation
Fixes 37885: Inbox task groups, capped activity feed and closed-task links (backport 2.1 #37886) - #37887
Conversation
Fixes #37885 - Triage: a list grouped by type reads on to the scan cap, so groups and the Type counts cover the queue; counts read "N+" while pages remain. - Triage: a link to a closed task opens the Closed tab; the no-match message shows in the list; the timeline credits the proposing agent; "Resolved on". - Activity: a capped list cuts the merged feed at its oldest item, marks the cut day "N+" and says only the newest updates are shown. - Activity: "Today" replaces "Yesterday", since every window runs to now; the feed keeps its gutter at 1024px.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
…k links - A page that fails stops the grouped task list reading ahead, instead of being requested again on every settle; scrolling retries it. - Each task link settles its own tab, and a link followed while the tab stays mounted opens its task. - The capped feed's cut day comes from the whole feed, so a type filter no longer moves "N+" onto a complete day. - Records ADR:2026-11-16-a-grouped-inbox-task-list-reads-ahead-to-the-scan-cap and ADR:2026-11-16-a-capped-inbox-feed-is-cut-at-its-oldest-item.
The presets started and ended on UTC days while the feed heads its days in the viewer's zone, so outside UTC "Today" began hours late, or showed yesterday just after midnight.
- The list's observer retries a failed page only when the sentinel comes back into view; a new observer no longer refires it at once. - Mentions is not cut to the conversations' span: its events carry their own time, not the mention's. - Closed-link tests assert the selected tab and the open task. - Records ADR:2026-11-16-a-link-to-a-closed-inbox-task-opens-the-closed-tab.
… was cut - The task list shows a Retry below its rows when a later page fails. A filter that hides every loaded row leaves nothing to scroll, so the sentinel alone could never ask again. - The fetch reports where the feed was cut (`cutAt`), and the "N+" floor goes on that day rather than on the last card's. In Mentions an old event mentioned today can sit past the cut.
Code Review ✅ Approved 🟡 Medium risk 3 closed / 3 findingsInbox read-ahead, closed-task link routing, and feed truncation alter task discovery and activity visibility, so older updates may be omitted at the cap. Inbox task list now auto-scans grouped results up to the 200-task cap, stops on a failed page, and offers a retry, with closed-task links opening the Closed tab and the activity feed cut at its oldest item when capped. Two resolved findings cover the unbounded refetch on a failing page and the missing ADR records for the new list rules. No issues found. ✅ 3 closed✅ Bug: Grouped auto-scan keeps refetching a failing next page with no limit
✅ Quality: New Inbox list rules (grouped auto-scan, feed cut, closed-link tab) unrecorded
Closed: Bug: Failed page still refetches via the sentinel observer, isLoadMoreError aside
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes #37885
Backport of #37886 to
2.1. The diff is the same as #37886's; it applied cleanly to2.1. Not backported to2.0, which has no AI-mode Inbox. The defects were found on2.1.Triage
useInboxInfiniteListnow exposesloadMorefor this.?taskId=for a closed task now opens the Closed tab with the task selected. Only the first load decides, so the viewer can then move to any tab.TaskDetailPanelgains anonLoadedcallback for it.Activity
6. Capped feed.
/v1/activityreturns at most 200 events and takes no cursor or end time, so the UI can't page past them. When a list comes back full, the merged feed is cut at its oldest item, so older days no longer show conversations alone. The cut day reads "200+ Updates", and the end of the feed says only the newest updates are shown (new messageinbox-activity-capped, translated into every locale). Paging past the cap needs a cursor orendTson/v1/activity; I've left that as a follow-up.7. "Today" replaces "Yesterday". "Yesterday" ran from the start of yesterday to now, so it listed today. A yesterday-only window needs an end time the activity API doesn't take; with a page cap, a busy today would also leave it empty. Every preset runs to now, so the one-day preset is "Today".
8. 1024px. The feed's right edge was clipped.
scrollbar-gutter: stable both-edgesclips a full-width feed in Chromium under a classic, non-overlay scrollbar, as on Windows. The scroller now reserves the end edge only, and the Inbox gives the Activity tab the side gutter its toolbar's negative margin already assumes.Not changed, found in the same pass:
requested-onto Title Case for its Data Access Requests table, and the Inbox shares the key.Before/after GIFs are on #37886; they were recorded against
2.1.Type of change:
High-level design:
UI fixes confined to
InboxPage/, plus one new locale message and theresolved-onEnglish label. Three choices are recorded:Tests:
Use cases covered
loadMore; it stops at the scan cap and when grouping is off; group counts read "N+" while pages remain.TaskDetailPanelreports the server's task, not the list row it falls back on.loadMorefetches the next page without the sentinel.Unit tests
jest src/components/discovery/personal-space: everyInboxPagesuite passes, along with theTasksTabandActivityTabconsumers inProfile. 6Profilesuites (ProfilePage,ProfileSideNav,profileNavConfig,AccessControl*) fail to load in my local setup on@tiptap/react/menus(a tiptap version mismatch in my installed packages); none of them touch these files.eslintandprettieron the changed files: clean.tsc: no errors inInboxPage.Backend integration tests
NOT NEEDED: UI-only change.
Ingestion integration tests
N/A: no ingestion changes.
Playwright (UI) tests
Verified by hand against a local 2.1 server (UI served by Vite); the before/after GIFs above come from that run. The Inbox Playwright specs were not rerun for this change.
Summary by Gitar
LoadMoreRetryaction under the task list when a later page fails, since a filtered empty list cannot scroll to retryThis will update automatically on new commits.


Confidence Score: 5/5
The PR appears safe to merge; no new blocking issues were found.Summary
This backport fixes Inbox task grouping, closed-task links, and capped activity feeds.
Reviews (5) · Last reviewed commit: "docs: rewrap the grouped read-ahead reco..." · Reviewed by Greptile