Skip to content

Commit 28c0359

Browse files
committed
improvement(knowledge): reset the projection-fill memo per integration iteration
1 parent 22fed44 commit 28c0359

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/sim/lib/knowledge/__integration__/kb-block-search.integration.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
} from '@/lib/knowledge/__integration__/seed-source-access-fixture'
1212
import { createKnowledgeAccessProvider } from '@/lib/knowledge/access/scope'
1313
import {
14+
forgetProjectionFilled,
1415
resolvePermittedDocuments,
1516
retrieveKnowledgeSearch,
1617
VECTOR_PROBE_DOCUMENT_LIMIT,
@@ -92,6 +93,8 @@ describe('API-key KB block fan-out', () => {
9293
it.each([false, true])(
9394
'completes 18 concurrent KB searches with access checks intact (tag filter: %s)',
9495
async (withTags) => {
96+
/** The projection-fill memo outlives an iteration; each one must read it once, like a cold process. */
97+
forgetProjectionFilled()
9598
const previousDebug = db.$client.options.debug
9699
const statements: string[] = []
97100
db.$client.options.debug = (_connection, query) => {

0 commit comments

Comments
 (0)