Repository navigation
fix(ci): remove unused implementation exports - #197271
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 Summary: ✅ CompletedThis 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 changesThis PR makes six implementation symbols private and moves helper assertions to existing router and diagnostic logging boundaries. Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a focused, useful export cleanup still needed on fetched main, with no actionable defects found; exact-head CI remains pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe affected modules route Telegram widget taps into agent messages, validate OpenClaw ID rebind operations, define tunnel IPC messages, and emit bounded session-lease diagnostics. flowchart LR
A[Telegram widget tap] --> B[Widget query router]
B --> C[Agent message dispatch]
D[Rebind request] --> E[Rebind operation owner]
F[Lease invalidation] --> G[Bounded diagnostic logger]
Technical reviewBest possible solution: Keep implementation helpers private and preserve their observable contracts through the existing router and logging owners. Do we have a high-confidence way to reproduce the issue? Source inspection confirms all six unnecessary exports on fetched main and their local production uses; no scanner or tests were run during this read-only review. Is this the best way to solve the issue? The patch is the smallest complete fix: remove unused exports, migrate their direct test consumers to existing boundaries, and retain meaningful assertions without scanner exemptions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7f5697b3bf9d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -2, Tests +15, Other +2. Total +15 across 8 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel 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 Reviewed November 11, 2026, 11:01 AM ET / 16:01 UTC. |
|
Merged via squash.
|
Port Telegram callbacks, hook session keys, private-topic approvals and interactive widgets with complete send/edit/route security companions. Include Feishu captioned media, iOS permission Sendable callbacks, WebKit animation/menu retirement and pending automations props handling. Keep Matrix malformed formatted-mention parsing linear-time. Adapt the 11.4 equivalents to the fixed beta baseline where available. Source PRs: #196217, #191585, #196822, #194027, #197519, #198038, #196991, #198380, #198658, #184432. Companion scope: #191647, #192162, #198022, #197271, #194146; #197670 is folded into #197519 equivalent. (cherry picked from commit 928c118) (cherry picked from commit 569ca48) (cherry picked from commit efa744e) (cherry picked from commit c301da9) (cherry picked from commit 641c4d5) (cherry picked from commit b9d3fb4) (cherry picked from commit a213a51) (cherry picked from commit ec46689) (cherry picked from commit 779d22e) (cherry picked from commit 129ccc3) (cherry picked from commit 849c050) (cherry picked from commit b22f35f) (cherry picked from commit 8b414e9) (cherry picked from commit 01ecda4) (cherry picked from commit f978e54) (cherry picked from commit 6e60479) (cherry picked from commit ec7b49a) (cherry picked from commit 1d72ad0) (cherry picked from commit 5e2c66f) (cherry picked from commit dfb6454) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit f7c581c7f8bf0e57c7d8799e928a121b24462450) Co-authored-by: vincentkoc <[email protected]>
What Problem This Solves
Fixes six unused-export failures in hourly full CI introduced with the Telegram widget, OpenClaw ID rebind, and session refusal diagnostic implementations (#196991, #196388, #196724).
User Impact
No user-visible behavior changes. Widget tap prompts, rebind validation, IPC message shapes, and diagnostic redaction keep their existing contracts.
Why This Change Was Made
Keep module-local implementation symbols private. The widget prompt and stack projection tests now exercise the existing router dispatch and diagnostic log boundaries, so production no longer exports helpers solely for tests. No Knip exceptions or new runtime abstractions are added. Production LOC is net -2; an exact 15-line test allocation preserves the meaningful assertions at those boundaries.
Evidence
check-dependencies). The six findings are two Telegram widget exports, three OpenClaw ID local exports, and the diagnostic projection helper.pnpm check:changed --staged --base 8ae6b3852f9775007478e69692068828e3c7fc14: completed with exit 1 solely for those inherited dead exports. All other gates passed, including core/extension types and tests types, core/extension/scripts lint, format, and repository guards.