Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed src/openhuman/memory/read_rpc/chunks.rs,src/openhuman/memory/read_rpc/chunks_te

Steven Enamakel8f6149d33140
diff --git a/src/openhuman/memory/read_rpc/chunks.rs b/src/openhuman/memory/read_rpc/chunks.rs
index 874f1739cc..43df602ef5 100644
--- a/src/openhuman/memory/read_rpc/chunks.rs
+++ b/src/openhuman/memory/read_rpc/chunks.rs
@@ -214,7 +214,11 @@ async fn token_and_details(
}
let mut token_query = query.clone();
token_query.content_contains = Some(token.clone());
- token_query.limit = None;
+ // `None` means the driver's default, which may be a page-sized cap.
+ // Ask for the largest contract-supported window so the intersection
+ // is computed from the complete per-token result set. Drivers clamp
+ // this to their own ceiling.
+ token_query.limit = Some(usize::MAX);
token_query.offset = None;
let rows = chunks
.list_chunk_details(&token_query, None)
diff --git a/src/openhuman/memory/read_rpc/chunks_tests.rs b/src/openhuman/memory/read_rpc/chunks_tests.rs
index 5a1e22eadf..e8f618d3d9 100644
--- a/src/openhuman/memory/read_rpc/chunks_tests.rs
+++ b/src/openhuman/memory/read_rpc/chunks_tests.rs
@@ -33,9 +33,9 @@ use std::collections::HashMap;
use std::sync::Arc;
use tempfile::TempDir;
use tinymemory_api::chunks::{Chunk, Metadata, SourceKind, SourceRef};
-use tinymemory_api::chunks::{ChunkDetail, ChunkEmbedding};
use tinymemory_api::error::MemoryError;
use tinymemory_api::null::NullMemoryProvider;
+use tinymemory_api::provider::{ChunkDetail, ChunkEmbedding};
use super::super::types::{ChunkFilter, ChunkRow, PREVIEW_MAX_CHARS};
@@ -302,7 +302,7 @@ async fn token_and_intersects_complete_sets_in_first_token_order() {
assert_eq!(seen.len(), 2);
assert!(seen
.iter()
- .all(|query| query.limit.is_none() && query.offset.is_none()));
+ .all(|query| query.limit == Some(usize::MAX) && query.offset.is_none()));
}
// ── the wire shape ───────────────────────────────────────────────────────