Skip to content

fix(mobile): the message box sits into the home indicator's inset, not a band above it - #335

Merged
devswha merged 3 commits into
devswha:mainfrom
Haeminway1:fix/composer-home-indicator-gap
Oct 2, 2026
Merged

devswha merged 3 commits into
devswha:mainfrom
Haeminway1:fix/composer-home-indicator-gap

Conversation

@Haeminway1

@Haeminway1 Haeminway1 commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Why

On an iPhone with the keyboard down, the composer's bottom padding is the whole home-indicator inset: max(16px, env(safe-area-inset-bottom)), which is 34px. That leaves an empty band under the message box that reads as wasted space.

Change

The bottom padding is now max(16px, inset − 16px).

  • On an iPhone: the box sits 18px above the screen's edge, clear of the thin indicator bar, which runs ~8px above the edge.
  • On screens without an inset: the composer keeps its own 16px.
  • With the keyboard up: unchanged ([data-keyboard] .composer).

Validation

  • CSS only, a single declaration.
  • env(safe-area-inset-bottom) cannot be emulated in headless Chrome, so this is not covered by test:ui. Not yet checked on a device: I will confirm on an iPhone home-screen app and report back here.

🤖 Generated with Claude Code

…t a band above it

With no keyboard up, the composer kept the whole 34px home-indicator inset under the box as
its bottom padding, which read as an empty band under the chat on an iPhone. The indicator is a
thin bar near the bottom edge: the box now sits 16px into the inset (18px above the edge on an
iPhone) and still clears it; without an inset, the composer's own 16px stays.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

🧰 Additional context used
📚 Code guidelines (1)
CONTRIBUTING.md — configured

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: e9344358-a62a-46d4-8299-d773077aa927

📥 Commits

Reviewing files that changed from the base of the PR and between 34c00a0 and a64c0fe.

📒 Files selected for processing (1)
  • CHANGELOG.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Summary

Summary by CodeRabbit

  • Style
    • Adjusted spacing beneath the message composer on mobile devices with a safe-area inset. The composer now sits closer to the home indicator when the inset is larger, while retaining a minimum amount of bottom spacing.

Walkthrough

The .composer bottom padding now compares var(--space-4) with the safe-area inset minus var(--space-4). The changelog records that the mobile message box sits closer to the home indicator while retaining its base spacing.

Changes

Composer spacing

Layer / File(s) Summary
Safe-area bottom padding
src/components/Composer.css, CHANGELOG.md
The padding calculation subtracts var(--space-4) from the safe-area inset before comparing it with the base spacing. The changelog describes the mobile spacing adjustment.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: devswha

Merge Risk: ⚪ Minimal · up to a64c0

The composer reserves less space below the message box on screens with a larger safe-area inset while retaining its minimum spacing. No actionable merge risk is evident from the supplied context.

Architecture Summary

Architecture risk: 🔵 Low · up to a64c0

The change affects 2 systems.

Changed systems: CHANGELOG.md, src

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — CHANGELOG.md (service) was modified; 1 changed file maps to changed impact.
  • observed — src (ui) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in src/components/Composer.css: .composer now subtracts var(--space-4) from the safe-area inset before comparing it with the base bottom spacing; previously it compared against the full inset.
  • observed — Modified behavior in CHANGELOG.md: Added a changelog entry stating that the mobile message box sits closer to the home indicator while retaining its base spacing.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: reducing mobile composer spacing within the home-indicator safe-area inset.
Description check ✅ Passed The description explains the problem, the CSS change, expected behavior, and validation status. It includes the required Change and Validation sections. Device evidence is not yet available, but the l…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Comment @coderabbitai help to get the list of available commands.

@devswha devswha left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Reviewed the safe-area spacing calculation and existing keyboard override: base spacing remains when there is no inset, while the keyboard-specific padding still wins. Added the changelog entry and integrated current main. Fast checks, Integration and browser, and Native Windows install all pass on this exact head.

@devswha
devswha merged commit 6a930c0 into devswha:main Oct 2, 2026
4 checks passed
devswha added a commit that referenced this pull request Oct 3, 2026
Bumps package.json and herdr-plugin.toml to 0.3.44, moves the Unreleased
notes under [0.3.44] - 2026-10-03, adds the compare link, and removes a
merge marker line left in CHANGELOG.md by #351's conflict resolution.
### Added
- Native Windows x64 installation through `install.ps1`, with the same
herdr plugin startup
and updates. Windows needs Bun and Git, without Node or WSL, and keeps
using the terminal
screen mirror. ([#330](#330)
by @JJLiebig)
- Settings can choose Chat, Terminal, or Auto as the default view for
panes. Changing it resets
remembered pane views on this device. Shell panes still open in
Terminal.
([#325](#325) by
@Haeminway1)
- Choose the terminal input line or direct typing on desktop as well as
touch screens, and
customize or unbind the app's Mod+Shift shortcuts with conflict checks
and reset.
  ([#334](#334))

### Changed
- In the sidebar's By workspace view, a workspace with one pane keeps
its numbered header and
can be folded, renamed and reordered from that header, just like a
workspace with several panes.
  ([#332](#332) by @beomq)
- The top usage panel shows larger percentages, remaining-capacity
colors and compact reset
countdowns with their local time. Expired reset times stay hidden until
fresh usage arrives.
([#336](#336) by
@Haeminway1)
- Pane titles that contain a directory show its last folder, and
matching workspace and folder
names appear once in the sidebar and command palette, including Windows
paths.
([#337](#337) by
@Haeminway1)
- In the sidebar's By workspace view, a pane row no longer repeats the
workspace its header names.
Its second line shows the folder only when neither the title nor the
workspace already says it.
  ([#358](#358))

### Fixed
- GJC conversations are resolved from the foreground process directory
when it differs from
the pane directory.
([#333](#333) by @Kinetic27)
- Direct terminal input preserves rapid IME commits when punctuation
arrives before composition
timers run, with a bounded xterm 5.5 backport and Korean final-consonant
regression checks.
Native Android/Gboard checks also fixed stale editor text after
Backspace breaking the next
Hangul word. Secret entry now refuses a held or unready attachment and
failed PTY writes.
  ([#334](#334))
- New session in the browser demo opens the new session instead of
leaving a blank page.
  ([#355](#355))
- Terminal input keeps multi-character IME commits and emoji while
disconnected, waits for the
attachment before sending keys, and reports input failures. Unsent input
lines survive pane,
lens and mode changes; late acknowledgements preserve replacement edits.
Composition keeps
its Enter and Send button, and terminal key-bar taps wait until it
finishes.
  ([#334](#334))
- The background tasks list stays below the app header on a short
screen, such as a phone held
  sideways, and scrolls inside the room above the message box.
  ([#354](#354))
- The mobile message box sits closer to the home indicator while
retaining its base spacing.
([#335](#335) by
@Haeminway1)
- Adding or reconnecting a remote PC says when herdr is not running or
not answering there,
  instead of only `Bridge verification failed (500)`.
  ([#353](#353))
- Shift+Enter in the live terminal sends the same newline chord as
Alt+Enter, instead of plain
Enter that submits an agent's message. Pending IME text is sent before
the newline chord.
([#339](#339) by
@WOULDU-pres)
- On Windows, and from an install path with a space or a non-ASCII
character, the app page loads
instead of the "not built yet" notice. The Windows installer replaces a
copy from a release
  without Windows support, and says so when a release cannot run there.
  ([#356](#356))
- On an iPhone home screen app, a text field that keeps its focus with
the keyboard down no
  longer leaves a status-bar band under the message box.
([#349](#349) by
@Haeminway1)
- After `/new` in an OmO pane, the chat stops showing the conversation
before it: OmO writes the
new session's file only with its first message, and until then the chat
shows what a fresh OmO
shows. ([#351](#351) by
@WOULDU-pres)
- On a Windows PC, an omo pane shows omo's mark instead of Claude's, and
its chat finds the
conversation: process words with `bun.exe`, backslashes and a drive
letter read as omo, and the
  session folder is named as omo's engine names a Windows folder.
([#342](#342) by
@Haeminway1)
- The chat lens finds an omo pane's conversation when its process keeps
its sessions outside
`~/.omo/agent` (`OMO_CODING_AGENT_DIR`, `SENPI_CODING_AGENT_DIR` or
`PI_CODING_AGENT_DIR`).
([#350](#350) by
@Haeminway1) passes. After the merge: .
devswha added a commit that referenced this pull request Nov 6, 2026
…ets (#3119)

## Why

On a phone, a few open surfaces reached into the screen's safe-area
insets (measured on `origin/main` with the insets emulated through CDP,
`Emulation.setSafeAreaInsetsOverride`):

- **Upright, Dynamic Island (59px top inset):** the search sheet
(`Search panes and actions`) is `100% - 32px` tall, so its search field
(top 54px) and close button (top 49px) sat under the island.
- **Short screen (keyboard up, 390x500):** the More sheet, Settings and
the search sheet started at 32-40px, under the status bar; Settings'
close button sat under the island.
- **Landscape (844x390, 59px notch on either side, 21px home
indicator):** Settings fills the scrim, whose padding was a flat 16px.
Its left menu (Search settings, Appearance ... About) went under the
left notch, the close button and the right-hand controls under the right
one, and About into the home indicator.
- **Landscape, a tab's menu:** `RowMenu` clamps its popover to the
window, so a tall menu ran 13px into the home indicator.

The header, the title's tab sheet (#3099), the More sheet, confirmations
and the drawer already kept clear. The composer and the key bar sit part
way into the home-indicator inset by design (#335, KeyBar.css: the
indicator is a thin bar near the edge and stays clear), so they are left
alone.

## Change

- `.modal-scrim` pads each side to `max(--space-4,
env(safe-area-inset-*))`: a centred card (Settings sideways) keeps clear
of the notch on either side and of the home indicator. With no insets
(desktop) the padding is the 16px it was.
- A phone's bottom sheet (`.modal` at `<=640px`, the machine dialog) is
capped at `min(92%, 100% - top inset - --space-2)`, and the search
sheet's height takes `max(--space-8, top inset + --space-2)` off instead
of `--space-8`: a sheet's top never reaches under the status bar or
island, the keyboard up included.
- `RowMenu`'s popover placement clamps to the safe area
(`lib/safeArea.ts` reads the insets from `--safe-area-*` on the root,
which styles.css sets to `env(safe-area-inset-*)`: a script cannot read
`env()` itself, a custom property computes it). With no insets the
arithmetic is the same as before.

Design follows iOS's own sheets and popovers (UIKit's
`UISheetPresentationController`, Apple HIG Layout: keep controls inside
the safe area), which never put content under the status bar, the
Dynamic Island or the home indicator.

## Validation

- New `scripts/phone-safe-area-demo-regression.ts` (in the CI browser
lane): upright 390x844, short 390x500, an iPhone keyboard (visual
viewport 500px, `data-keyboard`) and landscape 844x390 with emulated
insets; every visible control of the open surface must lie inside the
safe area, and its close or answer must be drawn whole there. On
`origin/main` it fails with 24 findings (each listed above); with this
change it passes.
- Screenshots: before/after at 390x844 upright and 844x390 landscape
with the insets drawn in red, light and dark, and 1280 light and dark
(unchanged: no insets).
- `bun run check fast`: passed on 58971f1 (typecheck, build, 12591 unit
tests, 0 fail).
- Browser regressions covering the touched shared pieces (RowMenu in the
sidebar and tab strip, the palette, dialogs, Settings, the machine
dialog): the 44 scripts of the CI browser lane that name them, run with
`ci-browser-parallel.ts` in the CI runner image
(`herdr-ci-runner:local`): 43/44 passed. `scripts/ui-regression.ts`
times out waiting for the `Suggestion chip` switch; it fails the same
way on plain `origin/main` (0101784) in the same image, so it is not
from this change.
- Not run: native iOS/Android devices (the insets are emulated in
Chromium), the integration suite (no server change).
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