Commit 8a9d722
Keep empty list responses as structured JSON
itemsJsonResponse swapped to a plain-text body when a full inventory was
empty, so profiles/proxies/extensions list returned text on empty but
JSON otherwise — an inconsistent shape for agents. Emit emptyText as a
`note` inside the normal { items, has_more, next_offset } payload instead.
Preserves the empty-inventory guidance (now structured) while paginated
empty pages stay note-free, keeping the full-vs-paginated distinction.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 6012a5a commit 8a9d722
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
0 commit comments