feat(cli): add read-only doctor diagnostics - #198
Merged
Merged
Conversation
SarthakWade
added this pull request to stack #202
September 19, 2026 09:58
yashranaway
approved these changes
Sep 19, 2026
yashranaway
left a comment
Collaborator
There was a problem hiding this comment.
Doctor is a local CLI command, not on the socket. MCP already drops invocations without a protocol request, so agents cannot run it that way.
Checks are read-only: lstat of owned 0700/0600 paths, Chromium/ffmpeg discovery, settings parse, and a 0.5s ping only if the socket is inside the runtime directory with a safe mode. It does not start a host, repair files, or dump file contents. Details and suggestions are capped at 512 bytes. Missing optional tools are warnings; unsafe storage and root on Linux are failures.
CI is green. Stacks on #197.
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
headless doctorwith a deterministic, bounded JSON report and stable check identifiersSecurity
Verification
pnpm testpnpm test:runtimepnpm --filter @headless/web lintpnpm --filter @headless/app buildThe standard Docker rebuild reached and passed the Linux protocol suite, then Docker Desktop could not reach
deb.debian.orgwhile rebuilding the test-dependency layer. The identical E2E script passed after layering the current binaries over the existing provisioned image.Closes #194