Repository navigation
fix(android): keep the composer visible with slash suggestions - #130555
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 9:18 PM ET / August 27, 2026, 01:18 UTC. ClawSweeper reviewWhat this changesThe PR constrains Android slash-command suggestions to the space remaining above the composer and makes that list scrollable, preserving the editor and Send or Stop control with the keyboard open. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open. Current main still lets the slash panel measure before the composer row; this focused Member-authored repair is still necessary and the protected maintainer label prevents cleanup closure. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherAndroid ChatScreen renders chat content followed by the composer, which contains optional slash suggestions and the input/action row. Command entries arrive from chat metadata, then the composer must fit them alongside controls in the keyboard-reduced viewport. flowchart LR
A[Chat metadata commands] --> B[Slash suggestion matching]
B --> C[Composer layout]
C --> D[Scrollable suggestions]
C --> E[Editor and Send or Stop]
E --> F[Keyboard-reduced viewport]
Before merge
Agent review detailsSecurityNone. PR surfaceOther +163. Total +163 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the parent-owned remaining-height and panel-local scrolling arrangement once exact-head Android validation is green; do not introduce a fixed suggestion-height setting or change keyboard inset behavior. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible with high confidence: current main renders the unbounded panel before the input row, and the PR-head 360×400 dp regression test exercises the resulting constrained viewport. This read-only review did not execute Android tests. Is this the best way to solve the issue? Yes. ChatComposer owns the ordering of suggestions and controls, so allocating its remaining height to the panel and scrolling inside that panel is the narrowest repair; the new test protects observable layout and selection behavior without a production-only test seam. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b13993af1554. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where Android users typing
/could lose access to the message editor and Send or Stop control when the software keyboard reduced the available height. Six ordinary command suggestions could consume the entire composer viewport.Why This Change Was Made
The composer now measures its editor and actions before allocating the remaining height to a scrollable suggestion panel. The panel uses
weight(fill = false)so short lists stay compact, without a fixed height cap or changes to keyboard inset handling, manifests, permissions, or persistence.The existing screenshot fixture now supplies six real default command entries, allowing a full
ChatScreenregression test without exposing a new production test hook. Runtime LOC is +6/-2 (net +4); fixture support is +16/-7, and tests are +151/-1. The runtime growth adds only the missing remaining-height ownership and scrolling behavior.User Impact
Users can keep typing and reach Send or Stop while browsing slash-command suggestions with the keyboard open. The last suggestion remains reachable by scrolling and selecting it still completes the command in the editor.
Follow-up: improve slash-suggestion usability with very short wide-screen keyboard viewports. A supplementary 800 × 700 dp check left only 26.7 dp for suggestions after the fixed headers and composer, less than one 48 dp row. The editor and Send remained visible, but full suggestion-row visibility in that constrained layout needs separate work. The before/after proof below is for the phone viewport, not complete foldable-device coverage.
Evidence
ChatScreenlayout regression failed on unchanged production with a zero-height editor. The repaired test passes, including scrolling to/loop, selecting it, and preserving the editor and 48 dp action target. Ordinary text, one-match, and no-match controls also pass.MainActivitybefore/after checks used Android 16, Gboard, and the same 360 × 800 dp phone viewport. The baseline hid the editor and action behind the keyboard; the fixed build retained the full editor and 48 dp action target while the six-command menu scrolled independently./loop. Tapping Send reached the existing controller and displayed the fixture's expected unsupported-gateway error. This proves action reachability, not successful remote message delivery.The following task-fixture screenshots show the idle Send comparison with the real keyboard open: