Repository navigation
fix(ios): chat text is too large for a dense transcript and cannot be set below the web's default size - #166090
Conversation
… set below the web's default size
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR reduces iOS chat’s baseline to 13.5 points and repairs composer focus, model-menu accessibility, and oversized control symbols. Example: An iPhone reader opens Chat at the default Dynamic Type category.
Review scores
ProductKind: Preference · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep open: this PR contains useful native accessibility repairs and a density change absent from current main, with no definite introduced code defect found. Priority: P3 Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe shared Apple chat UI turns messages and composer state into native transcript, menu, and editor views; its typography owner supplies SwiftUI fonts, UIKit editor fonts, and math sizes. flowchart TD
Messages[Chat messages] --> Transcript[Native transcript]
Typography[Shared typography] --> Transcript
Typography --> Composer[Native composer]
Settings[System Dynamic Type] --> Typography
Composer --> Bridge[UIKit editor bridge]
Bridge --> Draft[Draft text and focus]
Technical reviewBest possible solution: Keep the existing typography and UIKit focus owners, verify the reported density approval, and qualify the changed default across an upgrade. Do we have a high-confidence way to reproduce the issue? The 17-point current-main baseline is source-confirmed; choosing a denser default is a preference change, while supplied native captures demonstrate the accompanying accessibility repairs. Is this the best way to solve the issue? The implementation appropriately reuses the shared typography, menu, and UIKit responder owners without adding a preference store or competing rendering path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f12a8dee2397. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +44, Tests +112, Docs +11. Total +167 across 13 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 20, 2026, 4:02 PM ET / 20:02 UTC (Revision 2). |
Integrate the accepted 13.5-point iOS typography with current main and source-bound native repairs for model-menu accessibility, bounded control glyphs, and UIKit draft focus. Preserve the tested production blobs and promote the font regression into the ordinary app-hosted test target. Co-authored-by: Solvely-Colin <[email protected]>
Co-authored-by: Solvely-Colin <[email protected]>
Co-authored-by: Solvely-Colin <[email protected]>
… set below the web's default size (openclaw#166090) * fix(ios): chat text is too large for a dense transcript and cannot be set below the web's default size * docs(ios): explain denser chat and accessibility sizing Co-authored-by: Solvely-Colin <[email protected]> * test(ios): include composer font contract in selected typography suite Co-authored-by: Solvely-Colin <[email protected]> --------- Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: Solvely-Colin <[email protected]>
…points Chat text goes back to the system text styles, like Messages: message text is 17 pt at the default Dynamic Type size and follows every setting, up and down. The 13.5 pt base from #166090 goes away; secondary roles use their matching styles with no custom scale. Inter stays, scaled with relativeTo:/UIFontMetrics. Apple's curve for custom fonts takes 12 pt caption text to 10 pt at the three smallest settings, so a role that would land under 11 pt there scales with caption2, whose curve never shrinks. Composer and talk-banner symbol glyphs keep their compact size; only text changes. The new rendered-size test resolves every chat text role at every Dynamic Type setting: body is 17 pt at the default size and equals UIFontMetrics' body for Inter elsewhere, and no role resolves under 11 pt.
What Problem This Solves
Makes iOS chat denser without losing Dynamic Type, and fixes the selected model action disappearing from native menu accessibility, oversized control glyphs at accessibility text sizes, and taps in the blank draft area failing to focus the keyboard.
User Impact
User impact: iOS chat uses a 13.5-point baseline instead of 17 points, including for existing readers at their unchanged text-size setting. Colin accepted this global density tradeoff. System and per-app Dynamic Type remain supported; increase the app’s text size in iOS Settings if you prefer larger text. The composer keeps its resting height and remains usable for multiline drafts.
At accessibility sizes, the model control uses an icon while retaining its full accessibility label and value. Symbols stay inside their touch targets; branded text is not capped. Model permissions and sign-in recovery remain unchanged. macOS/visionOS retain their text baseline and platform focus paths; shared symbol constructors change as noted under limits below.
Why This Change Was Made
The existing typography owner applies the iOS-only density scale, including native editor and Markdown math sizes. The native composer keeps one layout/focus flow: stored iOS state requests focus through the UIKit responder bridge, and native menus retain the selected action’s label and selected trait.
Native validation exposed the model-menu, symbol-overflow and blank-area-focus defects. These repairs are included rather than weakening the tests. Model-menu assertions moved into a dedicated interaction test; the growth case now completes, and its stale attachment label was corrected to File. The local acceptance target used for proof is not shipped; a host-aware font regression is in the ordinary app-hosted test target.
Contributor credit: original typography implementation and historical proof by @Marvinthebored; native repair/proof supplied by @Solvely-Colin. Contributor ancestry and Colin’s co-author trailer are preserved. AI-assisted.
Work sessions
Evidence
Published candidate: 5a53939, tree 4426dd1b83f0aa118530559ecd4fbc414c4a7fdd. Its ten production files are byte-identical to the supplied final native-tested tree 256b5348457bc185648d854c6df571423ca10be3. The derivative changes only test wiring/regression placement and documentation. The font assertion is an extension of the existing CI-selected OpenClawTypographyTests suite, not an unselected new suite. All 61 supplied manifest entries and the final/accessibility source hashes were verified; both effective trees were independently reconstructed. This is qualification of supplied local execution, not a fresh native rerun by the publisher.
These observations overlap; they are not eight distinct regression cases. Retained app-hosted font proof passed at default, first accessibility and largest accessibility categories. The matched main controls failed only the intended size expectation (differences 3, 5 and 10 points); earlier zero-test selector attempts are not passes. The font helper and UIKit factory are unchanged in the final repair.
Source reuse: reversing the exact final focus patch reproduces f449b9e. That last delta changes only iOS focus storage, moves unchanged computed properties and adds the blank-area test; symbol/menu code is unchanged. Largest-size evidence remains attributed to f449b9e, not relabeled as a final-tree run.
Repository checks: whole-candidate independent P0–P2 autoreview: scoped-clean. Scoped check:changed passed on integration commit 564735b, including 288 passed / 331 platform-skipped tooling tests; that Linux result is not native Swift execution. SwiftFormat: 0/12 files need changes. Available SwiftLint: zero production violations; seven existing snapshot-test diagnostics also occur on the pinned main comparison, with no new rule/severity class; three SourceKit rules unavailable on Linux. Native i18n inventory: 4501 entries, unchanged. Documentation lint and diff checks passed. Published-head CI passed in run 39485665282; guarded auto-merge landed as
92638b29a6f2115661217498a8d5767e85fd0235. The native screenshot lane built and passed its selected iPhone/iPad snapshot cases. The ordinary iOS build/test lane was skipped by CI planning, so the promoted app-hosted font assertion is not claimed executed by this run. Its supplied local font proof remains attributed above.Largest Accessibility + Bold Text
Before — header/footer glyph overflow, before the symbol repair. After — bounded symbols with text still scaled. Different synthetic drafts illustrate control behavior, not a pixel-identical content comparison. Model labels are redacted without changing the glyphs under test.
Selected model and blank-area focus
The October 6 ClawSweeper before-merge concerns are addressed: Colin explicitly accepted the global 13.5-point baseline on October 20, and the supplied largest Accessibility + Bold Text execution and inspected captures cover the requested accessibility gap. No Rank-up moves list was present in that review.
Limits and retained failures
No new iPad run, spoken VoiceOver navigation session, attachment removal/restoration, live model RPC or macOS rendered-UI proof. Largest-size native execution predates the focus-only change; default-size focus/growth/newline cases cover that final delta. macOS text constructors and nominal symbol sizes are unchanged, but shared symbols now use fixed system-font constructors; identical rendered/scaling behavior on macOS is not claimed. No Gateway or authentication behavior is changed.
Earlier menu-tree/scrolling diagnostics and the reverted spacing experiment are retained, not hidden. The spacing experiment still failed blank-area focus; the stored-state repair passed the unchanged keyboard assertion. The original growth failure was after initial geometry, at model-menu rows, so it did not establish later expanded-draft assertions; the repaired case now completes them.
Production delta is +44 net lines for the accepted density and existing-owner layout/focus capability; tests +112, documentation +11. Two computed properties are moved unchanged. No new runtime preference, storage, permission owner or dependency is introduced.