Repository navigation
fix(cli): doctor stops reporting a failure when only optional checks are missing - #7688
Open
wonjangcloud9 wants to merge 2 commits into
Open
wonjangcloud9 wants to merge 2 commits into
wonjangcloud9 wants to merge 2 commits into
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
wonjangcloud9
force-pushed
the
fix/doctor-optional-failures
branch
from
November 15, 2026 09:38
82d3e31 to
e0df765
Compare
Contributor
Author
|
Rebased onto |
wonjangcloud9
force-pushed
the
fix/doctor-optional-failures
branch
4 times, most recently
from
November 22, 2026 09:24
ad6fabe to
7b4a4e1
Compare
…are missing whisper-cpp, TTS (Kokoro) and BGM (MusicGen) are labelled optional, yet a missing one turned the summary into "Some checks failed" and the --json payload's ok into false, so the documented `jq -e '.ok'` gate failed on a machine that renders fine. These rows now carry optional: true, show a yellow circle instead of a red cross, and are left out of the summary and ok. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wonjangcloud9
force-pushed
the
fix/doctor-optional-failures
branch
from
November 24, 2026 14:36
7b4a4e1 to
d60db63
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
What
hyperframes doctorno longer ends withSome checks failed— anddoctor --jsonno longer returns"ok": false— when the only rows that failed are the ones it labels optional (whisper-cpp, TTS (Kokoro), BGM (MusicGen)). Those rows now show a yellow○instead of a red✗, keep their install hint, and carry"optional": truein JSON.Why
On a machine where every render dependency passes (FFmpeg, FFprobe, Chrome, Docker), doctor still closed with a failure because two optional Python fallbacks were not installed:
The docs describe doctor as "Check the machine for everything a render needs" and tell CI to gate on
doctor --json | jq -e '.ok'. Withokcomputed aschecks.every(o => o.ok)(packages/cli/src/commands/doctor.ts,buildDoctorReportand theallOkinrun), that gate fails on any machine without Kokoro or MusicGen, which nothing in a render uses. The optional npm packages (onnxruntime-node,@google/genai) already follow the intended rule —checkOptionalPackagesays "Not a failure when missing" — the three Python/whisper rows were the exception.Related work
No existing issue or PR. #7407 is about doctor's Chrome row and does not overlap.
How
CheckResult/CheckOutcomeget anoptional?: boolean;checkWhisper,checkLocalVoiceandcheckLocalMusicset it on their not-installed result.requiredChecksPass()(o.ok || o.optional) drives both the JSONokand the human summary.doctorSummary()returnsAll checks passed,All required checks passed — optional, not installed: <names>, or the oldSome checks failed — see hints above.redactOutcomekeeps the new field, and a smalltoOutcome()replaces the two copies of the outcome-building block inrun.doctorsection ofdocs/packages/cli.mdx, one bullet inskills/hyperframes-cli/references/doctor-browser.md(manifest regenerated).Test plan
Same machine, same environment, main (affa03b) vs this branch:
◇ Some checks failed — see hints above◇ All required checks passed — optional, not installed: TTS (Kokoro), BGM (MusicGen)doctor --json→.okfalsetrue"optional": trueA required failure still fails: with
dockertaken offPATH, this branch prints✗ Docker Not foundand◇ Some checks failed — see hints above.doctorSummary(optional-only → passes and names them; required + optional → fails; nothing missing → "All checks passed") andbuildDoctorReport(optional-only →ok: true, rows marked; required + optional →ok: false). Against main'sdoctor.ts4 of the 5 new tests fail (the fifth, required + optional →ok: false, already held on main); with the fixbunx vitest run src/commands/doctor --project unitpasses 49/49.hyperframes doctorandhyperframes doctor --jsonbefore/after as above.docs/packages/cli.mdx,doctor-browser.mdskill reference)fallow audit --base origin/main(0 issues), comment ratchet — all pass.🤖 Generated with Claude Code