Skip to content

fix(android): expose the selected connection security option - #142131

Merged
steipete merged 1 commit into
mainfrom
codex/android-onboarding-selection-semantics
Sep 8, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/android-onboarding-selection-semantics

Conversation

@steipete

@steipete steipete commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where Android users choosing connection security during manual setup could see the active choice by color, but accessibility services had no selected state for either choice.

Related: #142046, where the installed-app audit exposed this gap.

Why This Change Was Made

The existing pills now use Material3's selectable Surface and the same Button role as the app's standard selectable pills. Material continues to own input handling, disabled behavior, ripple, and minimum touch sizing. No extra state or custom accessibility implementation is introduced.

Production: +5/−1 (net +4), supplying the missing state and role. Tests: +99/−14 (net +85), including a shared onboarding fixture and two layout cases. The fixture uses ML Kit's existing idempotent initialization API so successive tests do not initialize its process singleton twice; scanning behavior is unchanged.

User Impact

Accessibility services can distinguish the selected transport choice. Appearance, click behavior, forced TLS for public hosts, and the user's remembered localhost choice remain unchanged. No strings, dependencies, configuration, protocol, or storage changes. Existing setup documentation remains accurate.

Evidence

  • Both layout regressions failed on the original production code for the missing selected state. Final onboarding suite: 9 tests, zero failures/errors/skips, covering horizontal/stacked geometry, mutually exclusive selection, button role, 48dp touch bounds, disabled cleartext, and restoration of either localhost preference.
  • Changed checks, app ktlint, Play debug APK build, ThirdParty compilation, and both Android lint variants passed. Independent Codex review found no actionable findings.
  • Installed the signed candidate APK from 6cc7e6b80a9260391f90b74d0894825d3a26b8d9 on Android API 36 and verified its installed hash. Ordinary onboarding, field edits, and physical taps covered 17 states at font scales 1.0 and 2.0. Disabled taps did not overwrite the prior localhost choice.
  • Actual Android accessibility XML changed from neither choice being checkable to mutually exclusive checkable/checked states. Compose emits the Button role on a child node, while the clickable parent carries state and enabled flags. This matches direct inspection of the exact Compose 1.12.0 platform mapping. It is not a claim that XML selected becomes true or that spoken TalkBack output was tested.
  • The before APK is the actual 5f32d9ccb9998a4775bb820b1db37bd987025206 build. Its Android source, packaged shared resources, and provider icons match this patch's parent; all 199 packaged assets match the candidate. It is not relabeled as a newer build.
  • These are inspected synthetic-only screenshots. Their appearance is intentionally unchanged; the XML comparison proves the accessibility improvement. No credentials, connection attempt, Gateway fixture, or provider execution was used. Font scale was restored and the owned emulator exited normally, with PID, device serial, and listeners verified absent.

Exact-head CI: run #34219513326, attempt 2 completed successfully on 6cc7e6b80a9260391f90b74d0894825d3a26b8d9, including the required CI gate. The initial Play job exceeded its 20-minute execution budget before tests finished; one normal job retry and its dependent gate passed without source or timeout changes. ThirdParty, Wear and ktlint also passed. The latest exact-head ClawSweeper review has no findings or before-merge requests.

Before — normal text, forced TLS

Before — large text, forced TLS

After — normal text, forced TLS

After — large text, forced TLS

Use the existing selectable Surface for manual connection security choices
and expose their button role to accessibility services. Preserve styling,
disabled forced-TLS behavior and the remembered local transport choice.
@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: android App: android size: S maintainer Maintainer-authored PR labels Sep 8, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Sep 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 8, 2026, 7:19 AM ET / 11:19 UTC.

ClawSweeper review

What this changes

The Android manual-setup security choices expose their selected state to accessibility services, with regression coverage for both layouts and disabled choices.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused accessibility fix: current main still lacks the selected state. No actionable correctness or security findings were identified.

Priority: P2
Reviewed head: 6cc7e6b80a9260391f90b74d0894825d3a26b8d9

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, idiomatic repair with meaningful regression coverage and reported installed-app checks; direct media inspection confirms preserved appearance.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied MEMBER classification exempts this PR from the external-contributor gate. Inspected screenshots support unchanged layouts; the body reports exact-head Android API 36 taps and improved accessibility XML, with no claim of spoken TalkBack verification.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied MEMBER classification exempts this PR from the external-contributor gate. Inspected screenshots support unchanged layouts; the body reports exact-head Android API 36 taps and improved accessibility XML, with no claim of spoken TalkBack verification.
Evidence reviewed 9 items Verified introduced change: The merge-base-to-head production diff only adds selected state and Button semantics to the existing Material Surface; callbacks, styling, and enabled state remain intact.
Still necessary on current main: Fetched main still uses the clickable Surface without supplying selected state; selection only affects colors and border.
Latest release comparison: The same missing selected-state argument is present in v2026.9.2, inspected through GitHub contents after the local historical blob could not be retrieved.
Findings None None.
Security None None.

How this fits together

Android onboarding turns the entered Gateway address and transport preference into connection settings. These controls display the effective security choice, including mandatory TLS for public hosts, to users and accessibility services.

flowchart TD
  A[Gateway address] --> C[Existing transport policy]
  B[User transport preference] --> C
  C --> D[Effective security choice]
  D --> E[Selectable onboarding controls]
  E --> F[Accessibility state]
  D --> G[Gateway connection settings]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +85, Other +4. Total +89 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 99 14 +85
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 5 1 +4
Total 2 104 15 +89

Review metrics

None.

Technical review

Best possible solution:

Expose the existing effective transport state through Material selection semantics while retaining current TLS enforcement, input handling, and local preferences.

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

Yes, from source: current main renders the active security choice through color without passing selected semantics to Surface. No current-main runtime reproduction was executed during this review.

Is this the best way to solve the issue?

Yes. Supplying the existing state to Material's selectable Surface fixes the owning control without introducing another state source or changing connection policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e05374f88389.

Labels

Label changes:

  • add P2: Repairs a concrete accessibility gap in Android setup with a limited, presentation-only change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER classification exempts this PR from the external-contributor gate. Inspected screenshots support unchanged layouts; the body reports exact-head Android API 36 taps and improved accessibility XML, with no claim of spoken TalkBack verification.

Label justifications:

  • P2: Repairs a concrete accessibility gap in Android setup with a limited, presentation-only change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER classification exempts this PR from the external-contributor gate. Inspected screenshots support unchanged layouts; the body reports exact-head Android API 36 taps and improved accessibility XML, with no claim of spoken TalkBack verification.

Evidence

What I checked:

Likely related people:

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

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 self-assigned this Sep 8, 2026
@steipete
steipete merged commit d5da77b into main Sep 8, 2026
113 of 115 checks passed
@steipete
steipete deleted the codex/android-onboarding-selection-semantics branch September 8, 2026 12:16
@steipete

steipete commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 9, 2026
Use the existing selectable Surface for manual connection security choices
and expose their button role to accessibility services. Preserve styling,
disabled forced-TLS behavior and the remembered local transport choice.
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. 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