fix
patch
fix/215-created-by-author-fallback
#1 / 1
fix: created_by's legacy fallback must also check .author, not only .agent_id (musehub#215)
muse branch --json's created_by legacy fallback (used for branches with no creation record, per musehub#216) only ever read the tip commit's agent_id. A human-authored commit (no --agent-id passed, .author set instead) made created_by unconditionally null -- not because nothing is known, but because the one field that IS known was never consulted.
last_committer already handled this correctly (checks agent_id, then falls back to .author). Unified both fields onto one shared tip_authorship computation so created_by's legacy fallback gets the same correct behavior, and the duplicate fallback logic is gone.
sha256:539d2f74a0387ac6bf6f1abbd1458d4cce554ddedb1584070cb2a68abd56b114
sha
+1
~2
symbols
2 changed · 1260 in snapshot
files
sha256:1bfcf8bed5c94b15878276e0a2d4be9b35ae2757001e6b163db6a4b7f7458811
snapshot
+1
symbol added
~2
symbols modified
2
files changed
1260
files in snapshot
0
dead code introduced
Semantic Changes
3 symbols
~
run
+
test_list_json_created_by_legacy_fallback_to_human_author
method
method test_list_json_created_by_legacy_fallback_to_human_author L361–373
Files Changed
~2
1260 in snapshot
~2
1260 in snapshot
← Older
Oldest on fix/215-created-by-author-fallback
All commits
Newer →
Latest on fix/215-created-by-author-fallback
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:539d2f74a0387ac6bf6f1abbd1458d4cce554ddedb1584070cb2a68abd56b114 --body "your comment"
No comments yet. Be the first to start the discussion.