Repository navigation
fix(webui): Wire view byte rows fit their own box - #125
Merged
Merged
Conversation
The hex dump drew 16 bytes per row in a box narrower than that row, on a phone and also on desktop: the wire shares the evidence band with the readout, so at 1440 wide its byte box is 445px against the roughly 461 a 16-byte row needs, and the ASCII column was clipped. The dump now measures its own box with a ResizeObserver and drops to 8 bytes per row when 16 do not fit, with hysteresis so it cannot flap. Measured in Chromium at 390, 768, 1280, 1440 and 1920: no sideways scroll in the byte box or the page. README screenshots regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HbjsVBv8HQSQkAds6W5Y1v
404SecNotFound
pushed a commit
that referenced
this pull request
Oct 20, 2026
Captured with scripts/capture-webui-screenshots.py against a fresh loopback instance on current main. The run shot now shows the Wire view byte rows from #125 fitting their box; the other changes are live values (clock, rate, elapsed). webui-mobile.jpg was byte-identical and is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HbjsVBv8HQSQkAds6W5Y1v
4 tasks done
404SecNotFound
added a commit
that referenced
this pull request
Oct 20, 2026
Six README screenshots recaptured with scripts/capture-webui-screenshots.py from current main; the run shot shows the Wire view byte rows from #125. webui-mobile.jpg was byte-identical. CI's path filter skips docs/** by design. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HbjsVBv8HQSQkAds6W5Y1v
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.
Summary
The Wire view's hex dump drew 16 bytes per row, which is wider than its box. The handoff noted this at phone width. Measuring showed it on desktop too: the wire shares the evidence band with the readout, so at 1440 wide the byte box is 445px against the ~461px a 16-byte row needs, and the ASCII column was clipped. It is visible in the committed 2026-10-19
docs/images/webui-run.jpg.A viewport breakpoint (the first idea) cannot see this, because the box is narrower than the viewport. The dump now measures its own box (
ResizeObserver,useLayoutEffectso no wide frame paints first) and draws 8 bytes per row when 16 do not fit. It remembers the widest box that overflowed, so it only tries 16 again in a wider box and cannot flap. The byte highlight is byte-addressed and unaffected.Verification
WireView.test.tsx(3). Positive controls:main'sWireView.tsx, all 3 fail.Maximum update depth exceeded(the flap the guard exists to stop).main, 264 here.tsc -bclean.scrollWidthvsclientWidth) and page overflow checked:scripts/capture-webui-screenshots.pyunder Linux Chromium and checked by eye.webui-run.jpgnow shows whole ASCII rows.webui-mobile.jpgcame out byte-identical. The other five changed only in live values (clock cell, run counts).Documentation impact
docs/webui-silver-red-design.mdgets a dated implementation note under the Wire view. The README text does not mention row width, so it is unaffected.)CHANGELOG.mdrecords the operator-visible change.Scope boundary
This is layout only. Parsing, dissection, and the bytes shown are unchanged. It does not touch the launch gate or any send path.
Generated by Claude Code