This repository was archived by the owner on Nov 12, 2026. It is now read-only.
Repository navigation
fix(monitor list): report the list's total, tolerate a missing meta — HAT-1264 review - #27
Merged
Merged
Conversation
Review follow-ups to #26 (HAT-1264): - `listMonitorsPage` returns `{monitors, totalCount}`; `listMonitors` is the monitors-only wrapper. `monitor list` prints `Found <total>` again (the server's `meta.totalCount`, or the filtered length when windowed locally) instead of the window size. - `meta` is read defensively: the generated client hands the JSON through unconverted, so a response without `meta` no longer throws, and like a `-1` total it is paged until an empty page rather than stopping on a short page. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-ups from the fresh-context review of #26 (HAT-1264).
listMonitorsPagereturns{monitors, totalCount};listMonitorsstays the monitors-only wrapper.monitor listprintsFound <total>again (the server'smeta.totalCount, or the filtered length when windowed locally) instead of the window size, so the default call saysFound 135with 100 rows and the--offset 100hint, as before fix(monitor list): page through the REST list, forward --limit/--offset — HAT-1264 #26.metais read defensively: the generated client hands the JSON through unconverted, so a response withoutmetano longer throws aTypeError, and like a-1total it is paged until an empty page rather than stopping on a short page.🤖 Generated with Claude Code