Skip to content

Commit 117a9c9

Browse files
ElusAegisclaude
andcommitted
fix: Warn when protocol_systems response is truncated by pagination
Log a warning when the server reports more protocol systems than were fetched on page 0, so operators know availability info may be incomplete. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent aa47e4e commit 117a9c9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tycho-client/src/stream.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,15 @@ impl ProtocolSystemsInfo {
364364
return Self { dci_protocols: HashSet::new(), other_available: HashSet::new() };
365365
};
366366

367+
if response.pagination.total > page_size {
368+
warn!(
369+
"Server has {} protocol systems but only {} were fetched (page_size={page_size}). \
370+
Availability info may be incomplete.",
371+
response.pagination.total,
372+
response.protocol_systems.len(),
373+
);
374+
}
375+
367376
let available: HashSet<_> = response
368377
.protocol_systems
369378
.into_iter()

0 commit comments

Comments
 (0)