Skip to content

docs(execute): note print-width/column handling and deferred --width (JG-04)#51

Merged
mobileskyfi merged 2 commits into
mainfrom
docs/execute-print-width-jg04
Jun 16, 2026
Merged

docs(execute): note print-width/column handling and deferred --width (JG-04)#51
mobileskyfi merged 2 commits into
mainfrom
docs/execute-print-width-jg04

Conversation

@mobileskyfi

Copy link
Copy Markdown
Contributor

What

JG-04 fidelity: print-width handling was already correct but undocumented at the
user-facing surface. Adds one commands/execute/README.md bullet:

  • mac-telnet and SSH are captured at a deliberately tall/wide screen
    (src/protocols/mac-telnet-console.ts answers the device's size probe with a
    large terminal), so captured columns are neither wrapped nor paginated.
  • REST and native-api return structured records, so terminal width does not apply.
  • There is therefore no per-call --width knob today; an explicit width override
    is deferred until a concrete need appears.

Documentation only — no code change. Status surface (MATRIX) unchanged.

Verification

bun run lint + bun run lint:ci (markdownlint) green.

🤖 Generated with Claude Code

…(JG-04)

Print-width fidelity was already correct (mac-telnet/ssh captured at a wide
screen so columns don't wrap; REST/native return structured records unaffected),
but it was undocumented at the user-facing surface. Add a README bullet stating
the behavior and that an explicit `--width` knob is deferred until needed. No
code change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 16, 2026 17:18
@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@mobileskyfi, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 42 minutes and 28 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 04a7b529-ddc4-477a-9068-fdad73facfe3

📥 Commits

Reviewing files that changed from the base of the PR and between d0f60f0 and 5c05b06.

📒 Files selected for processing (1)
  • commands/execute/README.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/execute-print-width-jg04

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the execute command documentation to clarify how RouterOS print output width/wrapping interacts with different transports, and why there is no --width flag today.

Changes:

  • Documented print width / column-wrapping behavior (JG-04) across mac-telnet, SSH, REST, and native API.
  • Clarified that explicit per-call width overrides are intentionally deferred.

Comment thread commands/execute/README.md Outdated
Comment on lines +59 to +66
- **Print width / column wrapping (JG-04).** RouterOS wraps `print` output to the
terminal width over a console transport. centrs captures mac-telnet and SSH at
a deliberately tall/wide screen (`src/protocols/mac-telnet-console.ts` answers
the device's size probe with a large terminal), so captured columns are neither
wrapped nor paginated. REST and native-api return structured records, so
terminal width does not apply to them at all. There is therefore no per-call
`--width` knob today — an explicit width override is deferred until a concrete
need appears.
…th wording

Distinguish the three mechanisms instead of attributing one "wide screen" to all:
mac-telnet answers the device's terminal-size probe; SSH execute runs with no
pseudo-tty so RouterOS emits nothing terminal-wrapped; REST/native-api are not
consoles (structured records or a string `ret`), so width never applies.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mobileskyfi

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@mobileskyfi mobileskyfi merged commit e5179d7 into main Jun 16, 2026
9 checks passed
@mobileskyfi mobileskyfi deleted the docs/execute-print-width-jg04 branch June 16, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants