Repository navigation
refactor(doctor): reuse legacy vLLM parameter detection - #157453
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: blocked before merge. Reviewed September 24, 2026, 3:00 PM ET / 19:00 UTC (Revision 2). ClawSweeper reviewWhat this changesDoctor reuses its existing legacy vLLM Qwen parameter detector for provider and model entries and adds tests for present null and false aliases and absent aliases. Merge readiness⛔ Blocked before merge - 2 items remain Keep this PR open. Current main and the latest release still contain the duplicated detection logic, and the proposed substitution appears behavior-preserving. The required installed-upgrade validation failed before the package swap completed. Priority: P3 Review scores
Verification
How this fits togetherDoctor checks existing OpenClaw configuration during repair, startup, and updates. Its legacy rules identify retired vLLM Qwen parameters so the shared migration can move them to model compatibility settings. flowchart LR
A[Existing configuration] --> B[Doctor legacy rules]
B --> C{Legacy Qwen alias present?}
C -- Yes --> D[Report legacy path]
D --> E[Shared migration]
E --> F[Model compatibility setting]
C -- No --> G[No legacy issue]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -4, Tests +37. Total +33 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one alias-detection policy in Doctor while preserving the existing migration writer, alias precedence, and configuration backups. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-preserving refactor. The PR reports passing before-and-after characterization fixtures, not a defect reproduction. Is this the best way to solve the issue? Yes. Reusing the existing detector is a narrow way to remove duplicate policy without changing migration writes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0603d46c1b76. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
) Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Maintainer-requested consolidation of duplicated legacy vLLM parameter detection in Doctor.
User Impact
No user-visible change. Legacy configuration detection and update behavior remain unchanged, including owned aliases whose values are null or false.
Why This Change Was Made
Reuse the existing detection policy for provider and model parameters. Preserve alias precedence, record validation, model-array short-circuiting, and all migration writes.
Evidence
7c335ea34a93ab454d8e5ff8e9a017df8544761b.[email protected]to this exact candidate passed in https://github.com/openclaw/openclaw/actions/runs/36056504385: one 599-second base/manual-restart lane, exact installed7c335ea34a93ab454d8e5ff8e9a017df8544761bbuild, automatic migration before standalone Doctor, survival, and Gateway checks. Reviewed harness tooling45736c1684046323f78887ac8c1f67d7c5d3e187reused the original immutable candidate package (SHA-256b53c6e718b59eea7043b79b86cb7ec6e024eff7dba3fb63d305a7a9afe2abc56); native package and reconstructed registry admission passed. This completes the installed-upgrade evidence requested in review, supplementing the local detector/migration cases.