Skip to content

fix(android): align composer control sheets - #137442

Merged
roboclaw-bot merged 1 commit into
mainfrom
fix/android-composer-controls
Sep 4, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
fix/android-composer-controls

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #137441

What Problem This Solves

Fixes an issue where Android chat users opening composer controls would see the Fast mode bolt detached from its gauge, the effort needle disappear, Effort and Permissions in floating overlays, and two unrelated actions both labeled Default. Task progress cards could also expose a raw <progress> HTML element instead of the progress bar requested by the shared agent contract.

Why This Change Was Made

The 48 dp effort touch target now owns a centered 20 dp gauge with a visible, mathematically indexed needle and a smaller Fast mode badge that does not cover its hub. When the effective effort is absent from the model-advertised choices, the gauge stays unpositioned: no needle or hub is drawn, while the active value and label are preserved. Effort uses a scrollable bottom sheet whose custom discrete track, live value label, RTL geometry, and pill thumb share the same model-advertised option order. Rejected changes restore the authoritative value.

Permissions is a nested page of the existing model bottom sheet, while its status remains non-clickable and the model reset is labeled Default model. System Back returns from Permissions to the model list before dismissing the sheet.

Binary effort profiles and unknown effective levels expose direct accessible choices instead of a continuous two-endpoint slider. Anchored profiles with three or more advertised options keep the discrete slider. The control owns its vertical layout, and one Back handler owns both model and permission pages even when a density change recreates the dialog.

Progress-card Markdown opts into a native progress renderer while ordinary chat HTML remains literal. Recognition uses the CommonMark nodes' own HTML literals, not source offsets that can belong to separately parsed disclosure fragments. Bars can share a paragraph with surrounding text; document-wide reference links, warning text after details, and adjacent bars remain intact. Fenced/inline code and malformed elements remain literal Markdown.

Production LOC: +656/-210 (net +446); tests: +475/-19 (net +456); generated i18n: +8/-4. Production growth implements the mobile bottom-sheet interaction and the card-only rendering boundary; existing controller authority, advertised model choices, and Material components remain canonical. No new configuration or compatibility path is introduced.

User Impact

Android composer controls now match the Web UI's hierarchy more closely: the Fast mode badge and effort needle coexist inside the gauge, the Effort sheet shows one point per available level with the active level live, Permissions no longer overlaps the model selector, and the permission status cannot be mistaken for the default-model action. Task progress markup now appears as a labeled native bar instead of escaped HTML.

Visual Proof

The original Before captures are retained. Updated After captures use the real production Compose tree in a dark-theme Robolectric fixture: 360 dp wide, 640 dp chat viewport, 800 dp native-dialog window. The model capture explicitly waits until the loaded OpenAI logo replaces its fallback. These are fixture screenshots, not a device-video claim: no Android device was attached and this host had no readable KVM device. The temporary capture helper is not included in the commit.

Fast mode badge and effort needle

BeforeAfter
Fast mode badge hiding the gauge needle Visible effort needle with Fast mode badge inside the gauge

Effort selector

BeforeAfter
Detached Effort dropdown popup Effort bottom sheet with discrete points, pill thumb, active label, and Fast mode switch

Model selector

BeforeAfter
Model selector with duplicate Default labels Model selector with distinct policy status and model reset

Permissions

BeforeAfter
Permissions popup overlapping the model sheet Permissions page integrated into the model sheet

Task progress markup

BeforeAfter
Android progress card displaying the raw progress HTML element Android progress card displaying a labeled native 40 percent progress bar

Unknown effective effort

Both captures use the same production Compose fixture with effective value future-effort and advertised choices off, low, high. The setting remains unchanged. Before, the gauge incorrectly points at the minimum; after, the arc remains but there is no invented needle position.

BeforeAfter
Unknown effective effort incorrectly shown at the minimum Unknown effective effort shown without an invented needle position

