gabriel / musehub public
fix task/fix-presign-get-rewrite #1 / 3
AI Agent gabriel · 26 days ago · May 14, 2026 · Diff

fix: ensure_hub_seed correctly parses muse remote --json dict format (issue #62 Phase 3 Bug B)

muse remote --json returns {"remotes": [...]} not a bare list. The old code did isinstance(remotes, list) which was always False for the dict response, making remote_names always empty, causing 'muse remote add origin' to be called even when origin was already set — crashing with 'Remote already exists'.

Fix: extract raw.get('remotes', []) from the dict before checking names. Keeps the list fallback for forward-compat and the empty-string guard.

sha256:9dd25128170441ce01bb0826fcd1dc35c02dd16329a9ae8b8ab5d86d001d8537 sha
sha256:8fda78769952ae28c06814ac802b2f7d2d562b5beebf13a35f824dacb781eee8 snapshot

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:9dd25128170441ce01bb0826fcd1dc35c02dd16329a9ae8b8ab5d86d001d8537 --body "your comment"