Repository navigation
Fixes 37885: Inbox task groups, capped activity feed and closed-task links - #37886
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 4 closed / 4 findingsThe Inbox now reads task queues ahead and truncates capped activity feeds, which could burden large queues or hide older updates from users. Reworks the Inbox task list and activity feed: grouped lists read ahead to the 200-task scan cap, closed-task links open the Closed tab, the Activity feed is capped and cut at its oldest item, and "Yesterday" becomes "Today". Resolved the stale linked-tab ref on ✅ 4 closed✅ Edge Case: Linked-tab ref never resets when ?taskId changes while mounted
✅ Quality: Undocumented rule: grouped task list auto-pages to 200 tasks
✅ Quality: Undocumented rule: capped activity feed is cut; Today replaces Yesterday
✅ Quality: Mentions exemption from the feed cut contradicts the capped-feed ADR
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 |
…links (backport 2.1 #37886) (#37887) * fix(ui): inbox task groups, capped activity feed and closed-task links 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. * fix(ui): stop the grouped read-ahead on a failed page, follow new task 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. * fix(ui): bound inbox date windows by the viewer's local days 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. * fix(ui): keep a failed inbox page from refetching, leave Mentions uncut - 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. * docs: record that the Inbox Mentions feed is not cut * fix(ui): offer a retry for a failed inbox page, mark the day the feed 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. * docs: rewrap the grouped read-ahead record
Describe your changes:
Fixes #37885
I fixed eight Inbox (
/inbox, AI mode) defects found while testing both tabs end to end on 2.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
1. Task groups and Type counts:
2 · 3 · 5. Closed-task link, agent in timeline, "Resolved on":
4. No-match message:
6. Capped Activity feed:
7. Date preset:
8. Activity at 1024px:
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.


Confidence Score: 5/5
The PR appears safe to merge; no new actionable issues remain.Summary
The PR fixes Inbox task grouping, closed-task links, activity limits, date presets, and layout.
Reviews (6) · Last reviewed commit: "docs: rewrap the grouped read-ahead reco..." · Reviewed by Greptile