Repository navigation
improve: avoid repeated Sessions row work - #189256
Merged
Merged
Conversation
Co-authored-by: steipete <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
roboclaw-bot
marked this pull request as ready for review
October 31, 2026 09:27
Collaborator
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 1, 2026
Co-authored-by: steipete <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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
8b1efb47c13011a10765f264cf46b97e72c12e78to the final candidate (committed as1da5ef2d1f86708563d100e3e8859c094f6b0cfb): 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
1da5ef2d1f86708563d100e3e8859c094f6b0cfbwithci: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