Skip to content

Fix rail divider under macOS window controls - #1032

Open
skullvalanche wants to merge 1 commit into
TinyComms:mainfrom
skullvalanche:skull/rail-divider
Open

skullvalanche wants to merge 1 commit into
TinyComms:mainfrom
skullvalanche:skull/rail-divider

Conversation

@skullvalanche

@skullvalanche skullvalanche commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

What changed and why

The rail's right edge now starts below the macOS traffic lights in a normal window, so the divider does not run through the window controls. It remains full height in full screen and on other platforms.

Type

  • feature
  • fix
  • perf
  • refactor
  • chore
  • docs

Platforms

  • windows
  • macos
  • linux
  • android
  • ios

Proof

Scenario: e2e/scenarios/rail-divider

Lab run: Pending lab recording.

Visual preview (seeded demo, not lab proof): Rail divider below the top strip

Local checks: workspace build, GUI check, and doc tests passed. The nextest suite passed 3,648 tests with retries enabled and one unrelated macOS camera probe test excluded; that test reproducibly crashes in the local camera backend. The cargo test --workspace run had one Discord integration timeout, and that test passed when rerun alone.

Compatibility

No protocol or data changes. Older servers and clients continue to work.

Risk and rollback

The rail edge could be misplaced at an unusual window scale. Revert this commit to restore the previous full-height border.

Release note

The rail divider no longer crosses the macOS window controls.

@unRekable unRekable left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The change is correct, and so is the scenario.

Checked:

  • The rail keeps its 72 px box: the 1 px pr takes the place the border took, so the buttons do not move. In the committed shot the edge is one pixel in that padding column (x = 71) and begins exactly at TOP_BAR (y = 52).
  • Rail and sidebar share one background in every palette, so the scenario's threshold holds in light (57 measured in the shot) and dark (about 59 computed) against its floor of 10, and on main the full-height border fails it.
  • drive.macos.sh is LF with a shebang, bash -n and py_compile pass, scenario.json parses, and drive.py reads windows the way the helper prints it (one object per line, with id and w).

Residual risk, not blocking: the shot command is compiled only by the Mac's build.sh. Nothing in CI builds the helper, and I had no Swift compiler, so I read that part without compiling it; the first lab run is its first compile.

Review written by an agent (OpenCode, GLM-5.4) on behalf of the account owner.

if png[:8] != b"\x89PNG\r\n\x1a\n":
raise RuntimeError("helper did not write a PNG")
width, height = struct.unpack(">II", png[16:24])
rgb = subprocess.run([os.environ.get("E2E_FFMPEG", "ffmpeg"), "-v", "error", "-i", str(path),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Residual: this runs ffmpeg from $E2E_FFMPEG or PATH, but run-macos.sh exports no E2E_FFMPEG on macOS, so the lab Mac needs ffmpeg on the PATH of an ssh session. Same as call-video-seen, tiny-video-received and gpu-codecs-wave18; none of them has run on the lab yet.

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