Repository navigation
fix(desktop/windows): align memories paging with backend 500 cap - #10761
Git-on-my-level merged 1 commit into
Conversation
After BasedHardware#10750, Windows CI failed: get_memories tool still clamped to 5000 and useMemories tests still expected forced first-page 5000. Failure-Class: none
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b7cd92722c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| path: '/v1/tools/memories', | ||
| query: { | ||
| limit: clampInt(input.limit, 50, 1, 5000), | ||
| limit: clampInt(input.limit, 50, 1, 500), |
There was a problem hiding this comment.
Preserve the tools endpoint's 5000-item limit
When get_memories is called with a limit between 501 and 5000, this now silently returns at most 500 memories even though this executor calls /v1/tools/memories, whose route still accepts limit <= 5000 (backend/routers/tools.py:169-180) and whose service independently clamps at 5000 (backend/utils/retrieval/tool_services/memories.py:41-43). The new 500-row cap applies to /v3/memories, not this tools endpoint, so large explicit reads are truncated without any indication that another offset is required; keep this clamp aligned with the endpoint actually called, or page the tools endpoint internally.
AGENTS.md reference: AGENTS.md:L47-L47
Useful? React with 👍 / 👎.
…edHardware#10761) After BasedHardware#10750, Windows CI failed: get_memories tool still clamped to 5000 and useMemories tests still expected forced first-page 5000. Failure-Class: none
Summary
Fix-forward for main after #10750: Desktop Windows CI
Typecheck · Lint · Testfailed because two client paths still assumed the old first-pagelimit=5000contract.Changes
createGetMemoriesExecutorclamps max limit to 500 (matches backend hard page cap).useMemoriestests/comments updated for 500-row paging (no forced first-page 5000).Product invariants affected
Failure-Class
Failure-Class: none
Verification
useMemories.test.ts,memoriesBulk.test.ts,productToolExecutorsTierB.test.ts(run in CI Desktop Windows lane).Non-goals
No backend changes; no deploy.