Repository navigation
fix: reject misleading Control UI boot coverage captures - #189444
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
October 31, 2026 14:14
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Author
|
Merged via squash auto-merge.
|
This was referenced Oct 31, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 1, 2026
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
Fixes misleading Control UI boot coverage when
--coverageruns with the benchmark's default CPU sampler or explicit CPU profiling.User Impact
No production UI change. Benchmark users get an actionable rejection instead of evidence that can falsely classify required code as unexecuted. Run coverage with
--coverage --untraced; capture CPU profiles separately.--thread-cpu-timeremains supported.Why This Change Was Made
The same built bundle returned function-only binary coverage with concurrent CPU sampling, including zero counts for English and icon initializers whose values the rendered UI required. An isolated coverage capture restored detailed block ranges and counted both initializers. The two CDP sessions share isolate-global V8 coverage state; the exact downgrade event was not logged. This change rejects the observed conflicting mode and documents the separation of coverage, CPU, and complete network accounting.
Evidence
pnpm tsgo:scriptspassedNative reproduction used the production HTTP handler and synthetic chat fixture, the unchanged bundle at
82691373b8cc9899dc14e5e6682ad9659ec4e715, and the benchmark at532bc8e06ae8ef5ddf97a14082ab07e2629b5c7e:This is a measurement correction, not a product byte or readiness improvement. Prior combined-sampler execution numbers are invalid and are not claimed as savings. Completed network counts remain valid. There is no UI build, runtime change, or visual change in this PR.
Simplification kept one real-CLI regression rather than spawning the same large benchmark three times. The initial 15-second child timeout failed on the loaded host; the focused final case passed in 16.18 seconds with a 45-second ceiling. Script LOC 3,865 → 3,872 (+7); documentation 871 → 878 (+7); tests 0 → 17 (+17). No new helper or production seam.
Cold-chat top 30 modules and functions by unexecuted raw bytes
These rankings replace the invalid combined-sampler table. Source-map intervals partition emitted UTF-8 bytes; the most specific V8 range wins. Function rows exclude nested functions. The two tables are alternate views and must not be summed. There are 1,741 mapped source paths and no duplicated paths across covered chunks. Unmapped generated bytes (included in totals): 353,604 loaded / 331,007 executed / 22,597 unexecuted B.
“Common follow-up” identifies an ordinary next interaction; “rare” means conditional/specialized, not measured user frequency. Data literals inherit their enclosing range status. These observations are not data-read coverage, compile cost, proof of dead code, or guaranteed split savings.
Top 30 source modules
node_modules/.pnpm/[email protected]/node_modules/markdown-it/dist/markdown-it.mjsnode_modules/.pnpm/[email protected]/node_modules/dompurify/dist/purify.es.mjsnode_modules/.pnpm/@[email protected]/node_modules/@tanstack/virtual-core/dist/esm/index.jsui/src/lib/protocol-validators.generated/approvals.jsui/src/pages/chat/chat-pane-side-panels.tsnode_modules/.pnpm/[email protected]/node_modules/linkify-it/build/index.mjsui/src/pages/chat/components/chat-composer-view.tsxui/src/pages/chat/chat-pane-sharing.tsui/src/app/app-shell-chrome.tsnode_modules/.pnpm/[email protected]/node_modules/ipaddr.js/lib/ipaddr.jsui/src/app/app-root.tsxui/src/components/select-picker-view.tsxnode_modules/.pnpm/@[email protected]_patch_hash=421b418083c0218bb54ceb3e12bd0eb74a84e86474ca26cc1f1114abbe58de48/node_modules/@solidjs/signals/dist/prod/store/store.jsui/src/components/session-progress-card-solid.tsxui/src/pages/chat/chat-pane-history.tsui/src/lib/protocol-validators.generated/activity.jsui/src/components/session-organizer.tsui/src/pages/chat/chat-outbox-owner.tsui/src/pages/chat/chat-pane-lifecycle.tsui/src/lib/sessions/github-publication-owner.tsui/src/components/solid/menu.tsxui/src/pages/chat/chat-send-submit.tsui/src/api/gateway.tsui/src/pages/chat/components/chat-message-images-solid.tsxui/src/pages/chat/chat-view.tsxui/src/pages/chat/components/chat-session-workspace.tspackages/gateway-client/src/session-projection.tsnode_modules/.pnpm/[email protected]/node_modules/entities/dist/decode.jsnode_modules/.pnpm/@[email protected]_patch_hash=6d6b2e52e607edf3c9cfcc1a26f331d013537d051f43bbb4f3e_d913839875323d2bb83ec59562493c23/node_modules/@solidjs/web/dist/web.jsui/src/pages/chat/composer-dictation.tsTop-30 module totals: 407,374 loaded / 134,174 executed / 273,200 unexecuted raw B.
Classes: {'mixed': 19, 'rare': 3, 'common follow-up': 8}.
Top 30 exclusive functions
ui/src/pages/chat/chat-send-submit.ts:97:1ui/src/lib/protocol-validators.generated/board.js:50:16ui/src/pages/chat/components/chat-message-images-solid.tsx:60:1ui/src/lib/sessions/session-list-query.ts:37:1ui/src/pages/chat/chat-thread-build.ts:131:1ui/src/pages/chat/chat-outbox-drain.ts:140:1ui/src/pages/chat/route-loader.ts:253:1ui/src/lib/chat/outbox-store-codec.ts:112:1ui/src/components/solid/menu.tsx:428:26ui/src/pages/chat/components/chat-working-indicator.tsx:48:1ui/src/pages/chat/chat-tool-activity-coalesce.ts:218:1ui/src/plugins/control-ui-view.solid.tsx:61:1ui/src/components/solid/person-reference.tsx:25:1ui/src/pages/chat/chat-pane-task-suggestions.ts:321:3node_modules/.pnpm/[email protected]/node_modules/jsonc-parser/lib/esm/impl/scanner.js:10:1ui/src/pages/chat/components/chat-permission-card.tsx:12:1node_modules/.pnpm/[email protected]/node_modules/micromark-core-commonmark/lib/html-flow.js:55:1ui/src/pages/chat/chat-realtime.ts:148:29ui/src/pages/chat/components/chat-session-workspace-preview.ts:26:1ui/src/pages/chat/chat-history-hydration.ts:73:1ui/src/pages/chat/components/chat-attachment-reads.ts:231:1ui/src/pages/chat/components/chat-thread-interactions.ts:478:1ui/src/pages/chat/components/chat-message-attachment-availability.ts:57:1src/media/parse-output.ts:355:1ui/src/components/session-progress-card-solid.tsx:559:1ui/src/pages/chat/components/chat-agent-run-frame.tsx:263:1ui/src/pages/chat/components/chat-comment-pins.tsx:36:4node_modules/.pnpm/[email protected]/node_modules/jsonc-parser/lib/esm/impl/parser.js:346:1ui/src/lib/sessions/session-reconciliation.ts:399:5ui/src/pages/chat/chat-session.ts:345:1Top-30 function totals: 105,841 loaded / 5,555 executed / 100,286 unexecuted raw B.
Classes: {'common follow-up': 16, 'rare': 4, 'mixed': 10}.