🪣 fix: Cap Context Projection Workload Before Tokenization (#13910)

* fix: bound context projection workload

* fix: Address context projection CI failures

* fix: Bound context projection database reads

* fix: Sort projection spec imports

* fix: Cap projection body reads with stats
This commit is contained in:
Danny Avila 2026-06-23 08:43:09 -04:00 committed by GitHub
parent 2f800c5b52
commit 77854decdf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 606 additions and 18 deletions

View file

@ -18,7 +18,11 @@ async function contextProjectionController(req, res) {
return;
}
const projection = await resolveContextProjection(
{ userId: req.user?.id, getMessages: db.getMessages },
{
userId: req.user?.id,
getMessages: db.getMessages,
getMessageTextStats: db.getMessageTextStats,
},
params,
);
res.json(projection ?? null);