Repository navigation
refactor(ai): remove unused overflow wrapper - #148719
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 maintainer review before merge. Reviewed September 14, 2026, 11:46 PM ET / September 15, 2026, 03:46 UTC (Revision 2). ClawSweeper reviewWhat this changesRemoves an unused internal overflow-detection wrapper and its redundant test assertion while retaining the shared matching pattern and behavioral tests. Merge readiness✅ Ready for maintainer review This remains a useful, focused cleanup with no actionable findings. Current main still contains the unused wrapper, and the retained classifiers and regression cases preserve its behavior. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s model runtime classifies provider errors and token usage to detect context overflow. Agent recovery and failover consume these classifications to decide how to handle oversized requests. flowchart LR
A[Provider error text] --> C[Shared overflow patterns]
B[Assistant token usage] --> D[Assistant overflow classifier]
C --> D
C --> E[Failover classifier]
D --> F[Agent recovery decisions]
E --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -5, Tests -5. Total -10 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep overflow detection in the existing shared classifiers and remove the unused internal convenience wrapper. Do we have a high-confidence way to reproduce the issue? Not applicable: this is cleanup, and source searches establish that the removed wrapper has no runtime callers. Is this the best way to solve the issue? Yes: removing the unused wrapper while retaining the shared pattern and classifier-level assertions is a narrow, maintainable cleanup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a4790958b284. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* commit 'd8e50a38fd1c4df6dd69bcbc155697c464e1be45': (23 commits) fix(cron): release queued reservations when activation fails (#141008) fix(gateway): reduce CPU work in session lists and searches (#148713) feat(gateway): add admin CPU profile diagnostics (#148004) fix(gateway): cap device-required probe cache to prevent unbounded growth (#147708) fix(ci): align Gateway E2E expectations (#148653) refactor(ai): remove unused overflow wrapper (#148719) feat: stage selected chat text as editable comments (#148649) fix(ci): admit reachable release refs with large histories (#148161) fix(agents): allow authorized email CLI actions (#148521) improve(agents): trim large tool results with less CPU (#148718) refactor(docker): share image version parsing (#148243) fix(ci): retain passing hosted checks after skipped duplicates (#148722) fix(update): report configuration failures during repair (#144819) refactor(imessage): share handle classification (#148229) fix(ui): keep the selected agent across Settings pages (#148667) test(telegram): reuse deferred fixture helper (#148501) fix(media): resize images before understanding (#122431) fix: preserve unfinished work during completed PR cleanup (#148704) refactor(migrate-hermes): reuse canonical config record coercion (#148645) perf(channels): reduce history worker metadata footprint (#148711) ...
What Problem This Solves
Removes an overflow wrapper that has no remaining runtime callers.
User Impact
No user-visible behavior change. The symbol is removed from the reserved
internal/runtimesubpath, not the public package root or plugin SDK.Why This Change Was Made
Overflow classification already uses the shared pattern in both assistant-error and failover-explicit scopes. Keep that pattern and every test case; remove only the wrapper and its direct test assertion/import. This removes five production lines and five net test-support lines.
Evidence