Repository navigation
fix(hal): spinner for Doctor and Fix plan - #304
Merged
Merged
Conversation
mq-hal doctor-summary and fix-doctor print nothing for 8-9 s and then the whole report. The two rows now run behind ui_spinner. The report is captured and printed after the spinner clears its row; streamed, its first line landed after the spinner's label. Both commands print plain text and read no stdin, so capturing changes nothing else. The exit status is kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MCamner
force-pushed
the
fix/hal-fix-plan-spinner
branch
from
November 13, 2026 12:43
6b6bdd6 to
4e7d970
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
6. Doctorand7. Fix plansat silent for 8–9 s (measured: first byte at 8.4 s and 9.3 s) while mq-hal built the report._hal_run_wait, which uses the sharedui_spinner. The report is captured and printed once the spinner has cleared its line. Streamed instead, its first line would land after the spinner's label, the case_run_agent_menu_passthroughin the agent menu warns about.ui_spinner(a standalone menu without mq-ui), the command runs as before.The other front-menu rows are also silent until done (brief ~2 s, release readiness ~3.4 s, CI ~0.8 s) and are left as they are.
Test plan
tests/hal-menu-smoke.shstep 13, written failing first: both arms use the wrapper. Under a pty with a fake mq-hal, the spinner label is drawn, the report starts on its own line, the body is kept, and exit status 3 comes back.mq-hal fix-doctorin bash and zsh: 112/130 spinner frames, the report starts on a cleared line, rc 0./release-check.shpasses all checks🤖 Generated with Claude Code