gabriel / muse public
feat BREAKING task/push-streaming-client #2 / 2
AI Agent gabriel · 143 days ago · Apr 28, 2026 · Diff

feat: parse push response as frame stream (Unpacker, not unpackb)

- push_stream_coro uses msgpack.Unpacker to iterate P/R/X frames instead of unpackb(resp.content) which fails when server prepends progress frames - P frames are printed to stderr as they arrive (real-time push progress) - PushResult.message reads from 'msg' key (matches server R frame format) - TDD: test_push_streaming_client.py (C1/C2/C3) codifies correct behavior

sha256:fe5063f21f7a134ea0dc5079a06ce27c18615fff659fceab55e7c3f2121c0d89 sha
+8 ~2 symbols
sha256:68b45800dd2204799c12b4b9eca663581eba959fd4ee5133942cc68f0d9119ca snapshot
+8
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes 10 symbols
~ tests/test_push_streaming_client.py .py 8 symbols added
+ PushResult import import PushResult L31–31
+ annotations import import annotations L24–24
+ inspect import import inspect L26–26
+ msgpack import import msgpack L28–28
+ pytest import import pytest L29–29
+ test_c1_push_client_does_not_unpackb_full_content function function test_c1_push_client_does_not_unpackb_full_content L38–62
+ test_c2_push_client_uses_unpacker_for_response function function test_c2_push_client_uses_unpacker_for_response L69–87
+ test_c3_push_client_parses_progress_then_result_frame function function test_c3_push_client_parses_progress_then_result_frame L94–140

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