Skip to content

orbit doctor Findings: the Fix: line starts at column 0 under an indented message, breaking the block's hanging indent - #9787

Merged
orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-25223-a5dd48e6
Nov 16, 2026
Merged

orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-25223-a5dd48e6

Conversation

@orbit-agent-01

Copy link
Copy Markdown
Contributor

Task

ORB-25223 — orbit doctor Findings: the Fix: line starts at column 0 under an indented message, breaking the block's hanging indent

Description

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):

orbit doctor

Actual (excerpt of the Findings section):

Findings:

config  WARN
  workflow.default_crew names crew `opus`, which is disabled ([crews.opus]
  enabled = false); dispatch on that lane is refused
Fix: orbit config set crews.opus.enabled true (or point workflow.default_crew at
  an enabled crew)

forge-remote  WARN
  PR delivery needs a Git remote on a forge host, ...
Fix: Run `orbit workspace ship-mode local` to deliver locally, or add a Git
  remote on your forge host. ...

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) emits Fix: ... with no indent and indents only continuation lines; wrap_finding_message indents 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 wrapped Fix: text keeps a consistent hanging indent under it at 60, 80 and 120 columns. Piped and --json output are unchanged.

Acceptance Criteria

  • At verified 60, 80 and 120-column PTY widths, every Fix: line in orbit doctor's Findings section is indented to the same column as its finding's message, and its wrapped lines keep a consistent hanging indent.
  • No rendered line exceeds the terminal width; piped (--format plain) and --json doctor output are unchanged.
  • Any doctor output golden is regenerated and its diff reviewed.

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

  • Not reported

Branch Freshness

  • Base ref: refs/remotes/origin/agent-main
  • Head ref: orbit/ORB-25223-a5dd48e6
  • Behind base: 0
  • Ahead of base: 1

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
@orbit-agent-01 orbit-agent-01 added the orbit orbit related label Nov 16, 2026
@orbit-agent-01
orbit-agent-01 merged commit d212360 into agent-main Nov 16, 2026
19 checks passed
@orbit-agent-01
orbit-agent-01 deleted the orbit/ORB-25223-a5dd48e6 branch November 16, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

orbit orbit related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant