Repository navigation
fix: avoid loading patches for environment change totals - #189571
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
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. |
|
Codex review: needs maintainer review before merge. What this changesEnvironment totals request counts only, while Review retains separate full-patch requests. Example: Environment displays changed.ts with one addition and no deletions.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR removes unnecessary Git work through the existing diff owner, remains necessary on current main, and has no identified correctness or security findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI workspace diff owner translates Environment and Review demand into sessions.diff RPC requests and publishes checkout-scoped results. flowchart LR
E[Environment totals] --> O[Workspace diff owner]
R[Review panel] --> O
O --> S[Summary request]
O --> F[Full patch request]
S --> G[Gateway sessions diff]
F --> G
G --> C[Checkout diff owner]
Technical reviewBest possible solution: Use the existing summaryOnly contract within the workspace owner, retaining separate full-patch reads and explicit refresh semantics. Do we have a high-confidence way to reproduce the issue? Current-main source directly shows Environment requesting full diffs for counts, and the PR reports two expected base failures; no target code was executed during this read-only review. Is this the best way to solve the issue? The runtime fix is appropriately small: select the existing summary contract and distinguish in-flight response shapes within the existing owner; the two new flags affect benchmark tooling only. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 71a4644c050b. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +8, Tests +39, Docs +2, Other +193. Total +242 across 7 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 31, 2026, 1:18 PM ET / 17:18 UTC. |
|
Merged via squash.
|
…189696) * test(ui): align disk badges and Review loading checks Update the disk-pressure scenario for healthy worker badges restored in #189526. Keep Environment summary reads separate from the deferred Review patch request introduced in #189571, and assert the rendered patch after opening its file. * test(ui): keep Review request assertions type-safe * fix(test): allow offline placement recovery reload * fix(test): retain automation row contract after reload
…penclaw#189696) * test(ui): align disk badges and Review loading checks Update the disk-pressure scenario for healthy worker badges restored in openclaw#189526. Keep Environment summary reads separate from the deferred Review patch request introduced in openclaw#189571, and assert the rendered patch after opening its file. * test(ui): keep Review request assertions type-safe * fix(test): allow offline placement recovery reload * fix(test): retain automation row contract after reload
…189696) * test(ui): align disk badges and Review loading checks Update the disk-pressure scenario for healthy worker badges restored in #189526. Keep Environment summary reads separate from the deferred Review patch request introduced in #189571, and assert the rendered patch after opening its file. * test(ui): keep Review request assertions type-safe * fix(test): allow offline placement recovery reload * fix(test): retain automation row contract after reload (cherry picked from commit 01ac91c) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Environment change totals request full patches and branch history even though they only display counts.
User Impact
Environment totals do less Git work and allocate less memory. Opening Review still loads the full patch. There is no visual or protocol change.
Why This Change Was Made
Use the existing
summaryOnlyrequest and share concurrent reads only when their summary/full shape matches. Preserve explicit refresh and latest-request publication. No server cache, TTL, configuration, or database change. Runtime code grows by eight lines for the two independent in-flight slots.The benchmark tool now supports 501 content-changing history commits and a recorded base. A separate native diagnostic reproduces missing-object promisor-pack traversal. Server pathspec and local-object guard candidates were rejected after slower healthy-repository measurements; this PR does not claim to solve all partial-clone IO.
Evidence
pnpm check:changed: inherited Knip unused exportresolveTtsDirectiveBody, reproduced on exact parent82639fac241419cb72e6802e75e91c020d36b325, introduced byec004ac80b18e7fb97a52f45a6f1ead13c53ad38(refactor(tts): isolate streaming directive text from provider discovery #189504). This is an existing main regression, outside this change. Final rerun completed: this is the only failure; all other checks passed. Exact-head CI is green (run 41222494791) at64975d1b2be082db71e64cd359b29b014fb86c09.