Skip to content

fix(ui): keep mobile session width checks aligned with device labels - #193162

Merged
steipete merged 2 commits into
mainfrom
solid2/hf-new-session-mobile-width-1104
Nov 5, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/hf-new-session-mobile-width-1104

Conversation

@steipete

@steipete steipete commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Scheduled main CI rejects the mobile New Session layout because three assertions still cap the device picker at 100 px after #192044 intentionally changed “Local” to “This computer.”

User Impact

The approved wording and layout stay unchanged. CI again checks that the device picker fits within half of its row, alongside the existing touch-target, overflow, popover, and composer-docking checks.

Why This Change Was Made

The failing value is the full device-trigger width: 123.421875 px on Linux CI and 123.40625 px on this Mac. The old 100 px value was a test ceiling, not a prior measured width. #192044 explicitly approved the longer label; its existing CSS already sizes mobile pickers to at most half a row. Inspected synthetic screenshots show the label and neighboring workspace fitting at 320 and 390 px. A fixed larger pixel cap would encode another wording-dependent limit, so these assertions now protect the relative layout contract.

The last passing scheduled run was 41837990917 at a7cfb08. The next scheduled run, 41847435650, first shows the width failures. Repeated execution of all three affected cases passes on 33a8710 (#192044’s parent) and fails at exactly #192044, 2a16e47. The reported 41961707257 retains the same failure. Placement and other copy cases owned by #192884 are outside this change.

Evidence

Check Result
Parent of #192044, original assertions All three cases pass twice
#192044, original assertions All three cases fail twice at 123.40625 > 100
Current main reproduction Same three width failures
Updated assertions Final head: all three cases pass 20/20 each (60 case executions, 357.33 s).
Original failing shard inventories Final form: all three cases pass 20/20 each with the original two failing shard file inventories (288 files collected; unrelated test bodies filtered).
UI typecheck, scoped lint/format, diff check Passed
Independent Codex autoreview, P0–P2 Clean; full local change reviewed

No production files, styles, imports, or startup boundaries change (0 B production growth). Test LOC: 845 → 844 (−1); production LOC: unchanged. The assertions reuse the already measured geometry and an existing row locator, so the two test files shrink by one line. The test-line ratchet passes; neither the scalar baseline nor allocations change.

Before/after captures below compare the pre-copy layout with the approved current layout; this repair preserves the latter. All screenshots use synthetic mocked Gateway data and were inspected locally.

UI commits between the last passing and first failing scheduled runs
33a8710ece2 improve(ui): clarify palette, inbox, and activity copy (#192048)
2a16e47f90a improve(ui): clarify new session devices and workspaces (#192044)
e3d69a25868 improve(ui): clarify device connection and setup copy (#192046)
6afa9c60f62 improve(ui): clarify session devices and stop actions (#192085)
a6a1d9c781c improve(ui): clarify desktop and terminal copy (#192092)
3e1fea5d41c improve(ui): clarify slash-command guidance and results (#192415)
6210f1275c4 improve(ui): clarify goals, questions, and recovery copy (#192111)
837f9bfc8b9 fix(ci): refresh sidebar and UI server fixtures (#192802)
bc0c02d068b improve(ui): clarify progress and details-panel states (#192241)
bda4f0f8c45 improve(ui): clarify workspace, tool card, and CI copy (#192189)
6a6a21b22a9 improve(ui): clarify media and session failure copy (#192183)
fb70290714a improve(ui): clarify command approvals and history (#192180)
c7b7c79ef4e improve(ui): clarify sharing and role-aware access guidance (#192187)
3701ffdc4b7 improve(ui): clarify chat command and composer errors (#192190)
3101c8d324a improve(ui): clarify session errors and sharing controls (#192206)
781a8f1ed4c improve(ui): polish chat typography and short labels (#192205)
02d770ee5c2 improve(ui): clarify sign-in and browser approval recovery (#192179)
dde5ab39f02 improve(ui): clarify connection and sign-in recovery (#192246)
232acf4515a improve(ui): standardize disconnected state copy (#192204)
7aa96ecca2f improve(ui): clarify first-run welcome and memory import (#192209)
80c59348c20 improve(ui): clarify provider accounts and model setup (#192225)
6991250dffa improve(ui): clarify model setup and sign-in copy (#192218)

Before the approved copy change: Local

Current layout preserved: This computer

Current layout fits a 320 px phone

PR #192044 intentionally renamed Local to This computer. Preserve its layout and check the existing half-row picker contract instead of the stale 100 px ceiling. Account for seven lines of causal comments and relative-width assertions.
@clawsweeper

clawsweeper Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T04:17:45.147081Z f4f3258 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Keep the assertion repair below the existing test-line ceiling without changing the shared baseline or requesting extra allocation.
@steipete
steipete enabled auto-merge (squash) November 5, 2026 04:23
@steipete
steipete merged commit f770328 into main Nov 5, 2026
89 checks passed
@steipete
steipete deleted the solid2/hf-new-session-mobile-width-1104 branch November 5, 2026 04:24
@steipete

steipete commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

RomneyDa added a commit that referenced this pull request Nov 5, 2026
Raise the shared scalar by exactly 93 lines, from 6326473 to 6326566, under explicit maintainer approval for this baseline exception. Do not change tests, allocations, or checker policy.

Main crossed the ceiling at #193101 (+83 against 32 available). Subsequent net debt: #193100 -2, #187104 +17 beyond its allocation, #128175 +25, #193123 -5, #188344 +8, and #193162 -1. The resulting inherited debt is exactly 93 lines; #192587 adds 73 lines with its own matching grant.

At parent 2270152 the canonical LF scanner measured 6479093 test lines against ceiling 6479000. After correction the ceiling equals 6479093 with zero slack. Per-change allocations remain bounded by actual added lines.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 6, 2026
…penclaw#193162)

* fix(ui): align mobile session width checks with device labels

PR openclaw#192044 intentionally renamed Local to This computer. Preserve its layout and check the existing half-row picker contract instead of the stale 100 px ceiling. Account for seven lines of causal comments and relative-width assertions.

* test(ui): reuse measured mobile picker geometry

Keep the assertion repair below the existing test-line ceiling without changing the shared baseline or requesting extra allocation.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 6, 2026
Raise the shared scalar by exactly 93 lines, from 6326473 to 6326566, under explicit maintainer approval for this baseline exception. Do not change tests, allocations, or checker policy.

Main crossed the ceiling at openclaw#193101 (+83 against 32 available). Subsequent net debt: openclaw#193100 -2, openclaw#187104 +17 beyond its allocation, openclaw#128175 +25, openclaw#193123 -5, openclaw#188344 +8, and openclaw#193162 -1. The resulting inherited debt is exactly 93 lines; openclaw#192587 adds 73 lines with its own matching grant.

At parent 21ac250 the canonical LF scanner measured 6479093 test lines against ceiling 6479000. After correction the ceiling equals 6479093 with zero slack. Per-change allocations remain bounded by actual added lines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant