Repository navigation
fix(android): align composer control sheets - #137442
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
This comment has been minimized.
This comment has been minimized.
|
Codex review: blocked before merge. Reviewed September 4, 2026, 9:19 AM ET / 13:19 UTC. ClawSweeper reviewWhat this changesThe 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 Priority: P2 Review scores
Verification
How this fits togetherAndroid 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]
Decision needed
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
Agent review detailsSecurityNone. PR surfaceTests +456, Other +450. Total +906 across 8 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
d76ac39 to
f443de4
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
7a93d75 to
846df0d
Compare
846df0d to
dec8f52
Compare
dec8f52 to
9975819
Compare
9975819 to
c17072e
Compare
Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
c17072e to
f376eab
Compare
Pre-merge verification and maintainer dispositionCandidate: f376eab. Maintainer direction and remaining riskAssigned 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 The active branch rules require Fresh Codex reviewA fresh independent, read-only review covered the entire PR through P3, not only the last repair, against main
The lead personally inspected the Codex model contract at Validation and evidence
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 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. |
|
Merged via squash.
|
…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
Worked on by: - @IWhatsskill Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: IWhatsskill <[email protected]>
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
Effort selector
Model selector
Permissions
Task progress markup
Unknown effective effort
Both captures use the same production Compose fixture with effective value
future-effortand advertised choicesoff, 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.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