Skip to content

fix(web): default the mirror to wrap on - #59

Merged
AltanS merged 2 commits into
mainfrom
fix/53-wrap-default
Jul 30, 2026
Merged

fix(web): default the mirror to wrap on#59
AltanS merged 2 commits into
mainfrom
fix/53-wrap-default

Conversation

@AltanS

@AltanS AltanS commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Refs #53 (part 1 of two — the issue stays open).

DEFAULTS.wrap: false → true, plus a STORAGE_KEY bump v3→v4 so devices that already persisted
wrap: false adopt the new default instead of being stuck on the old one.

The old default's rationale ("preserves column alignment like desktop Herdr") is right for TUI tables
and wrong for what the mirror actually shows most of the time. Herdr spawns panes at the desktop
terminal's width — 190 columns in the reporter's session — against a phone's ~45–50, so panning was
the common case, not the exception. Column-faithful no-wrap stays one tap away in View.

What this does NOT fix: with the bridge still reading source: "recent", the browser re-wraps
lines already hard-broken at 190 columns, so breaks land mid-sentence. That is #53's second half
(recent-unwrapped), which has to be threaded from a client pref through the read and risks the
Claude grammars that key off visible layout — its own change, on its own evidence.

Also pins both wrap branches. The no-wrap rendering is now reachable only through the View
toggle and was asserted by nothing; a negative control confirms the new default test fails if the
default is reverted.

web: 92 files / 1226 tests green. Typecheck clean.

AltanS and others added 2 commits July 30, 2026 23:50
Panes herdr spawns get the desktop terminal's column width (190 in the
issue reporter's session), but a phone in portrait shows roughly
45-50 columns. With wrap off by default, the mirror pans horizontally
for most lines even though it is showing agent prose, not TUI tables,
most of the time. Flip the default to wrap: true so the common case
reads without panning; column-faithful no-wrap for TUI tables stays
one tap away in View. Bump the display-prefs storage key from v3 to
v4 so devices that already persisted wrap: false pick up the new
default instead of being stuck on the old one.

This is part 1 of #53 only. Part 2 (reading source:
"recent-unwrapped" so wrap re-flows logical lines instead of
re-wrapping desktop-width fragments) is out of scope here and keeps
the issue open.

Refs #53

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Flipping the default left the no-wrap rendering reachable only through the
View toggle and asserted by nothing — the shape a later refactor drops
without a single test noticing. Pin both: wrap breaks at the viewport,
no-wrap stays column-faithful and pans.

Refs #53

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@AltanS
AltanS merged commit f053f0d into main Jul 30, 2026
1 check passed
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.

1 participant