Evidence

  • The unadvertised-effort regression was observed red before the fix (minimum fraction returned instead of no position), then green afterward. Known Off and advertised angle coverage remain intact. The capture fixture also asserts that the effective setting remains future-effort.

  • Fresh Codex review of this follow-up repair: P0–P2 scoped-clean, confidence 0.97. It corrects the sole finding from the preceding full-PR review without changing controller settings or permission authority.

  • Five focused regressions were observed red before the repair: warning text misclassified as progress, progress markup followed by a single newline, binary effort actions, selecting the first advertised effort from an unknown level, and the second Back action after actual dialog recreation.

  • After repair, the complete touched Play and Third-Party test scope passes: 88 tests per variant, including 36 composer/layout cases, 40 Markdown cases, and effort, permission, and progress parser coverage.

  • Native-i18n verification and the changed-scope gate pass, including Android Ktlint. Local focused Gradle runs reuse unchanged generated Mermaid assets; full CI still owns asset-generation/build coverage.

  • Fresh repository autoreview of the repair delta: scoped-clean through P2, confidence 0.93. Root independently inspected the exact CommonMark 0.30.0, Material3 1.4.0, Compose UI 1.12.0, and sibling Codex effort contracts.

  • The final rebase is patch-equivalent. All four updated After images were visually inspected; the model image contains the actual OpenAI knot logo, and the progress image shows Test is running → Task progress · 2/5 → native 40% bar → 40% without raw markup.

  • The PR does not modify dependency/security-audit policy. It inherits main's fix in fix(ci): warn when npm advisory service is unavailable #137881: an unavailable npm advisory service is reported as incomplete/warning by ordinary CI, not as vulnerability clearance; known findings remain blocking.

Worked on by


View the OpenClaw team session

@clawsweeper

clawsweeper Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@blacksmith-sh

This comment has been minimized.

@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 4, 2026, 9:19 AM ET / 13:19 UTC.

ClawSweeper review

What this changes

The PR replaces Android chat composer dropdowns with coordinated effort and permission sheets, clarifies labels, and renders progress-card Markdown progress elements as native bars.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open for human handling: the protected maintainer label and unresolved prior Android-scope acceptance prevent an automated merge/close outcome. No introduced P0–P2 correctness defect was identified in this review.

Priority: P2
Reviewed head: f376eab1940fe7d793ee86268ae697d7c3215613
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The implementation is coherent and regression-focused, with the remaining blocker being recorded Android-owner acceptance rather than a code defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer/bot PR is exempt from the external-contributor proof gate; it nevertheless supplies Robolectric Compose fixture screenshots and focused tests for the changed UI paths.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer/bot PR is exempt from the external-contributor proof gate; it nevertheless supplies Robolectric Compose fixture screenshots and focused tests for the changed UI paths.
Evidence reviewed 7 items Composer owner boundary: The changed screen passes permission and model selections to the existing ViewModel callbacks; it does not add a new settings or authorization path.
Progress rendering boundary: Only expanded progress cards opt into native progress rendering; ordinary ChatMarkdown callers retain the default literal-HTML behavior.
Focused regression coverage: The introduced tests cover the nested permission Back path after dialog recreation, effort selection edge cases, and progress-element parsing boundaries.
Findings None None.
Security None None.

How this fits together

Android ChatScreen reads session and controller state to render the composer, model picker, and progress cards. User selections pass through the existing ViewModel and runtime controller paths back to Gateway session settings.

flowchart LR
  A[Gateway session state] --> B[Android chat controller]
  B --> C[Chat screen]
  C --> D[Effort and permission sheets]
  D --> E[Existing session-setting calls]
  C --> F[Progress-card Markdown]
  F --> G[Native progress bar]
Loading

Decision needed

Question Recommendation
Does the Android feature owner approve replacing the existing composer dropdown interactions with the larger bottom-sheet, discrete-slider, nested-permission, and progress-rendering scope? Accept the coherent Android scope: Record Android feature-owner acceptance and continue normal exact-head merge validation.

Why: The prior completed review explicitly requested this acceptance, and the current protected maintainer label requires human handling rather than an automated merge decision.

Before merge

  • Resolve merge risk (P1) - This bug-fix branch has a net +446 production lines and changes established Android composer interaction patterns; the prior review's requested Android feature-owner acceptance is not recorded.
  • Complete next step (P2) - Record Android feature-owner acceptance of the expanded composer and progress-rendering scope before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Tests +456, Other +450. Total +906 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 475 19 +456
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 4 664 214 +450
Total 8 1139 233 +906

Review metrics

Metric Value Why it matters
Production versus test delta production +656/-210 (net +446); tests +475/-19 (net +456); generated i18n +8/-4 The production growth is substantial for a bug fix and is why recorded Android owner acceptance matters before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #137441
Summary: This PR is the explicit candidate fix for the Android composer regression tracked by the canonical issue.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Accept the expanded UI repair (recommended)
    An Android feature owner can explicitly accept the integrated composer and progress-card scope, after which routine exact-head checks remain the merge gate.
  2. Pause for a narrower repair
    If the interaction redesign is not desired, hold this branch and retain only a separately approved, focused regression fix.

Technical review

Best possible solution:

Retain the existing controller and permission-authority boundary, but obtain Android feature-owner acceptance for the expanded bottom-sheet, slider, and card-rendering scope before merging.

Do we have a high-confidence way to reproduce the issue?

Yes, source-reproducible: the pre-change composer used dropdown controls while this head routes the same trigger to the new effort sheet; Android tests were not executed in this read-only review.

Is this the best way to solve the issue?

Yes for the code boundary: it preserves existing ViewModel/controller calls, honors Gateway-advertised effort choices, and limits native progress conversion to progress cards; owner acceptance of the broader UI scope remains required.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 35a86b3a2e73.

Labels

Label justifications:

  • P2: This is a deterministic Android usability regression with bounded blast radius.
  • merge-risk: 🚨 other: The PR substantially expands the Android composer interaction implementation beyond a narrow visual adjustment.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 maintainer/bot PR is exempt from the external-contributor proof gate; it nevertheless supplies Robolectric Compose fixture screenshots and focused tests for the changed UI paths.

Evidence

What I checked:

Likely related people:

  • WhatsSkiLL: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Record Android feature-owner acceptance of the expanded composer and progress-rendering scope.

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.

History

Review history (8 earlier review cycles)
  • reviewed 2026-09-03T17:37:20.130Z sha d76ac39 :: blocked before merge. :: [P2] Update the permission-label contract test
  • reviewed 2026-09-03T17:45:45.579Z sha d76ac39 :: blocked before merge. :: [P2] Update the permission-label contract test
  • reviewed 2026-09-03T20:07:22.277Z sha f443de43e8d394f5d583ca72a757671e4cd3f0cb :: blocked before merge. :: none
  • reviewed 2026-09-03T20:42:52.950Z sha f443de43e8d394f5d583ca72a757671e4cd3f0cb :: blocked before merge. :: none
  • reviewed 2026-09-03T21:00:17.289Z sha cb36b21 :: blocked before merge. :: none
  • reviewed 2026-09-04T02:00:32.236Z sha 846df0d :: blocked before merge. :: none
  • reviewed 2026-09-04T03:44:04.023Z sha 9975819 :: blocked before merge. :: none
  • reviewed 2026-09-04T05:51:10.743Z sha c17072e :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 3, 2026
@roboclaw-bot
roboclaw-bot force-pushed the fix/android-composer-controls branch from d76ac39 to f443de4 Compare September 3, 2026 19:56
@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 3, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. and removed proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 3, 2026
@roboclaw-bot
roboclaw-bot force-pushed the fix/android-composer-controls branch 3 times, most recently from 7a93d75 to 846df0d Compare September 4, 2026 01:53
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 4, 2026
@roboclaw-bot
roboclaw-bot force-pushed the fix/android-composer-controls branch from 846df0d to dec8f52 Compare September 4, 2026 03:34
@roboclaw-bot
roboclaw-bot force-pushed the fix/android-composer-controls branch from dec8f52 to 9975819 Compare September 4, 2026 03:37
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 4, 2026
@roboclaw-bot
roboclaw-bot force-pushed the fix/android-composer-controls branch from 9975819 to c17072e Compare September 4, 2026 05:42
@roboclaw-bot
roboclaw-bot force-pushed the fix/android-composer-controls branch from c17072e to f376eab Compare September 4, 2026 13:11
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Pre-merge verification and maintainer disposition

Candidate: f376eab.

Maintainer direction and remaining risk

Assigned maintainer @IWhatsskill explicitly requested this pre-merge note followed by merge after receiving the full Codex result, the expanded Android-scope concern, and the physical-device proof limitation. His repository role was verified as maintain. This records the decision to proceed with the integrated composer/progress repair; it does not fabricate a submitted GitHub approval or change the existing Sweeper verdict/labels.

The active branch rules require openclaw/ci-gate and linear history; they do not currently require an independent PR approval. No admin bypass, rule changes, or security-gate weakening is requested.

Fresh Codex review

A fresh independent, read-only review covered the entire PR through P3, not only the last repair, against main 8688d76204be:

  • No P0-P3 findings; scoped-clean, patch is correct (reviewer confidence 0.92).
  • Advertised, binary, single-option, and unknown effort selections were checked; unknown effort remains positionless rather than appearing as Off.
  • Sheet Back/recreation behavior was checked against the Material3 lifecycle contract.
  • Model and permission actions remain distinct and retain the existing controller authority.
  • Native progress parsing preserves surrounding Markdown and rejects malformed/non-finite numeric input.
  • Remaining uncertainty: physical-device gestures and accessibility. No device-based execution was claimed by this review.

