Skip to content

fix(ui): show concrete model names in locked chats - #137041

Merged
steipete merged 7 commits into
mainfrom
steipete/competent-cray-c8bc2f
Sep 3, 2026
Merged

steipete merged 7 commits into
mainfrom
steipete/competent-cray-c8bc2f

Conversation

@steipete

@steipete steipete commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Closes #137039 — concrete locked model chats show an unsupported Codex ownership label.
Closes #137111 — Android history-load completion cancels new-turn auto-scroll, found during CI follow-through.
Closes #137404 — Android handshake can send before its WebSocket is published.
Related: #136754 — runtime/native model ownership repair.

Additional instructions

This branch is in the canonical repository and remains editable by maintainers.

What Problem This Solves

Fixes an issue where users viewing concrete model-locked chats would see Codex-controlled model instead of the selected model when their session reported Codex runtime metadata. That label could remain even when authored Responses settings caused OpenClaw to execute the turn without any native binding.

Broader CI validation exposed a cron test-readiness defect and an Android reader cancellation defect. Their bounded repairs are included and described separately below; the model-runtime and sidebar native-terminal work remain untouched.

Maintainer scope decision confirmed: the maintainer explicitly selected Keep together in the task's approval prompt after reviewing the combined scope. Retain the Control UI label fix, Android scroll repair, cron fixture repair, and update-dispatch test expectations as one PR. This resolves ClawSweeper’s combined-scope decision and rank-up suggestion. The four logical commits preserve traceability; the broader rollback/bisection scope is accepted. The earlier unconfirmed-approval wording was corrected before this explicit decision was obtained. Exact-head required CI must still be green before native landing.

Why This Change Was Made

Model identity, execution runtime, and model editability are separate facts. The composer now uses the existing canonical model-label path for locked and unlocked chats, rather than inferring ownership from the runtime ID. The unused runtime-label prop and English ownership string are removed.

Known selections show the catalog name or qualified model reference; an unknown locked selection shows neutral Session model rather than an unrelated default. A transient or empty picker catalog does not replace the locked selection's label. The existing locked-model menu, mutation guards, reasoning controls, and speed controls are unchanged.

No model-runtime workaround, schema/config option, authentication policy change, dependency change, or sidebar native-terminal creation change is included. Raw native catalog views retain their separate no-composer path; adopted sessions use the Gateway's canonical model/provider row.

User Impact

Operators can see which model their locked chat uses. Opening the menu still shows Locked and exposes neither model choices nor reset; the fix does not allow model switching or claim native ownership. Control UI documentation now explains that distinction.

Android also preserves an already-moving new-turn scroll when a populated history finishes loading. Manual reader navigation and replacement-animation cancellation remain authoritative. Cron runtime behavior is unchanged; only its process-cleanup test gains deterministic readiness and failure-safe cleanup.

Android Gateway startup also publishes its socket before a handshake callback can send. A queued handshake is rejected if the connection closes while awaiting the transport lock. Settings test synchronization now waits for rendered completion without changing product behavior or frozen-clock geometry assertions.

Evidence

Latest CI-driven retry

Current head: ec6e49fb9d102c0d53b8fcf9863c0af22cac89c9. Two separate commits address the Android failures from synchronized head da7b0a0f: Settings UI completion and WebSocket publication. Exact-head CI 33778933094 completed successfully, including both Android variants and the required openclaw/ci-gate. Live GitHub state is MERGEABLE / CLEAN. The latest ClawSweeper review found no code defects; its outstanding CI and conflict observations are superseded by those terminal checks and live mergeability. No rebase is needed or being performed merely for main drift. Native review artifacts validate for this exact head; preparation and merge remain the final steps.

Transport owner repair: pinned OkHttp 5.5.0 enqueues its asynchronous connection before returning the socket handle. A controlled real-network test holds only that return while callbacks run. The old owner fails with [Connecting…, Gateway error: gateway send failed] because its handshake sees an unpublished socket. The owner now publishes under the existing write mutex. Its existing enqueue condition also rechecks closure after the wait, preventing a retired handshake from sending. No new transport state, factory injection API, retry, timeout, payload, endpoint or auth-policy change was added. The Talk CI logs did not capture their connection stage, so those historical instances are not claimed as direct observations of this ordering; the owner race is independently reproduced.

The permanent regression uses the real OkHttp connection, protocol exchange, identity preparation and server, with a test-only Robolectric scheduling shadow at the factory boundary. It proves first-socket success and cancellation during pending publication. The final test fails on byte-identical pre-fix production with the expected send error, then passes with the repair. Independent review identified a missing wait for the test's own factory barrier; that was corrected and the final red/green sequence repeated.

Settings test repair: the real controller already publishes the reply and sending=false atomically. Its raw state can become visible before ViewModel/Compose collectors schedule work, so waitForIdle alone could return against the old UI. A controlled notification hold reproduced the exact CI working-row assertion and geometry. The helper now waits for the real enabled composer when automatic clock advancement is active. Frozen-clock callers still observe publication before explicitly advancing their frame. No producer state, geometry assertion, deadline or scroll behavior changed.

Validation: 163 focused tests passed across publication/cancellation, Gateway lifecycle, headers, Talk and Settings. Complete Android Play passed 2,724 tests / 211 suites; third-party passed 2,855 tests / 216 suites, all with zero failures/errors/skips. The APK build and changed checks passed. After the review-found test synchronization correction, both final publication/cancellation regressions and Kotlin lint passed again. Fresh whole-candidate independent review through P2 is scoped-clean, with no actionable P0–P2 findings.

From apps/android with the installed SDK configured:

./gradlew --offline --no-daemon :app:testPlayDebugUnitTest :app:testThirdPartyDebugUnitTest :app:assemblePlayDebug
./gradlew --offline --no-daemon :app:testPlayDebugUnitTest --tests ai.openclaw.app.gateway.GatewaySocketPublicationTest :app:ktlintCheck
node scripts/check-changed.mjs -- apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewaySession.kt apps/android/app/src/test/java/ai/openclaw/app/gateway/GatewaySocketPublicationTest.kt apps/android/app/src/test/java/ai/openclaw/app/ui/SettingsDetailInsetsTest.kt

The last command runs from the repository root. Transport proof is a real loopback network boundary with controlled callback scheduling, not a live-provider or installed-app UI run. Existing Control UI and native scroll captures continue to document their unchanged repairs.

Previous synchronized head

Previous head: da7b0a0f1ea874261261ea70d74053f6c9c65fc6, synchronized with main 907f6956ee5eae23d8a44fe224fd8bcd5faefefd through a signed merge that preserves the four published repair commits. Only adjacent test imports conflicted; both sets of helpers and tests remain. The complete tree matches the rebased candidate verified by 427 UI tests, 57 Android ownership tests, formatting, diff checks, and fresh scoped P0 autoreview. Main already contains the two update-dispatch expectations from #137196/#137199. Remaining delta: nine files; production +10/-12 (net -2), tests +261/-94 (net +167), docs +1/-1.

CI 33767216916 failed the Talk connection wait and Settings completion assertion, prompting the retry documented above. This and earlier SHA-specific evidence remain historical; final native preparation and merge require green current-head CI and fresh guard verification.

Before and after

The attached images are from a real running Control UI in isolated Chromium, with synthetic Gateway responses. The fixture supplies openai/gpt-5.6-sol, modelSelectionLocked: true, and Codex runtime metadata. Before: Codex-controlled model. After: GPT-5.6 Sol, still Locked. Both complete screenshots were inspected; they contain only the synthetic session and isolated app. The candidate recorded zero model-patch requests and zero browser errors.

This browser proof uses a mocked Gateway, not another live inference run. The underlying real two-turn runtime scenario was already verified in #136754; no model-runtime execution code changes here.

UI regression and static checks

The focused locked-model regression run produced 23 expected failures before the production fix and 27 passes afterward. The existing no-model-patch regression remained passing. The full selected owner/caller/model-resolution/session-reconciliation run passed 453 tests across four files:

node scripts/run-vitest.mjs ui/src/pages/chat/chat-view.test.ts ui/src/pages/chat/chat-pane-session-controls.test.ts ui/src/lib/chat/model-select-state.test.ts ui/src/lib/sessions/reconcile.test.ts
pnpm ui:build

The current UI build verified 808 sidecars and reported sizes below its printed budgets. Coverage includes concrete catalog labels, missing/empty/loading catalogs, unknown selections with unrelated defaults, and Codex/OpenClaw/other/absent runtime metadata. A caller-boundary case supplies the actual selected Gateway row.

Direct sibling Codex source inspection covered codex-rs/app-server-protocol/src/protocol/v2/thread.rs:181–184,415–418, turn.rs:213–215, and the start/resume response implementations; native threads report a model/provider tuple, while a runtime request alone is not binding evidence.

Historical integration and CI follow-through

The candidate at this stage was 0fee3dcee793f5a1f0367191d822323bf08fb22b, based on 51becd0cfe8c675ba85c6e29579152cfe6c8db2a. The three original task commits remain patch-identical through integration. Main’s model-picker cleanup remains intact, including auth warnings, provider settings, accessible selection scope, and removed visible scope chrome. The merged node-host test split cleared main’s max-lines lint failure; no node-host patch was added here.

CI run 33731642238 exposed four stale assertions across the Gateway update tool and /update tests. Its merge already contained main’s in-process system-actor contract. Both existing exact-call assertions omitted operatorRoleActor: { kind: "system" }, while the shared helper and its own tests already used it. The two-line test-only repair adds that expected field, retaining exact routing/scope checks and existing mocks. Local controls reproduced three tool failures and one command failure; the two repaired files plus the shared in-process helper suite now pass 50 tests. No production dispatch or permission behavior changed.

node scripts/run-vitest.mjs src/agents/tools/gateway-tool.test.ts src/agents/tools/in-process-gateway.test.ts src/auto-reply/reply/commands-update.test.ts
node scripts/check-changed.mjs -- src/agents/tools/gateway-tool.test.ts src/auto-reply/reply/commands-update.test.ts

The earlier CI run 33726291846 had one Android failure: a 5-second Gateway connection wait in TalkModeManagerTest.lateFinalUserTranscriptKeepsTheAnsweredUtteranceStatus, before voice assertions. It already tested a merge containing #136934; rebase is not a demonstrated Talk fix. Investigation found no confirmed cause and made no repair or timeout/assertion change. All 244 targeted JUnit executions passed, followed by a complete 2,708-test/208-suite Android Play run with zero failures/errors/skips on 32327fba3ba43925a8434087834eea41bd5cb411. After the latest main integration also changed Android node-event code, the complete suite was rerun and passed 2,714 tests across 209 suites, with zero failures/errors/skips, in 3m43s. The hosted Android job in run33731642238 also passed. New exact-head hosted CI remains required.

# From apps/android
./gradlew --offline --no-daemon :app:testPlayDebugUnitTest

The unchanged UI source passed 546 tests across seven owner/model-selection/reconciliation/new-session/update-overlay files, 22 picker E2E tests, and pnpm ui:build on fb6690896a5787bbbdefedf606545d3cd4b0351b. The E2E flow uses a synthetic mocked Gateway. The refreshed source-Control-UI capture on 32327fba3ba43925a8434087834eea41bd5cb411 shows GPT-5.6 Sol and Locked, with zero model-patch requests and page errors; both full frames were inspected. Picker/caller bytes match the current candidate. The original attached pair predates main’s layout cleanup; the inspected refreshed capture will accompany final proof.

node scripts/run-vitest.mjs ui/src/pages/chat/chat-view.test.ts ui/src/pages/chat/chat-pane-session-controls.test.ts ui/src/lib/chat/model-select-state.test.ts ui/src/lib/sessions/reconcile.test.ts ui/src/pages/new-session/model-control.test.ts ui/src/app/overlays.test.ts ui/src/app/overlays-update-race.test.ts
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-flow.model-picker-refresh.e2e.test.ts ui/src/e2e/chat-composer-catalog.e2e.test.ts ui/src/e2e/chat-composer-redesign.e2e.test.ts

CI recovery and bounded repairs

Original PR CI passed every executed job but left one Node shard without a runner or executed steps. The repository's exact-head capacity-recovery mode then ran broader CI on the same commit and reported the Android and cron failures. Both implicated owners were unchanged on current main; no matching in-flight repair was found.

Cron fixture: the 0.5-second wall-clock timeout could expire before the shell spawned its descendant and wrote child.pid. The timeout assertions passed, but ENOENT prevented descendant-termination proof. A startup-gated control reproduced that failure. The test now freezes deadline timers while preserving real subprocess I/O, proves a live child, and only then advances the unchanged deadline and termination grace. Canonical PID/temp helpers replace the local helper. finally aborts, kills owned processes, drains timers, restores state, joins the command, and removes the temporary directory. The whole file passed 10 tests, the affected test passed 10 sequential runs, and the inherited-pipe descendant sibling regression passed. Deliberate failed-setup injection also proved cleanup and subsequent real-time tests remained healthy; the injection was removed.

node scripts/run-vitest.mjs src/cron/command-runner.test.ts
node scripts/run-vitest.mjs src/process/exec.test.ts -t 'force-kills inherited-pipe descendants after the direct child exits'

Android reader: the owner recorded a new content version before awaiting its scroll animation. Changing historyLoading canceled the effect; the replacement saw the recorded version and did not finish scrolling. The controlled regression first proves actual animation movement, then finishes loading: the old owner stopped at item 32/offset 141 instead of item 0/offset 0. The owner now includes loading in the effect key only for empty timelines, where that input affects transition behavior. This is one executable-expression replacement plus a two-line invariant comment—no retry, added state, or forced-scroll workaround. The original full-message fixture is unchanged. The identical regression passes, along with all 57 full-message/reader state/reader ownership tests and Kotlin lint. The exact scheduling of the earlier CI occurrence was not recorded; the controlled test independently proves the owner defect.

Run from apps/android:

./gradlew --offline --no-daemon :app:testPlayDebugUnitTest --tests ai.openclaw.app.ui.chat.ChatFullMessageOwnershipLayoutTest --tests ai.openclaw.app.ui.chat.ChatReaderScrollControllerTest --tests ai.openclaw.app.ui.chat.ChatReaderScrollOwnershipLayoutTest :app:ktlintCheck :benchmark:ktlintCheck :wear:ktlintCheck :wear-shared:ktlintCheck

