Skip to content

fix(ui): align device placement copy expectations - #192884

Closed
roboclaw-bot wants to merge 4 commits into
mainfrom
fix/ui-device-copy-l311
Closed

roboclaw-bot wants to merge 4 commits into
mainfrom
fix/ui-device-copy-l311

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #192044

What Problem This Solves

Device-placement browser tests still expect the earlier English labels and stop before exercising their behavioral assertions.

User Impact

No shipped behavior changes. The assertions now use the current device, session-slot, and computer terminology.

Why This Change Was Made

The intentional copy update in 2a16e47f90a412a65734ade0bff6fc6f56ca45ea (#192044) changed Machine to Device size, Local to This computer, runner to device, and worker slots to session slots. The unnamed folder-browser placeholder is the complete “This computer” string; a discovered name uses “This computer · {name}”.

Only expected literals and whitespace change. Both exact absent-size controls and all roles, selectors, request payloads/counts, capacity gates, and ordering assertions remain. Against integrated main, the diff is four test files, +15/-15 test lines and +0/-0 production lines. The 100px trigger-width assertions owned by #193162 are untouched.

Main was merged normally to incorporate the fix for an inherited browser-panel type error. Original contributor commits are preserved, with no rebase or force-push.

Evidence

  • Main reproduction: six reported copy failures reproduced on pinned Bun; Node independently reproduced the obsolete Machine selector.
  • Current-head focused browser proof: all 12 selected cases passed across focused runs on Node and pinned Bun. The five-file runs passed 11 cases on Node (286.37s) and Bun (290.46s), with the boot case hitting the existing 10s local readiness limit. Running that case under the repository’s existing CI timeout (CI=true) passed on Node (112.62s wall; 38.741s scenario) and pinned Bun (105.89s wall; 28.650s scenario), including create/dispatch/send and hard reload. No test timeout, retry, readiness bypass, or behavioral assertion changed. The CI-mode Bun run explicitly selected and revision-verified the repository binary; an initial host-Bun mismatch stopped in setup and is not counted as proof.
  • Scoped type-aware lint (73.56s), typecheck (18.31s), formatting, line cap, full baseline ratchets (373.16s), and git diff --check passed. Test-line delta is zero.
  • Independent Codex review of the final branch diff: scoped-clean, no P0–P2 findings.

Proof ran locally on macOS ARM64 with isolated Chromium and synthetic Gateway fixtures. These test-only expectation repairs do not require live model/provider traffic. Exact-head CI run 41973239180 passed, including the browser suite, baseline ratchets, and openclaw/ci-gate. A refreshed ClawSweeper review has been requested; its older verdict predates both repaired findings.

Align the existing exact copy expectations with the intentional English update.
Preserve all behavioral assertions and negative controls.

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

clawsweeper Bot commented Nov 4, 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.

@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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR updates existing device-placement browser expectations to match the approved English UI copy.

Example: The folder browser opens before system.info supplies QA-Gateway.

  • Before: The test expects “Gateway · local” and stops before checking name discovery.
  • After: It expects “This computer,” then verifies the transition to “This computer · QA-Gateway.”

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused repair is correct and validated, but its complete substantive change has already landed elsewhere.
Proof confidence 🐚 platinum hermit (4/6) This collaborator-authored PR changes tests only; focused Chromium results and verified exact-head CI support the repair, while inspected linked screenshots show historical related behavior rather than this head.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: No · Fix scope: Complete
User problem: Browser tests stop at obsolete labels before reaching their placement assertions.
Reason: The original repair is useful and preserves approved behavior, but current main already includes its entire substantive contribution.

Merge readiness

⛔ Blocked before merge - 2 items remain

Both earlier findings are fixed, and no new defects were found. Every substantive repair already landed through #193160; the collaborator-author close guard requires maintainer judgment before retiring this PR.

Priority: P3
Reviewed head: 74d5382e55dbb06092fbca4d51b763e7c1d8d508
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should this collaborator-authored PR be retired because feat(ui): stack the Team agent header identity #193160 already landed its complete repair?
  • Recommendation: Retire as superseded: Close this PR with credit for the contribution and link the equivalent landed repair.
  • Why: Source comparison settles implementation coverage, but the author-association guard reserves closure for explicit maintainer judgment.

Before merge

  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Product: not worth merging - The original repair is useful and preserves approved behavior, but current main already includes its entire substantive contribution.

Findings

None.

Agent review details

How this fits together

Chromium tests render the Control UI against synthetic Gateway responses and check placement controls, discovery transitions, and outgoing session requests.

flowchart LR
  A[Synthetic Gateway responses] --> B[Control UI owners]
  C[English catalog] --> D[Placement controls]
  B --> D
  D --> E[Chromium interactions]
  E --> F[Behavior and request assertions]
Loading

Technical review

Best possible solution:

Retain the equivalent repair already on main and have a maintainer retire this superseded PR.

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

The pinned base expectations disagree with the authoritative English catalog; supplied browser results document the failures, while current main already contains the corrected expectations.

Is this the best way to solve the issue?

Updating existing literals while retaining behavioral assertions is the smallest complete repair, but another merge now adds no substantive coverage.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 69d6eae050eb; fix evidence: commit 9edb1d3e6335, main fix timestamp 2026-11-05T05:04:27Z.

Provenance checked

  • Device, computer, and session-slot terminology keeps the original intent (2a16e47: The approved setup copy pass standardized device and workspace language.)
  • Late Gateway-name discovery and recovery keeps the original intent (c7f1699: Keep Gateway place labels current after delayed name discovery and recovery hydration.)
  • Placement destination selection keeps the original intent (a38409f: Provide explicit destination selection while preserving current-source and move checks.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 330184b adds ui/src/e2e/new-session-page.projects-places.e2e.test.ts:182 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 330184b959d0; files: ui/src/e2e/new-session-page.projects-places.e2e.test.ts)
  • Vyctor H. Brzezowski: Raw commit a38409f adds ui/src/e2e/session-placement.move.e2e.test.ts:612 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a38409f85f77; files: ui/src/e2e/session-placement.move.e2e.test.ts)

PR surface

Tests 0. Total 0 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 15 15 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 15 15 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status no longer selects a status label.

Label justifications:

  • P3: This is test-only expectation maintenance whose substantive repair already exists on main.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-04T16:48:15.880Z sha 3125bb2 :: needs changes before merge. :: [P2] Expect the complete unnamed Gateway placeholder | [P2] Offset the formatting growth so the test-line gate passes

Reviewed November 5, 2026, 12:32 AM ET / 05:32 UTC (Revision 2).

Use the intentional This computer fallback while system.info is held.
Preserve the later named Gateway transitions and both scope variants.

The existing +2 LF test-line failure and browser proof remain unresolved.

Co-authored-by: steipete <[email protected]>
Offset the longer Device size expectation without changing assertions, selectors, or test behavior.
@steipete

steipete commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

Head 74d5382 fixes the complete unnamed placeholder and offsets the two formatting lines while retaining both absence controls. The PR body records passing focused Node and pinned-Bun browser proof for all 12 selected cases, plus type-aware lint, types, full baseline ratchets, and a clean independent review. Please review this exact head.

@clawsweeper

clawsweeper Bot commented Nov 5, 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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 5, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 5, 2026
@steipete steipete self-assigned this Nov 5, 2026
@steipete

steipete commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Superseded by #193160, which landed the same device-placement copy expectations on main while this PR was being repaired. Current main no longer asserts the old labels in these four test files, so the only remaining difference here is blank-line placement. Closing to avoid an empty landing.

@steipete steipete closed this Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants