gabriel / muse public
fix patch task/hub-list-envelopes #1 / 1
gabriel · 62 days ago · Apr 14, 2026 · Diff

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

sha256:92894e6968a8361c9f39aa9bfc0eeeea1e132eff1f47bd3177c4121daff17cfc sha
sha256:3c881bc297d4bd2aeba8f315e0c8615c12088ab6cbc574012d59fa96c43ad4fe snapshot
← Older Oldest on task/hub-list-envelopes
All commits
Newer → Latest on task/hub-list-envelopes

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:92894e6968a8361c9f39aa9bfc0eeeea1e132eff1f47bd3177c4121daff17cfc --body "your comment"