Skip to content

improve: avoid repeated Sessions row work - #189256

Merged
roboclaw-bot merged 1 commit into
mainfrom
perf/sessions-held-sort-20261031
Oct 31, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
perf/sessions-held-sort-20261031

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

The Sessions page repeats held-list sorting, agent identity mapping, and row-label translation on unchanged Gateway status publications.

User Impact

Sessions retains its rows and interactive controls while doing less repeated work. Sorting, filters, limit/page-size inputs, selection, identity changes, and locale updates keep their existing behavior. No latency claim.

Why This Change Was Made

Narrow ordinary memos to the existing row array, sort operands, identity owner, expansion state, and translated labels. Keep request/reconciliation ownership and the sorting algorithm. The landed Agent scope work is untouched. Production: +30/−23, net +7 lines; one owning regression adds 73 test lines. The test-line checker passes without an allocation or baseline change.

Evidence

200 held sessions / 100 visible; five separately flushed unchanged status publications through the registered Sessions route and real application owners, with in-process synthetic Gateway I/O and jsdom:

Work Pinned base Candidate
Held-list sort comparisons 995 0
Agent-id map passes 5 0
Identity map passes 5 0
Route i18n calls 2,170 170
Retained rows per status 100 100
RPCs 0 0

The earlier census reported 2,185 route i18n calls; landed Agent scope work already removed 15 before this base. This change removes another 2,000. Remaining 170 calls are control/chrome labels; further narrowing is outside this row/owner cut. Sidebar calls remain 10 per five statuses. Locale changes still invalidate translated labels.

All 15 actions from the original driver were compared on base and candidate: mount, five statuses, five presence events, reconnect, sidebar refresh, and one-row refresh. Retained DOM, RPCs, layout reads, and DOM mutation counts are unchanged. The driver's substring selector also includes Workboard Sessions; all its counters and retention records are identical. Every grouped result is in the local task report.

The final owning regression is red on base (five held sorts, five identity lookups, 40 row translations), green with the fix. Four focused unit files pass: 115 tests, 6.91 s runner wall time; touched test file totals 2.703 s, including the 0.663 s regression. Format, diff checks, and test-line budget pass. Local targeted UI typechecking had the same five errors on base and candidate in host-file-write, plugins-control-ui-build, config/io.audit, private-dir-mode, and state-migrations.agent-dir-receipt. Local lint could not load the Solid plugin from copied dependencies. The exact-head CI lint and production/test type jobs now pass; the local setup gaps are retained here as historical evidence.

Independent local Codex autoreview (P0–P2), pinned base 8b1efb47c13011a10765f264cf46b97e72c12e78 to the final candidate (committed as 1da5ef2d1f86708563d100e3e8859c094f6b0cfb): scoped-clean, no actionable findings. Exact-head CI/typecheck/lint, all three UI unit shards, all seven browser E2E shards, and both real-Gateway E2E shards pass. Local proof ran without a build, browser, real Gateway, or remote allocation. No visual layout/content change.

First ready-for-review exact-head CI run 41188745353 completed successfully for 1da5ef2d1f86708563d100e3e8859c094f6b0cfb with ci:full: attempt 1, 36 successful jobs, 27 skipped, zero failures. Passing jobs include lint, production/test types, UI unit/browser/real-Gateway E2E, architecture/performance/i18n/ratchets, security-fast, and openclaw/ci-gate. Skipped jobs are not passing coverage; the synthetic work-count census does not establish browser latency or a dedicated authenticated unchanged-status Sessions round trip.

Worked on by

@steipete

Work sessions

@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@roboclaw-bot roboclaw-bot added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 31, 2026
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 31, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 31, 2026 09:27
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 31, 2026
@roboclaw-bot
roboclaw-bot merged commit 0c53278 into main Oct 31, 2026
168 of 169 checks passed
@roboclaw-bot
roboclaw-bot deleted the perf/sessions-held-sort-20261031 branch October 31, 2026 09:45
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

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 ci:full Keep ordinary native-locale CI selection on the next PR run. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant