Skip to content

fix(android): keep the composer visible with slash suggestions - #130555

Merged
steipete merged 1 commit into
mainfrom
codex/android-eight-slash-composer-20260826
Aug 27, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/android-eight-slash-composer-20260826

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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 ChatScreen regression 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

  • The full ChatScreen layout 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.
  • 216 focused tests passed across Play and third-party variants. Both Android lint tasks, all four Kotlin style suites, the Play debug build, the normal changed-file checks, and independent P0–P2 review passed.
  • Actual MainActivity before/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.
  • Both active-run Stop and idle Send states were checked. The idle comparison used separate disposable fixture APKs that omitted only the history's active-run field; that omission is not part of this PR. Selecting the sixth command completed /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:

Before After
Before: slash suggestions hide the editor and Send control After: suggestions scroll above the visible editor and Send control

@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 27, 2026 01:09
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 27, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 27, 2026
@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 9:18 PM ET / August 27, 2026, 01:18 UTC.

ClawSweeper review

What this changes

The 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 provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep 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
Reviewed head: 219979171c336df70885eddbfb5a05d688f55c89

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with direct device-evidence claims and a behavior-level layout regression test; ordinary exact-head Android CI remains the final merge gate.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This Member-authored PR is exempt from the external-contributor proof gate; its body nevertheless provides claimed real-device before/after evidence for the affected viewport.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This Member-authored PR is exempt from the external-contributor proof gate; its body nevertheless provides claimed real-device before/after evidence for the affected viewport.
Evidence reviewed 5 items Current-main behavior: Current main invokes SlashCommandPanel as an ordinary unweighted child before the composer action row, so a long list has no owner-imposed remaining-height bound.
Repair boundary: The PR head passes the parent Column's remaining height to SlashCommandPanel and makes only its list vertically scrollable; the editor/action row remains a sibling outside that scroll container.
Behavior-level regression coverage: The new full ChatScreen test uses a 360×400 dp clipped viewport, types '/', verifies the editor and Stop target remain visible, scrolls to /loop, selects it, and covers ordinary, one-match, and no-match input.
Findings None None.
Security None None.

Live Verification

Command: cd apps/android && ./gradlew --no-daemon :app:testPlayDebugUnitTest --tests ai.openclaw.app.ui.chat.ChatComposerLayoutTest

Result: FAIL (failed) — step 1 run cd apps/android && ./gradlew --no-daemon :app:testPlayDebugUnitTest --tests ai.openclaw.app.ui.chat.ChatComposerLayoutTest: previous terminal command was still running after 30 seconds: "cd apps/android && ./gradlew --no-daemon :app:testPlayDebugUnitTest --tests ai.openclaw.app.ui.chat.ChatComposerLayoutTest"

Fetching distribution.
Downloading https://services.gradle.org/distributions/gradle-9.7.0-bin.zip
..............10%..............20%..............30%...............40%..............50%..............60%...............70%..............80%...............90%....
..........100%

Welcome to Gradle 9.7.0!

Here are the highlights of this release:
 - Isolated Projects graduates to incubating
 - Broader Configuration Cache compatibility
 - More source locations in problem reports

For more details see https://docs.gradle.org/9.7.0/release-notes.html

To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.0/userguide/
gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build
│···············│ 0% CONFIGURING [25s]
› IDLE
› IDLE
› IDLE
› IDLE
› IDLE
› IDLE
› IDLE
› IDLE
› IDLE
› IDLE
› IDLE
› IDLE
› IDLE
› IDLE
› IDLE
› root project › Resolve files of configuration 'classpath' › Resolve files of configuration 'classpath' › InstrumentationAnalysisTransform gradle-9.3.1.jar
› root project › Resolve files of configuration 'classpath' › Resolve files of configuration 'classpath' › InstrumentationAnalysisTransform builder-9.3.1.jar
› IDLE
› IDLE
› IDLE
› IDLE
› IDLE
› IDLE
› IDLE
› IDLE

Assertions:

  • FAIL expect_output: BUILD SUCCESSFUL

How this fits together

Android 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]
Loading

Before merge

  • Resolve merge risk (P1) - Exact-head Android test, build, and style checks were still running or queued in the supplied PR state; merge should wait for their completion.
  • Resolve merge risk (P1) - Production code is net +4 lines; the added modifier parameter and scroll owner appear necessary to propagate the remaining-height constraint without adding a fixed-height policy.
  • Complete next step (P2) - The already-open Member PR owns the repair; the remaining action is normal exact-head Android validation and maintainer merge review.
Agent review details

Security

None.

PR surface

Other +163. Total +163 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 4 173 10 +163
Total 4 173 10 +163

Review metrics

Metric Value Why it matters
Production versus test delta production +6/-2 (net +4); test support +16/-7; tests +151/-1 The small runtime increase carries the parent constraint into the panel; most added code is behavior-level regression coverage and fixture support.

Stored data model

Persistent data-model change detected: vector/embedding metadata: apps/android/app/src/test/java/ai/openclaw/app/AndroidScreenshotFixtureTest.kt. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P2: The defect blocks a bounded Android chat interaction while leaving the app and other channels available.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. This Member-authored PR is exempt from the external-contributor proof gate; its body nevertheless provides claimed real-device before/after evidence for the affected viewport.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This Member-authored PR is exempt from the external-contributor proof gate; its body nevertheless provides claimed real-device before/after evidence for the affected viewport.

Label justifications:

  • P2: The defect blocks a bounded Android chat interaction while leaving the app and other channels available.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This Member-authored PR is exempt from the external-contributor proof gate; its body nevertheless provides claimed real-device before/after evidence for the affected viewport.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. This Member-authored PR is exempt from the external-contributor proof gate; its body nevertheless provides claimed real-device before/after evidence for the affected viewport.

Evidence

What I checked:

Likely related people:

  • steipete: Current-main blame assigns the affected composer and slash-panel lines to Peter Steinberger's recent ChatScreen introduction; the same contributor authored this targeted repair. (role: introduced behavior and recent area contributor; confidence: high; commits: 95161c233530, 219979171c33; files: apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatScreen.kt)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 8e1c34e into main Aug 27, 2026
128 checks passed
@steipete
steipete deleted the codex/android-eight-slash-composer-20260826 branch August 27, 2026 01:37
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant