Skip to content

fix(ui): show the correct Threads page size - #116349

Merged
steipete merged 3 commits into
mainfrom
codex/autoqa-control-ui-20260730
Jul 30, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/autoqa-control-ui-20260730

Conversation

@steipete

@steipete steipete commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes two issues on the Control UI Threads page: the page-size selector could display 10 per page on first render while the page was actually using a different size, and screen readers exposed the selector as an unnamed combobox.

Why This Change Was Made

The matching dynamic option now owns initial selection while the existing value binding continues to handle updates. The same selector receives a localized accessible name from the English source catalog. This is an AI-assisted change produced during a broad maintainer QA campaign.

User Impact

Operators now see the real active page size immediately, and assistive technology identifies the control as “Rows per page.”

Evidence

  • Before: browser reproduction showed state 25, 15 rendered rows, and a selector displaying 10 per page; Chrome exposed it as an unnamed combobox.
  • After: the browser regression finds combobox[name="Rows per page"] with value 25 on first paint.
  • Blacksmith Testbox tbx_01kys6crscsg4xyw738qynvs48: 61/61 focused Control UI tests passed; final formatter-only head rerun passed 44/44 — https://github.com/openclaw/openclaw/actions/runs/30535347668
  • pnpm ui:i18n:verify: passed (4632 source keys, raw-copy baseline unchanged).
  • Fresh Codex autoreview: no accepted/actionable findings; correctness confidence 0.99 on the final focused branch diff.

Visual proof

Before After
Selector shows 10 per page while all 15 rows are rendered, and the accessibility tree has an unnamed combobox. Selector shows the actual 25 per page state and is exposed as “Rows per page.”
Before: incorrect page size and unnamed selector After: correct page size and accessible selector

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Jul 30, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. labels Jul 30, 2026
@clawsweeper

clawsweeper Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 6:45 AM ET / 10:45 UTC.

ClawSweeper review

What this changes

The PR makes the Threads page-size selector show its active page size on first render and gives the selector the localized accessible name “Rows per page.”.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

This is a narrow, evidence-backed Control UI fix with no discrete correctness or security concern in the supplied patch. It should remain open for explicit maintainer handling because it carries the protected maintainer label and its clean merge result needs refresh against the newer current main base.

Priority: P2
Reviewed head: 3cb3635c37f8c91bb03a13adde1bcf5bdcc3e690
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation, direct visual proof, and targeted regressions make this a normal good merge candidate; only the current-base refresh and protected-label decision remain.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The PR body includes directly relevant before/after browser screenshots showing both the corrected selected value and named combobox, supplemented by focused UI test results; the evidence is sufficient for this visible Control UI change.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The PR body includes directly relevant before/after browser screenshots showing both the corrected selected value and named combobox, supplemented by focused UI test results; the evidence is sufficient for this visible Control UI change.
Evidence reviewed 5 items Patch behavior: At PR head, renderSessionsTable binds the selector value, marks the matching dynamic option selected for first render, and supplies the localized sessionsView.pageSize accessible name.
Regression coverage: The PR adds a rendered-view regression asserting the selector has value 25, selected text 25 per page, and the expected accessible name; it also adds browser-layout coverage for the named combobox.
Localized copy: The new sessionsView.pageSize English catalog entry supplies the visible accessibility name without adding a configuration or API surface.
Findings None None.
Security None None.

How this fits together

The Control UI renders the Threads page from session data and pagination state. Its page-size selector controls how many thread rows are shown and must expose both the active value and an accessible label to the browser.

flowchart LR
  A[Thread and pagination state] --> B[Threads page renderer]
  B --> C[Page-size selector]
  D[English translation catalog] --> C
  C --> E[Rendered selected option]
  C --> F[Accessible combobox name]
  E --> G[Operator-visible pagination]
  F --> H[Screen-reader navigation]
Loading

Decision needed

Question Recommendation
After refreshing this branch against current main, should the demonstrated Threads page-size and accessibility fix be merged? Refresh and merge: Rebase or validate the GitHub merge result against current main, then merge if the selector still initially displays the active page size and retains its accessible name.

Why: The patch is a small UI correction with direct proof, but the protected maintainer label requires an explicit human landing decision.

Before merge

  • Resolve merge risk (P1) - GitHub reports the branch as mergeable but behind current main; refresh the merge result and re-check the focused selector behavior before landing.
  • Resolve merge risk (P1) - The protected maintainer label requires explicit maintainer handling even though the supplied patch and proof look sound.
Agent review details

Security

None.

PR surface

Source +4, Tests +45. Total +49 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 5 1 +4
Tests 2 45 0 +45
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 50 1 +49

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Rebase or otherwise refresh the PR against current main, retain the focused first-render and accessibility regression coverage, and land it if the refreshed merge result preserves the demonstrated selector behavior.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Rebase or otherwise refresh the PR against current main, retain the focused first-render and accessibility regression coverage, and land it if the refreshed merge result preserves the demonstrated selector behavior.

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

Yes, from source and supplied proof: render the Threads page with pageSize: 25 before dynamic options exist, then verify the selector initially displays 25 per page and is discoverable as the “Rows per page” combobox. The PR’s focused rendered-view and browser-fixture regressions encode that path.

Is this the best way to solve the issue?

Yes. Adding selected ownership to the matching dynamic option addresses the documented first-render ordering while preserving the existing value binding for updates; the localized accessible name is the narrowest compatible accessibility repair.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This corrects a limited-scope operator-visible pagination mismatch and accessibility defect without evidence of data loss, message failure, or a blocked onboarding path.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR body includes directly relevant before/after browser screenshots showing both the corrected selected value and named combobox, supplemented by focused UI test results; the evidence is sufficient for this visible Control UI change.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes directly relevant before/after browser screenshots showing both the corrected selected value and named combobox, supplemented by focused UI test results; the evidence is sufficient for this visible Control UI change.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body includes directly relevant before/after browser screenshots showing both the corrected selected value and named combobox, supplemented by focused UI test results; the evidence is sufficient for this visible Control UI change.

Evidence

What I checked:

  • Patch behavior: At PR head, renderSessionsTable binds the selector value, marks the matching dynamic option selected for first render, and supplies the localized sessionsView.pageSize accessible name. (ui/src/pages/sessions/view.ts:1456, 3cb3635c37f8)
  • Regression coverage: The PR adds a rendered-view regression asserting the selector has value 25, selected text 25 per page, and the expected accessible name; it also adds browser-layout coverage for the named combobox. (ui/src/pages/sessions/view.test.ts:318, 3cb3635c37f8)
  • Localized copy: The new sessionsView.pageSize English catalog entry supplies the visible accessibility name without adding a configuration or API surface. (ui/src/i18n/locales/en.ts:741, 3cb3635c37f8)
  • After-fix proof: The PR body provides before/after browser screenshots showing the active 25 per page selection and the named combobox, plus a focused Testbox run reported as passing 61/61 tests and a subsequent 44/44 formatter-head rerun. (3cb3635c37f8)
  • Review continuity: The latest completed ClawSweeper review had no findings and requested only a refresh against current main; this head contains the later formatting commit, while GitHub currently reports the PR as mergeable but behind its base. (3cb3635c37f8)

Likely related people:

  • steipete: The available PR history shows three focused commits on the Threads selector and the author assigned the PR to themself; no broader current-main ownership trail was available in the supplied review context. (role: recent area contributor and current assignee; confidence: low; commits: f8bbe5ff02ed, 65a5d30176df, 3cb3635c37f8; files: ui/src/pages/sessions/view.ts, ui/src/pages/sessions/view.test.ts, ui/src/pages/sessions/view.browser.test.ts)

Rank-up moves

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

  • Refresh the merge result against current main and confirm the focused selector regression still passes before merging.

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 (2 earlier review cycles)
  • reviewed 2026-07-30T10:17:35.227Z sha 65a5d30 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-30T10:23:57.744Z sha 65a5d30 :: needs maintainer review before merge. :: none

@steipete
steipete marked this pull request as ready for review July 30, 2026 10:20
@steipete steipete self-assigned this Jul 30, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 30, 2026
@steipete
steipete merged commit 7a9d2c3 into main Jul 30, 2026
185 of 197 checks passed
@steipete
steipete deleted the codex/autoqa-control-ui-20260730 branch July 30, 2026 11:12
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 30, 2026
* origin/main: (99 commits)
  docs(automation): rename scheduled-tasks feature wording to Automations (#114855)
  feat(ui): finish cron -> Automations rename in visible strings (#114853)
  feat(cli): add openclaw automations alias and reword cron display prose (#114854)
  feat(agents): rename scheduler agent tool cron -> automations (#114841)
  fix(tui): preserve session state across switches and reconnects (#116399)
  feat(agents): report CLI command outcomes in channel progress
  fix(cli): preserve explicit option intent (#116389)
  fix(release): trust update restart harness (#116301)
  test(reef): remove false-green live guard smoke (#116393)
  test(comfy): evaluate live guards after setup (#116388)
  fix(heartbeat): serialize wake lifecycle state (#116351)
  test: remove redundant extension boundary wrapper (#116385)
  fix(test): bound Testbox agentic and extension suites (#115696)
  fix(ui): show the correct Threads page size (#116349)
  test(discord): align progress timing expectations (#116377)
  feat(ui): add composable skill references (#116330)
  fix(qa): prevent Slack cleanup from stalling profile runs (#116361)
  fix(ci): validate frozen release candidates faithfully (#116357)
  improve(ci): fail_fast option for release validation, off by default (#116352)
  fix(agents): compare shell tool names case-insensitively and stop re-parsing tool labels
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 31, 2026
* fix(ui): correct sessions page-size controls

* test(ui): defer unrelated memory mock repair

* style(ui): format page-size regression
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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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