The Android APK build also passed: ./gradlew --offline --no-daemon :app:assemblePlayDebug completed successfully in 49 seconds.

Supplementary native Android proof is complete: real installed controller instrumentation on an owned blank emulator, not a full Gateway or production ChatScreen flow. The baseline stops at item 31/offset 165 with the newest user row absent; the candidate reaches item 0/offset 0 with new user visible. Both variants used the same instrumentation APK and proved actual animation movement before loading changed. The full PNG frames were inspected, and all owned emulator/recording/build processes stopped. The cache/storage blocker was resolved without PR dependency changes. The captured controller SHA-256 was 85375218e2e7247b62b7daf7cd165702fe57e3998d8661e3f1d6415b94f8c00d. Later main jump-button visibility changes were retained and covered by the synchronized ownership tests; the task's loading/scroll repair remains unchanged.

The original nine-file changed check passed on the published fb6690896a5787bbbdefedf606545d3cd4b0351b candidate formatting, UI/core-test types, Android lint, i18n, native schema/protocol guards, full core lint, and other selected policy guards:

node scripts/check-changed.mjs -- docs/web/control-ui.md ui/src/i18n/locales/en.ts ui/src/pages/chat/chat-pane-session-controls.test.ts ui/src/pages/chat/chat-pane-session-controls.ts ui/src/pages/chat/chat-view.test.ts ui/src/pages/chat/components/chat-model-controls.ts src/cron/command-runner.test.ts apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatReaderScrollController.kt apps/android/app/src/test/java/ai/openclaw/app/ui/chat/ChatReaderScrollOwnershipLayoutTest.kt

Fresh independent Codex autoreview of the complete eleven-file candidate against the current merge base returned scoped-clean at the P0-only threshold. This is not a claim that all lower-priority findings were exhaustively ruled out. New exact-head CI remains required before native landing.

Current production LOC: +15/−15, net 0. Tests: +476/−95, net +381. Docs: +1/−1. Total: twelve changed files. No generated locale, budget, inventory, or baseline files changed. Original introduction of the UI label defect is unknown: available local history reaches a boundary that already contains it.

Before: locked chat hides its concrete model behind Codex-controlled model

After: locked chat displays GPT-5.6 Sol and keeps the Locked badge

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 3, 2026
@steipete
steipete marked this pull request as ready for review September 3, 2026 05:40
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 3, 2026, 12:45 PM ET / 16:45 UTC.

ClawSweeper review

What this changes

Repairs locked-chat model labels, Android WebSocket and scroll timing races, and related regression-test synchronization, with matching Control UI documentation.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep open: the three owner-bound repairs are not present on current main and source review found no introduced correctness defect, but the branch is reported conflicted with main and its required exact-head Android and Gateway checks are not yet complete.

Priority: P2
Reviewed head: ec6e49fb9d102c0d53b8fcf9863c0af22cac89c9

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, net-neutral set of owner repairs has strong targeted coverage, pending its conflict resolution and exact-head integration checks.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): The PR provides focused after-fix UI evidence and controlled native transport/scroll regression coverage for the changed owners; exact-head hosted Android and Gateway completion remains a separate merge gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The PR provides focused after-fix UI evidence and controlled native transport/scroll regression coverage for the changed owners; exact-head hosted Android and Gateway completion remains a separate merge gate.
Evidence reviewed 9 items Introduced surface: The verified merge-base-to-head delta contains 12 files: three small production repairs, focused Android/UI/cron tests, and one documentation update.
Control UI owner repair: A locked picker now retains the resolved concrete model label when a selection exists and uses “Session model” only when no selection is known; its trigger suppresses loading/status replacement while locked.
Current-main UI comparison: Current main still derives a locked-chat label from a Codex runtime ID rather than the selected model, so this PR's central UI behavior is not already implemented.
Findings None None.
Security None None.

How this fits together

Gateway session metadata feeds the Control UI composer, while Android connection and timeline state drive handshake delivery and reader scrolling. This PR corrects presentation and lifecycle behavior at those respective owners.

flowchart LR
  A[Gateway session metadata] --> B[Locked model control]
  B --> C[Control UI composer]
  D[Android connection lifecycle] --> E[Handshake delivery]
  F[Timeline and history state] --> G[Reader scroll owner]
  G --> H[Newest message visible]
Loading

Before merge

  • Resolve merge risk (P1) - GitHub reported this branch conflicted with current main, so the reviewed implementation must be rebased or conflict-resolved and revalidated before it can be merged.
  • Resolve merge risk (P1) - The supplied exact-head Android and real-Gateway checks were not terminal, leaving platform and integration confirmation outstanding.
  • Complete next step (P2) - Resolve the reported main conflict and obtain green required Android and real-Gateway checks at the resulting exact head.
  • Resolve review confidence - ClawSweeper must reach high confidence before merge readiness is known.
Agent review details

Security

None.

PR surface

Source -4, Tests +381, Docs 0, Other +4. Total +381 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 3 7 11 -4
Tests 6 476 95 +381
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 8 4 +4
Total 12 492 111 +381

Review metrics

Metric Value Why it matters
Production vs test delta production +15/-15; tests/support +476/-95; docs +1/-1 Production is net-neutral across three targeted owner repairs; the larger test delta supplies ordering and UI regression coverage.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Resolve the main conflict while preserving the owner-boundary repairs, then obtain green required Android and real-Gateway checks at the resulting exact head.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Resolve the main conflict while preserving the owner-boundary repairs, then obtain green required Android and real-Gateway checks at the resulting exact head.

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

Yes—the focused UI and Android regression fixtures encode the reported pre-fix states and execution order, although this read-only review did not run them.

Is this the best way to solve the issue?

Yes—the changes repair the model-label, socket-publication, and scroll-effect owners rather than masking symptoms in callers or tests.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 391ab8b4c7d4.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR provides focused after-fix UI evidence and controlled native transport/scroll regression coverage for the changed owners; exact-head hosted Android and Gateway completion remains a separate merge gate.

Label justifications:

  • P2: This fixes reproducible UI and Android behavior errors with bounded user impact and no demonstrated crash, security, or data-loss effect.
  • 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. Sufficient (linked_artifact): The PR provides focused after-fix UI evidence and controlled native transport/scroll regression coverage for the changed owners; exact-head hosted Android and Gateway completion remains a separate merge gate.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR provides focused after-fix UI evidence and controlled native transport/scroll regression coverage for the changed owners; exact-head hosted Android and Gateway completion remains a separate merge gate.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rank-up moves

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

  • Rebase or resolve the main conflict and rerun the required Android and real-Gateway checks at that exact head.

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 (7 earlier review cycles)
  • reviewed 2026-09-03T05:48:09.685Z sha 43597dc769101fd970b059e1cea3a9af1c37562e :: needs maintainer review before merge. :: none
  • reviewed 2026-09-03T08:15:08.642Z sha fb6690896a5787bbbdefedf606545d3cd4b0351b :: blocked before merge. :: none
  • reviewed 2026-09-03T08:37:50.648Z sha 0fee3dc :: blocked before merge. :: none
  • reviewed 2026-09-03T08:57:01.914Z sha 0fee3dc :: blocked before merge. :: none
  • reviewed 2026-09-03T09:10:39.399Z sha 0fee3dc :: blocked before merge. :: none
  • reviewed 2026-09-03T14:19:15.842Z sha 0fee3dc :: blocked before merge. :: none
  • reviewed 2026-09-03T14:40:19.100Z sha da7b0a0 :: blocked before merge. :: none

@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The candidate now includes two bounded repairs found by exact-head CI recovery: synchronize the cron timeout test with real child readiness, and preserve Android's moving new-turn scroll when populated history finishes loading (#137111). The original locked-model label fix is unchanged. Regression, cleanup, lint, changed-check, and APK-build evidence is in the updated PR body; native visual proof remains pending separately.

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

@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Supplementary native Android proof for the CI-discovered scroll cancellation repair in #137111 is complete.

These are native controller instrumentation captures on an isolated Android emulator, not a full Gateway or production ChatScreen flow. Both variants use the real reader controller, the same synthetic fixture and byte-identical instrumentation APK. The baseline stops at item 31/offset 165 after loading finishes, leaving the newest row absent; the candidate reaches item 0/offset 0 and visibly shows new user. Native assertions verify actual animation movement before the loading-state change and the final layout/accessibility result.

The baseline controller is from the original PR commit; the candidate is byte-identical to the controller in the published Android repair. No force-scroll workaround or production test hook was used. Both attached full frames were inspected and contain only synthetic fixture content and the isolated emulator. Owned emulator/recording/build processes were stopped; existing devices and Gateway state were untouched.

The earlier low-disk/missing-cache instrumentation blocker was resolved with recovered storage headroom and normal retrieval of the repository's already-pinned test dependencies. No dependency or lockfile changed in the PR. The separate Control UI before/after images remain in the PR body.

Android native instrumentation before: history completion strands the reader before the newest turn

Android native instrumentation after: the newest user turn remains visible

@steipete
steipete force-pushed the steipete/competent-cray-c8bc2f branch from 66125e6 to fb66908 Compare September 3, 2026 08:05
@openclaw-barnacle openclaw-barnacle Bot added the app: android App: android label Sep 3, 2026
Keep the selected catalog label or qualified model reference visible in
locked Control UI chats. Use Session model only when the selection is
unknown, and preserve the existing lock and model mutation guards.

Remove runtime-based ownership labeling and document that model editability
does not establish native ownership. Cover canonical Gateway rows, missing
catalog metadata, and runtime-independent labels with regression tests.

Fixes #137039. UI follow-up to #136754; runtime behavior is unchanged.
Freeze deadline timers until the real shell publishes a live descendant,
then advance the unchanged 0.5-second timeout and termination grace. This
keeps startup latency from consuming the process-group cleanup proof.

Reuse canonical PID and temporary-directory helpers and clean up processes,
timers, and the spawn spy even when setup fails. Cron runtime is unchanged.

Proof: all 10 command-runner tests, 10 sequential timeout-probe runs,
inherited-pipe descendant coverage, and deliberate setup-failure cleanup.
CI follow-through for #137041.
Only include history loading in the reader effect key for empty timelines,
where it changes the transition. Populated-history completion must not
cancel a scroll after the owner records its new content version.

Reproduce loading completion during an observably moving animation and
require arrival at the newest turn. Preserve manual takeover and replacement
animation behavior without changing the full-message fixture.

Fixes #137111. Found during CI follow-through for #137041.
Proof: old owner stops at item 32/offset 141; repaired owner reaches 0/0.
All 57 reader/full-message tests, Kotlin lint, nine-file changed checks,
and :app:assemblePlayDebug pass. Native visual proof remains pending.
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. and removed P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Sep 3, 2026
Match the canonical in-process Gateway actor in the existing update tool
and /update exact-call assertions. Main now propagates the system actor;
these two expectations were missed while the shared helper tests changed.

Four failures reproduced on the CI merge baseline. All 50 owner and
sibling tests pass after the two-line expectation repair. Runtime behavior,
scopes, routing checks, mocks, and timeouts are unchanged.

Refs #137041.
@steipete
steipete force-pushed the steipete/competent-cray-c8bc2f branch from fb66908 to 0fee3dc Compare September 3, 2026 08:25
@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Sep 3, 2026
steipete added a commit that referenced this pull request Sep 3, 2026
Align the update tool and /update exact-call assertions with the shared
in-process Gateway actor introduced by #136952. Preserve owner checks,
trusted routing, admin scopes, abort propagation, and the update timeout.

Reuse Peter Steinberger's two-line fix from commit
0fee3dc in #137041, separated so this CI
prerequisite can land independently of its UI and Android changes.

Four failures reproduced on main 993ad30. All 50 owner and sibling
tests pass after the correction. Production delta: zero lines.
@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Scope decision and reviewed landing evidence

Combined scope is explicitly confirmed. After being offered “Keep together” or “Split the repairs,” the maintainer selected Keep together in this task's approval prompt. Retain the UI model-label fix, Android scroll fix, cron readiness fixture, and two update-dispatch test expectations in this PR. The broader rollback/bisection scope is accepted, with four logical commits retained for traceability. This resolves the scope decision and rank-up item in the latest ClawSweeper review; the earlier overstated approval wording was corrected before this explicit confirmation.

Reviewed head: 0fee3dcee793f5a1f0367191d822323bf08fb22b. Exact-head CI 33733291014 completed successfully: 130 successful jobs, 10 intentionally skipped, zero failed or unfinished jobs, including openclaw/ci-gate. Latest ClawSweeper review has no actionable code or security findings. Fresh independent whole-candidate autoreview is scoped-clean at P0; that is not an exhaustive lower-priority certificate.

The final source-Control-UI capture below shows GPT-5.6 Sol and Locked, with zero model-patch requests or page errors. It was captured at fb6690896a5787bbbdefedf606545d3cd4b0351b; a direct Git comparison verified the entire UI subtree and Android scroll controller are byte-identical at the reviewed head. The full frame was inspected and contains only the synthetic session and isolated app. Native Android before/after instrumentation remains applicable to the unchanged controller. Neither capture is claimed as a new live-provider inference run.

Local proof includes 546 UI tests, 22 picker E2E tests, 2,714 Android tests, the cron readiness/cleanup regression and repetitions, 50 update/dispatch tests, relevant builds, changed checks, and native schema/protocol/i18n guards. Exact commands and historical failures are retained in the PR's Evidence section. No model-runtime, schema/config, dependency, or sidebar native-terminal change was added.

Final landing still runs through the repository's native prepare/merge wrapper. GitHub currently reports a main-branch conflict despite the green reviewed head; preparation must resolve that safely and validate the resulting head. The native workflow may reuse this green run only under its verified patch-identical rebase contract. A changed patch requires renewed proof rather than assuming this result applies.

Verified final Control UI: the selected GPT-5.6 Sol model remains locked

Preserve the four published repair commits while integrating main for the
native landing workflow. Resolve only adjacent test imports, retaining
both the connected-account and locked-model regression helpers.