The lead personally inspected the Codex model contract at codex-rs/protocol/src/openai_models.rs:50-145,223-237,388-395 (Codex source f6805328c434), plus the relevant Material3 and CommonMark source/contracts.

Validation and evidence

  • Exact-head CI run 33876657533, attempt 2: success, completed September 4, 2026 at 13:59 UTC. All 101 latest-attempt jobs were checked, including the final openclaw/ci-gate, security-fast, and six Android lanes. Non-applicable lanes are skipped; none are failed, cancelled, or pending.
  • Local scoped tests: 88 Play + 88 Third-Party passed. Following the patch-equivalent rebase, 6 + 6 focused regressions passed again with zero failures/errors/skips.
  • check:changed, Android Ktlint, and native-i18n passed. The full :app:assemblePlayDebug target, including normal asset generation, also passed.
  • Six inspected Before/After pairs remain in the PR's Visual Proof section. The provider-logo screenshot waits for the actual loaded logo. These are production-Compose/Robolectric fixture captures, not device recordings: there was no attached Android device or readable KVM device. Temporary capture helpers are not committed.
  • Current-head ClawSweeper review: no introduced P0-P2 correctness findings or security findings, with ready for maintainer look. Its needs-human scope/maintainer disposition is addressed by the explicit direction recorded above; its published report is left unchanged.
  • Main's advisory-unavailable warning policy remains explicit: green security-fast is not a claim of complete vulnerability clearance. No PR-local audit bypass was added.

Production +656/-210 (net +446); tests +475/-19; generated native-i18n +8/-4. The production growth implements the integrated mobile sheets and card-only rendering boundary without introducing another settings/controller authority path.

Native scripts/pr review-validate-artifacts 137442, OPENCLAW_TESTBOX=1 scripts/pr prepare-run 137442, and scripts/pr merge-verify 137442 all passed. Preparation retained the exact reviewed head and skipped the push because the remote already matched. The native main-drift warning was retained, not disabled: independent composition with freshly fetched main 894e9f4d28781858204bda4e6bcebef8c85c7651 is conflict-free (tree 3a6ebd555005958fac495d2b8ba66e1dd7e2346e). Main has no Android-source changes since the PR merge base; the shared native-i18n drift is confined to Apple entries and composes cleanly. No wrapper or merge-policy override was applied.

The native merge path preserves the existing @IWhatsskill co-author trailer. This comment records pre-merge evidence; it is not a claim that the merge has already happened.

@roboclaw-bot
roboclaw-bot merged commit 523221e into main Sep 4, 2026
229 of 233 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the fix/android-composer-controls branch September 4, 2026 14:32
vincentkoc added a commit that referenced this pull request Sep 4, 2026
…9-prep

* commit '407a8f453c0f0306af1ddc0aafa8697c1d49a9e7': (312 commits)
  perf(ui): coalesce automation event refreshes (#138065)
  fix: reject incomplete Skill Workshop directory reads (#138082)
  test(ui): decouple rendering checks from generated wording (#138283)
  perf: avoid temporary entries in bounded JSON traversal (#138017)
  fix(irc): render complete messages before splitting (#138328)
  perf: prepare worker trajectory payloads only for recorded events (#138086)
  fix(mcp): paginated listings no longer time out after a forward clock step (#137206)
  fix(codex): page native transcripts and bound UI previews (#136282)
  feat(gateway): apply more settings without restarting (#138112)
  fix(docs): preserve mirrored ClawHub maturity links (#138241)
  fix(test): own UI animation and legacy database setup (#138296)
  fix(tts): preserve literal directives in Markdown code (#138319)
  fix: load chat widgets behind authenticated gateways (#138074)
  chore(ui): cover native approval finalization (#137259)
  fix(cron): cancel conditions before main-session handoff (#138313)
  fix(backup): preserve text after embedded NUL characters (#138327)
  fix(android): align composer control sheets (#137442)
  fix(ci): wait for replacement PR runs instead of stale failures (#138307)
  fix(sessions): keep Gateway responsive with long transcripts (#138094)
  fix(computer): map window inputs to delivered image coordinates (#138271)
  ...

# Conflicts:
#	scripts/release-check.ts
#	test/release-check.test.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 5, 2026
Worked on by:
- @IWhatsskill

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: IWhatsskill <[email protected]>
@openclaw openclaw deleted a comment from roboclaw-bot Sep 6, 2026
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 merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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.

[Bug]: Android composer controls overlap and use ambiguous defaults

2 participants