fix: hub list commands return envelope objects not bare arrays
hub issue list --json, hub proposal list --json, and hub label list --json were stripping the server envelope and dumping a bare JSON array. This meant agents could not read total counts or advance pagination from the output — they silently discarded the data the server already provided.
All three handlers now emit the full envelope: hub issue list → {"issues": [...], "total": N, "next_cursor": str|null} hub proposal list → {"proposals": [...], "total": N, "next_cursor": str|null} hub label list → {"labels": [...], "total": N}
hub repo list was already correct and is included as a regression baseline.
- tests/test_hub_list_envelopes.py: 19 new TDD tests (one per envelope key per command + repo list baseline) - tests/test_cmd_hub_hardening.py: updated 10 stale assertions that verified the old broken bare-array behavior
0 comments
muse hub commit comment sha256:92894e6968a8361c9f39aa9bfc0eeeea1e132eff1f47bd3177c4121daff17cfc --body "your comment"
No comments yet. Be the first to start the discussion.