The complete tree matches the rebased candidate verified by 427 UI tests,
57 Android ownership tests, formatting, and fresh scoped P0 autoreview.
Main already contains the two update dispatch expectations.
@openclaw-barnacle openclaw-barnacle Bot removed the agents Agent runtime and tooling label Sep 3, 2026
@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Final synchronization proof

The confirmed Keep together scope decision remains in effect. The synchronized head is da7b0a0f1ea874261261ea70d74053f6c9c65fc6, incorporating main at 907f6956ee5eae23d8a44fe224fd8bcd5faefefd through the native workflow's signed Git publication path. It preserves all four originally published repair commits. GitHub now reports the PR mergeable.

The only content conflict was adjacent imports in the composer-controls test: retain both main's connected-account helpers and this PR's locked-model helpers. Main's connected-account UI and Android jump-button visibility changes are preserved. The two update-dispatch expectations already landed separately in #137196 and #137199, so they add no remaining delta here. The full synchronized Git tree is byte-identical to the mechanically rebased candidate tested and independently reviewed below.

Fresh synchronization checks passed:

node scripts/run-vitest.mjs ui/src/pages/chat/chat-pane-session-controls.test.ts ui/src/pages/chat/chat-view.test.ts ui/src/lib/chat/model-select-state.test.ts
node_modules/.bin/oxfmt --check ui/src/pages/chat/chat-pane-session-controls.test.ts
# From apps/android, with the installed Android SDK configured:
./gradlew --offline --no-daemon :app:testPlayDebugUnitTest --tests ai.openclaw.app.ui.chat.ChatFullMessageOwnershipLayoutTest --tests ai.openclaw.app.ui.chat.ChatReaderScrollControllerTest --tests ai.openclaw.app.ui.chat.ChatReaderScrollOwnershipLayoutTest

Results: 427 UI tests, 57 Android tests across three suites, zero failures/errors/skips, formatting and diff checks clean. Fresh independent whole-candidate Codex autoreview is scoped-clean at P0; this is not an exhaustive lower-priority certificate. The Android launch initially lacked its SDK location and stopped before tests; rerunning with the installed SDK completed successfully. No source, dependency, timeout, or assertion repair was needed.

The remaining delta is nine files: production +10/-12 (net -2), tests +261/-94 (net +167), docs +1/-1. Existing UI and native-controller captures remain evidence for the unchanged label and scroll repairs; the final integration checks above cover the newer main composition. Native Android capture remains controller instrumentation, not a full Gateway flow, and the historical Talk startup failure still has no claimed root-cause fix.

CI 33767216916 is running on this exact synchronized head. The earlier green run33733291014 is historical proof, not asserted as a new-head green result. Native prepare and merge will revalidate the current head and required checks before landing.

The latest ClawSweeper scope decision/rank-up is resolved by the explicit confirmation and final UI proof. This synchronization adds no behavior beyond that accepted repair set.

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. label Sep 3, 2026
Wait for the actual enabled composer after the atomic reply state is published. Preserve publication-only waits for frozen-clock geometry tests and keep the existing timeout and reading assertions.

CI follow-through for #137041; controlled notification ordering reproduces the original stale working-row assertion.
Serialize socket publication with the existing transport write lock so an early OkHttp callback cannot send through an unpublished handle. Revalidate closure after waiting for that lock so a retired handshake cannot enqueue.

A real-socket regression holds the asynchronous factory return, reproduces the pre-fix gateway send failure, and covers disconnect during publication. No auth policy, wire payload, retry, or timeout changes. Fixes #137404; CI follow-through for #137041.
@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The new head ec6e49fb9d102c0d53b8fcf9863c0af22cac89c9 contains two separately committed, evidence-backed repairs for the Android failures that blocked final synchronization:

  • A real OkHttp callback could start the handshake before its socket was published. The existing transport lock now serializes publication and send; the existing enqueue condition rejects closure after the wait. Controlled real-network red/green proof covers initial connection and disconnect during publication. No auth policy, payload, retry or timeout change.
  • Settings' test wait could observe atomic reply state before Compose collection. It now waits for the real enabled composer in automatically advancing tests, preserving frozen-clock and geometry assertions.

Both complete Android variants passed locally: 2,724 Play + 2,855 third-party tests, zero failures/errors/skips, plus APK build and changed checks. Fresh independent review through P2 is clean after fixing a review-found synchronization gap in the new test's own barrier. The final regression was replayed against unchanged production and then the repair.

The confirmed combined-scope decision and original UI/native-scroll proof remain recorded. This is not a claim that prior green CI covers the new head: CI 33778933094 must pass before native landing. Full commands, limitations, and the new startup issue #137404 are in the updated PR body.

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

@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 3, 2026
@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready update for ec6e49fb9d102c0d53b8fcf9863c0af22cac89c9: CI 33778933094 completed successfully, including both Android variants and the required openclaw/ci-gate. Live GitHub reports MERGEABLE / CLEAN, and head-bound native review artifacts validate.

The latest ClawSweeper review found no introduced code or security defect. Its remaining CI and reported-conflict observations are superseded by the terminal exact-head checks and live mergeability. The suggested conflict rebase is therefore skipped: there is no current conflict, and ordinary main drift does not justify rewriting the green head. Fresh independent review through P2 is clean.

Local proof includes 2,724 Play plus 2,855 third-party tests with zero failures/errors/skips, APK build, 163 focused transport/lifecycle/Talk/Settings tests, final socket publication/cancellation red→green replay, and Kotlin lint/changed checks. Exact commands and inspected UI/native-scroll captures remain in the PR body and linked proof comments. The model lock is unchanged; all three production owner repairs together remain net-zero production LOC. The real-loopback transport proof controls callback ordering and is not claimed as live-provider or installed-app startup proof; historical Talk timeout attribution remains explicitly uncertain.

Proceeding through the repository-native prepare/merge guards; this comment is not a claim that the PR has merged.

@steipete
steipete merged commit b53be77 into main Sep 3, 2026
178 checks passed
@steipete
steipete deleted the steipete/competent-cray-c8bc2f branch September 3, 2026 17:05
@steipete

steipete commented Sep 3, 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 4, 2026
…7196)

Align the update tool and /update exact-call assertions with the shared
in-process Gateway actor introduced by openclaw#136952. Preserve owner checks,
trusted routing, admin scopes, abort propagation, and the update timeout.

Reuse Peter Steinberger's two-line fix from commit
0fee3dc in openclaw#137041, separated so this CI
prerequisite can land independently of its UI and Android changes.

Four failures reproduced on main 385c9d9. All 50 owner and sibling
tests pass after the correction. Production delta: zero lines.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 4, 2026
* fix(ui): show concrete model names in locked chats

Keep the selected catalog label or qualified model reference visible in
locked Control UI chats. Use Session model only when the selection is
unknown, and preserve the existing lock and model mutation guards.

Remove runtime-based ownership labeling and document that model editability
does not establish native ownership. Cover canonical Gateway rows, missing
catalog metadata, and runtime-independent labels with regression tests.

Fixes openclaw#137039. UI follow-up to openclaw#136754; runtime behavior is unchanged.

* test(cron): synchronize timeout probe with child readiness

Freeze deadline timers until the real shell publishes a live descendant,
then advance the unchanged 0.5-second timeout and termination grace. This
keeps startup latency from consuming the process-group cleanup proof.

Reuse canonical PID and temporary-directory helpers and clean up processes,
timers, and the spawn spy even when setup fails. Cron runtime is unchanged.

Proof: all 10 command-runner tests, 10 sequential timeout-probe runs,
inherited-pipe descendant coverage, and deliberate setup-failure cleanup.
CI follow-through for openclaw#137041.

* fix(android): preserve new-turn scroll while history settles

Only include history loading in the reader effect key for empty timelines,
where it changes the transition. Populated-history completion must not
cancel a scroll after the owner records its new content version.

Reproduce loading completion during an observably moving animation and
require arrival at the newest turn. Preserve manual takeover and replacement
animation behavior without changing the full-message fixture.

Fixes openclaw#137111. Found during CI follow-through for openclaw#137041.
Proof: old owner stops at item 32/offset 141; repaired owner reaches 0/0.
All 57 reader/full-message tests, Kotlin lint, nine-file changed checks,
and :app:assemblePlayDebug pass. Native visual proof remains pending.

* test(update): expect system actor for gateway dispatch

Match the canonical in-process Gateway actor in the existing update tool
and /update exact-call assertions. Main now propagates the system actor;
these two expectations were missed while the shared helper tests changed.

Four failures reproduced on the CI merge baseline. All 50 owner and
sibling tests pass after the two-line expectation repair. Runtime behavior,
scopes, routing checks, mocks, and timeouts are unchanged.

Refs openclaw#137041.

* test(android): await rendered Settings reply completion

Wait for the actual enabled composer after the atomic reply state is published. Preserve publication-only waits for frozen-clock geometry tests and keep the existing timeout and reading assertions.

CI follow-through for openclaw#137041; controlled notification ordering reproduces the original stale working-row assertion.

* fix(android): publish WebSocket before handshake sends

Serialize socket publication with the existing transport write lock so an early OkHttp callback cannot send through an unpublished handle. Revalidate closure after waiting for that lock so a retired handshake cannot enqueue.

A real-socket regression holds the asynchronous factory return, reproduces the pre-fix gateway send failure, and covers disconnect during publication. No auth policy, wire payload, retry, or timeout changes. Fixes openclaw#137404; CI follow-through for openclaw#137041.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: web-ui App: web-ui docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

1 participant