Skip to content

fix(android): isolate reader scroll test locale - #192273

Merged
steipete merged 1 commit into
mainfrom
fix/android-caption-fixture-417031
Nov 3, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/android-caption-fixture-417031

Conversation

@steipete

@steipete steipete commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes five Android reader-scroll checks that fail after another test changes the app language.

User Impact

No production behavior changes. Both Android flavors keep their existing reading-position regression coverage without depending on test order.

Why This Change Was Made

The reader fixture uses a bare Android Application, so it never installed the native string owner. A preceding localized sidebar test could leave that process-wide owner attached to a French application context. The reader then rendered a translated live caption while its unchanged checks looked for OpenClaw · Live.

Install the fixture's current application before each test, which refreshes the locale owner and its cached localized context. All original streaming, gesture, visibility, and glyph-position assertions remain unchanged. The patch adds seven test setup lines and no production code.

Evidence

  • Scheduled main run 41703182134: the same five ChatReaderScrollOwnershipLayoutTest caption/short-viewport cases fail in Play and third-party.
  • Reproduced the order dependency locally: existing SidebarCollapsibleHeaderTest.headerAnnouncesLocalizedStateWithoutStealingAttentionClick passes, then existing ChatReaderScrollOwnershipLayoutTest.captionOnlyFirstRowPreservesOlderReadingOnSmallGrowth fails because the English caption node is absent. The reader class passes in isolation.
  • With this setup fix, the localized sidebar case followed by the entire 26-case reader class passes in both flavors: 54/54, no failures, errors, or skips. :app:ktlintCheck also passes. The combined Gradle run took 1m33s; reader test time was 9.854s (third-party) and 5.619s (Play).
  • Independent local review: no actionable P0–P2 findings.
  • Focused Linux proof also passed on Blacksmith Testbox: the isolated reader class passes on the baseline, and the fixed source passes the localized sidebar case plus the entire reader class in both flavors (Gradle 1m23s). Testbox run 41717386008; PR CI supplies the broad Android checks.

Focused command, from apps/android:

./gradlew --no-daemon --max-workers=2 :app:ktlintCheck \
  :app:testThirdPartyDebugUnitTest \
  --tests ai.openclaw.app.ui.SidebarCollapsibleHeaderTest.headerAnnouncesLocalizedStateWithoutStealingAttentionClick \
  --tests ai.openclaw.app.ui.chat.ChatReaderScrollOwnershipLayoutTest \
  :app:testPlayDebugUnitTest \
  --tests ai.openclaw.app.ui.SidebarCollapsibleHeaderTest.headerAnnouncesLocalizedStateWithoutStealingAttentionClick \
  --tests ai.openclaw.app.ui.chat.ChatReaderScrollOwnershipLayoutTest

@clawsweeper

clawsweeper Bot commented Nov 3, 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 November 3, 2026 21:01
@steipete

steipete commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

Please review the test-only native locale initialization. The existing localized sidebar case followed by the reader class reproduces the stale-locale failure; both Android flavors pass the same selection after the change. All original reader assertions remain unchanged.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T21:04:10.359937Z ce43186 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 3, 2026
@steipete
steipete enabled auto-merge (squash) November 3, 2026 21:06
@clawsweeper

clawsweeper Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Initialize the native string owner before each Android reader-scroll test.

Example: Run the French sidebar accessibility test before captionOnlyFirstRowPreservesOlderReadingOnSmallGrowth.

  • Before: The reader can retain the French application context and fail to find OpenClaw · Live.
  • After: The reader installs its own application context before rendering and retains its existing caption and reading-position assertions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A minimal, source-supported fixture repair with reported red/green harness validation; hosted Android validation is still running.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only repair changes fixture initialization; reported ordered Robolectric runs cover both Android flavors, and no shipped behavior changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Android reading-position regression checks can fail because an earlier test leaves a different locale context installed.
Reason: Restores useful regression coverage with a focused fixture repair and no production behavior change.

Merge readiness

✅ Ready for maintainer review

This PR repairs a concrete test-order dependency with minimal fixture initialization and unchanged assertions; no actionable correctness or security defects were found.

Priority: P3
Reviewed head: ce4318662a6e68c5c89f29648fdb24763a2c98a2

Before merge

None.

Findings

None.

Agent review details

How this fits together

Robolectric fixtures render the production Android chat components, whose native strings resolve through a process-wide locale owner.

