Repository navigation
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: needs changes before merge. What this changesThis PR shares icon geometry, provider usage rendering, TLS preflight, and Pi/OpenCode session-adoption implementations. Example: Usage displays 75% remaining quota and a $12.50 / $50.00 budget.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored PR open: its runtime consolidation remains useful despite overlapping presentation work already on main; no introduced defect was found, but reported conflicts remain. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI adapters turn icon geometry and provider snapshots into DOM, while runtime helpers turn endpoint probes and native-session selections into diagnostics and adopted OpenClaw sessions. flowchart TD
A[Icon catalog] --> B[Lit and Solid adapters]
C[Provider snapshots] --> D[Solid usage renderer]
E[OAuth endpoint probe] --> F[Shared TLS preflight]
G[Pi and OpenCode catalogs] --> H[Shared session adoption]
Technical reviewBest possible solution: Preserve main’s canonical presentation owners and land the distinct runtime consolidation after resolving conflicts and validating affected paths. Do we have a high-confidence way to reproduce the issue? This is a refactor rather than a reported bug; the original blobs and pinned diff establish the duplication without running target code. Is this the best way to solve the issue? The shared helpers fit existing owners and preserve their contracts, with the overlapping presentation work best reconciled against current main. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f9d2ebefe12f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -1013, Tests +22, Docs +13. Total -978 across 16 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
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 HistoryReview history (1 earlier review cycle)
Reviewed October 11, 2026, 9:45 PM ET / October 12, 2026, 01:45 UTC (Revision 2). |
|
The conflict-only rebase onto The remaining unique work is 107 net production lines removed: shared Pi/OpenCode adoption and HTTP TLS preflight. Under the campaign's BELOW-500 rule, this is branch-only work, not a merge candidate. Closing this PR without merging; the remaining signed branch is preserved for follow-up consolidation. The original 1,013-line candidate's focused, build, review, SDK API, and image evidence remains in the history above, but is not claimed as new work beyond current main. |
|
Continued in #169756 at |
What Problem This Solves
Maintainer-requested duplicate-code consolidation gives HTTP, realtime voice, and catalog adapters shared execution owners instead of parallel implementations that can drift.
User Impact
Existing HTTP, voice, catalog, and media behavior stays intact. Successful MCP configuration retries no longer return stale failure text after the stored error has been cleared. No configuration, protocol, database schema, retention, permission, or dependency change is required.
Why This Change Was Made
The adapters now share OpenAI-compatible HTTP execution, OpenAI/xAI WebSocket transport, provider-selection preparation, UI set-request lifecycle, hosted-media request parsing, and bounded JSONL activity scanning. Vendor authentication, wire messages, transcript classification, stream-flush differences, resource bounds, and authorization remain with their existing owners. The retained branch also contains ACP catalog-adoption and TLS-preflight consolidation.
Net production reduction: 681 lines (+1,839/−2,520), excluding tests, fixtures, generated files, declaration files, documentation, and baseline maintenance. This uses the campaign's 500–999-line exception after the extended implementation pass; the coverage log below records rejected clusters. The former icon/usage-rendering changes are absent because #169367 already landed them.
Best-effort tradeoffs accepted
Evidence
ff7b090f); the follow-up only relocates private Gateway image handling and fixes import/shorthand lint. Final-head checks found zero runtime value cycles and zero Madge cycles.93fac510284f12c5a52f459bbbcf1691434d358d. Exact-head hosted CI is the remaining broad-proof and landing gate.Duplicate-cluster coverage and retained distinctions
Exact-token and normalized structural scans covered the coordinator-approved production scope, followed by an SDK-only plugin scan. Tests, fixtures, generated declarations, other live-lane areas, audit, changelog and PR tooling were excluded from implementation scope.
Provenance inspected includes #167775 and #115652 (HTTP/flush behavior), #117865 and #122414 (realtime lifecycle/bridge split), #169111 (async provider-selection counterpart), and #167925/#168656 (UI lifecycle/refresh bookkeeping). This is a structural cutover; no speculative race removal is claimed for those families.