Repository navigation
docs: add SSH print-width nit; record measured tab-width behavior - #678
Conversation
From the #676 wide-output grounding on CHR 7.23.8 and 7.24.5: - MATRIX nit: SSH execute without a pty lays out print for 80 columns and drops table columns; a user+<cols>w login (7.22+) keeps them. - routeros-string.ts: tab-width defaults to 4, REST-stored values keep a literal TAB, and the console still counts TAB to multiples of 8. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Session: 0e051d84-50af-4e18-8ffa-7e308a0c9e04
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Excluded labels (none allowed): 1
Please check the settings in the CodeRabbit UI or the
|
There was a problem hiding this comment.
🔵 Needs a closer look
Human verification is needed because the RouterOS-specific tab-width and SSH claims lack a re-runnable probe or durable fixture in the repository.
No open issues 🎉
What changed in this PR
Documents RouterOS SSH wide-output and TAB-handling behavior without changing runtime code.
Changes:
- Adds the measured no-PTY SSH print-width limitation and
user+<cols>wworkaround to the capability matrix. - Records measured
tab-width, REST/SSH TAB preservation, and console TAB-stop behavior in the source comment. - Notes that TAB expansion inside string literals remains unmeasured.
| File | Description |
|---|---|
| src/core/routeros-string.ts | Updates the explanatory comment with measured RouterOS TAB behavior, version context, and the remaining uncertainty around string-literal expansion. |
| docs/MATRIX.md | Documents the no-PTY SSH wide-table output limitation and the width-setting username workaround. |
Review effort: Lite
Two leftovers from the #676 wide-output grounding (CHR 7.23.8 and 7.24.5, at 512, 200 and 80 columns).
docs/MATRIX.md: a new nit. With no pseudo-tty,execute --via sshgetsprintlaid out for 80 columns, so a wide table printsColumns: -- (terminal too narrow)instead of its rows. Logging in asuser+<cols>w, which non-interactive SSH honors since 7.22, keeps the columns. The grounding used that login for its SSH references on both versions.src/core/routeros-string.ts: comment only. It now records what was measured:tab-widthdefaults to 4;Whether a TAB inside a string literal is expanded is still not measured (routeros-string: the "tabs expand to four spaces" header claim is ungrounded, and the 7.20 changelog says something narrower and version-gated #276).
No code changes. The
.tscomment means full CI runs.bun run lint:cipasses locally.🤖 Generated with Claude Code