flowchart LR
  A[French sidebar fixture] --> B[Native string owner]
  C[Reader test setup] --> B
  B --> D[Localized chat caption]
  D --> E[Reader layout assertions]
Loading

Technical review

Best possible solution:

Use the existing native string installation operation in reader fixture setup while preserving all behavioral assertions.

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

The French sidebar fixture, retained locale owner, bare reader Application, and English caption lookup establish the reported failure path; the author reports a matching failing ordered run.

Is this the best way to solve the issue?

The patch supplies initialization normally performed by NodeApp, reuses the authoritative locale owner, and introduces no duplicate state or weakened checks.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +7. Total +7 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 7 0 +7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 7 0 +7

Labels

Label changes:

  • add P3: Repairs test isolation without changing shipped Android behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: Repairs test isolation without changing shipped Android behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 3, 2026, 4:06 PM ET / 21:06 UTC.

@steipete
steipete merged commit be881a7 into main Nov 3, 2026
141 of 145 checks passed
@steipete
steipete deleted the fix/android-caption-fixture-417031 branch November 3, 2026 21:17
@steipete

steipete commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
tideclaw-bot pushed a commit that referenced this pull request Nov 5, 2026
Backport the existing upstream fixture fix to release/2026.11.5. Preserve all caption and scrolling assertions.

Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot added a commit that referenced this pull request Nov 5, 2026
…11.5 (#191633)

* fix(release): warn before rollback drill expiry (#180164)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit b6c36ed)

* fix(release): require macOS release source branch (#180169)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 0f359b3)

* fix(release): verify published plugin inventory (#180203)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit d8265d0)

* fix(release): revalidate exact npm versions (#180201)

* fix(release): revalidate exact npm versions

Co-authored-by: RomneyDa <[email protected]>

* test(release): handle exact-version fixture request

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 3580c9f)

* fix(release): explain staged npm recovery (#180191)

* fix(release): explain staged npm recovery

Co-authored-by: RomneyDa <[email protected]>

* fix(release): recover exact staged npm package

Co-authored-by: RomneyDa <[email protected]>

* fix(release): avoid portable here-string

Co-authored-by: RomneyDa <[email protected]>

* fix(release): preserve npm publish diagnostics

Co-authored-by: RomneyDa <[email protected]>

* test(release): simplify staged publish coverage

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit f708b8b)

* fix(release): pin Linux builder to request SHA (#180211)

* fix(release): pin Linux builder to request SHA

Co-authored-by: RomneyDa <[email protected]>

* test(release): remove duplicate request harness

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit ca897ec)

* fix(release): warn on undocumented SDK removals (#180180)

* fix(release): require SDK removal notes

Co-authored-by: RomneyDa <[email protected]>

* fix(release): warn on SDK removal note gaps

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 0453b8c)

* fix(release): retry compatibility tarball downloads (#189712)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit dbc44d3)

* docs(release): tighten deterministic failure triage (#189720)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit a07be30)

* fix(release): enable OIDC recovery preflight (#187991)

* fix(release): enable OIDC recovery preflight

Co-authored-by: RomneyDa <[email protected]>

* fix(release): enable OIDC recovery preflight

OpenClaw-Publication: 220142ee-cd27-4dc4-9521-b3af12106dce

* fix(release): scope OIDC recovery preflight

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 8100edf)

* fix(ci): mark pending security reviews (#180183)

* fix(ci): mark pending security reviews

Co-authored-by: RomneyDa <[email protected]>

* fix(ci): fail terminal security reviews

Co-authored-by: RomneyDa <[email protected]>

* fix(ci): settle standalone guard timeouts

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 84133d3)

* feat(release): add FRV job log reader (#189718)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 48b46f1)

* feat(release): add publication watcher (#187994)

* feat(release): add publication watcher

Co-authored-by: RomneyDa <[email protected]>

* fix(release): satisfy watcher lint

Co-authored-by: RomneyDa <[email protected]>

* fix(release): enforce watcher contracts

Co-authored-by: RomneyDa <[email protected]>

* fix(release): preserve zero-backoff retries

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 3c67c5c)

* fix(release): unify plugin OIDC recovery preflight (#189748)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 749df76)

* feat(release): add bound gate approval helper (#189715)

* feat(release): add bound gate approval helper

Co-authored-by: RomneyDa <[email protected]>

* fix(release): satisfy approval helper guards

Co-authored-by: RomneyDa <[email protected]>

* fix(release): make gate approval recoverable

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit fc719e9)

* fix(release): adapt postpublish verifier imports

Release adaptation: #180203 removes the release branch inventory builder import. Its source parent also used a later bundler-region helper, but this release branch keeps its existing parser and does not need that broad dependency-update companion.

Co-authored-by: RomneyDa <[email protected]>

* fix(release): retain publication retry diagnostics (#189130)

Include the runtime error-classification dependency closure introduced by shutdown-aware retries in the verified publication source inventory.

Co-authored-by: steipete <[email protected]>

(cherry picked from commit 6370e01)

Co-authored-by: RomneyDa <[email protected]>

* fix(release): keep diagnostic FRV blocks pending

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit f861722)

* fix(release): verify notes against pushed branch

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 571b8f8)

* fix(release): explain shallow release-note history

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit f3bbc7e)

* test(git): isolate nested repository fixtures

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 7d27f73)

* ci: add base scheduled upgrade survivor

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 34bb969)

* ci: support empty admission args on Bash 3.2

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 73df503)

* test(qa): retain mock provider request artifacts

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit ec6e32f)

* fix(qa): guard mock artifact fetch

Route mock-provider request artifact collection through the plugin SSRF guard, with bounded loopback access and deterministic resource release.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit bfa3e10)

* ci(ios): explain screenshot Xcode mismatch

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 24f5971)

* docs(release): identify FRV parent publish input

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 122d8e4)

* fix(cli): report observed gateway start failure

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit c938b9b)

* test(release): pin Kitchen Sink fixture versions

Record the Kitchen Sink npm fixture version on each release branch and use it across the plugin and RPC Docker lanes instead of resolving latest. Preserve explicit package overrides and fail closed when a frozen target lacks its version record.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 414e610)

* test(release): preserve retrospective backport coverage

Co-authored-by: RomneyDa <[email protected]>

* test(ci): align retrospective guard backport coverage

Co-authored-by: RomneyDa <[email protected]>

* test(release): adapt retrospective fixtures to stable

Co-authored-by: RomneyDa <[email protected]>

* test(release): adapt retrospective fixtures to beta

Co-authored-by: RomneyDa <[email protected]>

* fix(release): repair retrospective backport gates

Preserve release-base contracts and original retry authority checks while repairing changelog, terminal status and Kitchen Sink asset handling.

Co-authored-by: RomneyDa <[email protected]>

* fix(release): revalidate recovery before credential exchange

Preserve source admission semantics and recheck live source and tooling authority after token acquisition, immediately before each npm exchange.

Co-authored-by: RomneyDa <[email protected]>

* test(release): align iOS screenshot fixtures with retained owners

Keep exact screenshot selection and failure evidence checks while removing the obsolete fixture-test guard and retired per-capture resource snapshot expectation. Guard against blocking resource sampling and reduce the test allocation by 15 lines. Both original failures reproduce; all 15 cases pass under isolated Ruby and pinned Bun.

Co-authored-by: RomneyDa <[email protected]>

* test(android): initialize native strings in reader fixtures (#192273)

Backport the existing upstream fixture fix to release/2026.11.5. Preserve all caption and scrolling assertions.

Co-authored-by: RomneyDa <[email protected]>

* test(xai): prepare compiled workers before payload tests

Move existing worker preparation to collection through the documented SDK test seam. Preserve the real payload assertions and their deadlines.

Co-authored-by: RomneyDa <[email protected]>

* fix(memory): retain dirty status for deferred session deltas

Keep existing pending file and identity queues in the targeted-sync dirty calculation. Make the existing interruption regression exercise the delta route after startup catchup; preserve publication and resume assertions.

Co-authored-by: RomneyDa <[email protected]>

* test(matrix): expose bounded restart timeout diagnostics

Preserve scenario assertions and timeouts while recording synthetic inbound identities and existing lifecycle debug boundaries for the repeated hosted restart failure.

Co-authored-by: RomneyDa <[email protected]>

* fix(qa): preserve Matrix timeout diagnostics through factories

Exercise the registry-backed transport with a valid Matrix sender and retain both cleanup phases. Hosted CI exposed the invalid fixture and the dropped timeout hook; this correction does not claim to fix Matrix restart delivery.

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: Dallin Romney <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RoboClaw <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant