Repository navigation
feat(api): Cap Threads and waiting rows in the conversation feed - #4038
Merged
Merged
Conversation
A feed row lists at most 100 Threads at any depth, kept depth first in activity order so a kept Thread always has its parent. A root past the cap carries `omittedThreadCount`, and the dashboard shows "+N more" under its Threads once every loaded Thread shows. The first page adds at most 50 waiting rows from outside the page. When it cuts some, the feed sets `waitingRowsTruncated`; the rest come on later pages by activity like any other row. Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0c1c04f. Configure here.
Contributor
|
471 screenshot changes — 0 changed · 471 added · 0 removed |
…ing-caps # Conflicts: # packages/junior/tests/integration/api/conversations/list-budget.test.ts
BYK
approved these changes
Nov 22, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

GET /api/conversationshad no cap on the Threads that a row nests or on the waiting rows that the first page adds from outside the page (#3809). Both caps sit well above what real feeds carry, so no row loses data today; they only bound the response.Threads (
CONVERSATION_FEED_THREAD_LIMIT = 100per root, at any depth)nestFeedThreadskeeps Threads depth first in activity order, so a kept Thread always has its parent.omittedThreadCount. The root's own page still lists every Thread.Waiting rows (
CONVERSATION_FEED_WAITING_LIMIT = 50)limit + 50 + 1rows, so it knows whether the cap cut some without another statement.waitingRowsTruncated: true. The rest come on later pages by activity like any other row, so the dashboard does not lose them.Pins are still not paged; this leaves them as they are.
Screenshots
Mock data with
omittedThreadCount: 12on a root with two Threads.Current dashboard sidebar:
New dashboard Conversations view:
via @BYK.
--
View Session [Sentry]