Repository navigation
orbit doctor Findings: the Fix: line starts at column 0 under an indented message, breaking the block's hanging indent - #9787
Merged
Conversation
orbit doctor Findings: the `Fix:` line starts at column 0 under an indented message, breaking the block's hanging indent Done: wrap_action now emits ' Fix: ...' at the finding's two-space indent with wrapped lines on a four-space hanging indent (crates/orbit-cli/src/output/render.rs). Updated terminal_findings regression expectations plus a col-0 Fix guard (crates/orbit-cli/tests/output/doctor.rs). Choice: 4-space hanging (unambiguous under the Fix line); first-line budget width-7, rest width-4. Criteria: (1) PTY widths 60/80/120 verified via pty script (.orbit/tmp/check_pty.py): 7 Fix lines per width, every Fix starts with two spaces, hanging continuations present, 0 lines exceed width. (2) No terminal line exceeds width (same check); piped --format plain has no Findings block (56 tab rows, exit 1 with findings) and --json keeps 56 raw rows/10 remediations; findings_leave_plain_and_json_documents_unchanged passes. (3) No doctor rendering golden exists (output_goldens holds only plugin_build_doctor.json JSON plus unrelated task_show plain hit); nothing to regenerate. Validation passed: cargo test -p orbit-cli --test output doctor::terminal... + findings_leave... (2 passed); doctor:: suite (26 passed, 1 ignored); make ci-guards pass; cargo fmt --all -- --check pass; rustfmt --check render.rs doctor.rs pass; clippy -p orbit-cli --bins and --all-targets pass; cargo doc -p orbit-cli pass. Reconciliation: tracked diff is exactly the two selector paths; git diff --check clean; scratch under .orbit/tmp/ is gitignored (pty-check fixture ~7.9M, check script, plain/json captures). No context_files change needed. Risk: none; plain/JSON paths untouched by construction (DoctorFindings renders in Table mode only). Orbit-Task: ORB-25223
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.
Task
ORB-25223 — orbit doctor Findings: the
Fix:line starts at column 0 under an indented message, breaking the block's hanging indentDescription
Found by the CLI/MCP UX review (ORB-25215), diagnostic-summary readability check.
Reproduction
Scratch workspace with warnings (disabled default crew, no forge remote, no MCP registration); PTY width set with TIOCSWINSZ and read back as 80 (same at 60 and 120):
Actual (excerpt of the Findings section):
The check heading is at column 1, its message at column 3, and
Fix:jumps back to column 1, the same column as the next check's heading, while its own continuation lines are at column 3. The remedy, the line an operator needs most, reads as a new top-level row instead of part of its finding.Cause
wrap_action(crates/orbit-cli/src/output/render.rs:286-330) emitsFix: ...with no indent and indents only continuation lines;wrap_finding_messageindents the message by two spaces (render.rs:256-283).doctor_findings(render.rs:222-253) joins them.Expected
Within a finding block the message and its
Fix:line share one indent, and wrappedFix:text keeps a consistent hanging indent under it at 60, 80 and 120 columns. Piped and--jsonoutput are unchanged.Acceptance Criteria
Fix:line inorbit doctor's Findings section is indented to the same column as its finding's message, and its wrapped lines keep a consistent hanging indent.--format plain) and--jsondoctor output are unchanged.Execution Summary
Click to expand
Done: wrap_action now emits ' Fix: ...' at the finding's two-space indent with wrapped lines on a four-space hanging indent (crates/orbit-cli/src/output/render.rs). Updated terminal_findings regression expectations plus a col-0 Fix guard (crates/orbit-cli/tests/output/doctor.rs). Choice: 4-space hanging (unambiguous under the Fix line); first-line budget width-7, rest width-4. Criteria: (1) PTY widths 60/80/120 verified via pty script (.orbit/tmp/check_pty.py): 7 Fix lines per width, every Fix starts with two spaces, hanging continuations present, 0 lines exceed width. (2) No terminal line exceeds width (same check); piped --format plain has no Findings block (56 tab rows, exit 1 with findings) and --json keeps 56 raw rows/10 remediations; findings_leave_plain_and_json_documents_unchanged passes. (3) No doctor rendering golden exists (output_goldens holds only plugin_build_doctor.json JSON plus unrelated task_show plain hit); nothing to regenerate. Validation passed: cargo test -p orbit-cli --test output doctor::terminal... + findings_leave... (2 passed); doctor:: suite (26 passed, 1 ignored); make ci-guards pass; cargo fmt --all -- --check pass; rustfmt --check render.rs doctor.rs pass; clippy -p orbit-cli --bins and --all-targets pass; cargo doc -p orbit-cli pass. Reconciliation: tracked diff is exactly the two selector paths; git diff --check clean; scratch under .orbit/tmp/ is gitignored (pty-check fixture ~7.9M, check script, plain/json captures). No context_files change needed. Risk: none; plain/JSON paths untouched by construction (DoctorFindings renders in Table mode only).
Validation
Branch Freshness
refs/remotes/origin/agent-mainorbit/ORB-25223-a5dd48e6