Files
PaperClipAI/server
Michael NguyenandClaude Opus 5.5 658dbfbe88 fix(tool-gateway): preload only the rows that a listing uses
Review found two preloads that read more rows than a listing uses.

- The decision cache reads only the active catalog tools of the
  company. An entry that is not in that set uses the direct query, so
  cached and uncached decisions stay the same.
- connectedMcpToolsForCompany reads the catalog first. Then it reads
  only the connections that have listed tools, in the same read-only
  snapshot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 10:22:34 -07:00
..