Repository navigation
Conversation
|
Codex review: found issues before merge. Reviewed June 30, 2026, 5:41 AM ET / 09:41 UTC. Summary PR surface: Source +28, Tests +152. Total +180 across 2 files. Reproducibility: yes. at source level. The PR removes apiKey from generated custom-provider rows while current ModelRegistry rejects custom model providers without apiKey unless an explicit auth mode allows it. Review metrics: 2 noteworthy metrics.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land one current-main Layer 1 fix that redacts prompt-visible provider credentials across root and plugin-generated catalogs while preserving or explicitly migrating runtime auth through a tested credential contract. Do we have a high-confidence way to reproduce the issue? Yes, at source level. The PR removes apiKey from generated custom-provider rows while current ModelRegistry rejects custom model providers without apiKey unless an explicit auth mode allows it. Is this the best way to solve the issue? No, not as submitted. Stripping prompt-visible secrets is the right direction, but this patch needs a tested auth-preserving migration or approved fail-closed policy and coverage for current plugin catalog sidecars. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 738b2be4b49b. Label changesLabel justifications:
Evidence reviewedPR surface: Source +28, Tests +152. Total +180 across 2 files. View PR surface stats
Security concerns:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
ClawSweeper PR egg 🔥 Warming up: real-behavior proof passed; findings, security review, or rank-up moves are still in progress. Hatch commandComment Hatchability rules:
What is this egg doing here?
|
|
Thanks for the implementation and Windows proof. We’re consolidating this security-sensitive behavior under #88562 and the maintainer-owned direction in #87166. This branch strips configured and merge-preserved plaintext Closing this older competing implementation so the marker, migration, request-auth, and both-output behavior can be designed and proved together. The underlying issue remains open in #88562. Thank you for the regression cases and proof. |
Summary
Refs #11829
Verification
Real behavior proof
Behavior addressed: Generated models.json no longer persists plaintext provider apiKey values from active config or old merge-mode models.json entries.
Real environment tested: Windows 11/PowerShell, Node v23.11.0, pnpm 11.1.0, local OpenClaw source checkout.
Exact steps or command run after this patch:
Evidence after fix: Terminal output from a local OpenClaw source checkout invoking the patched models.json planner. The command used a fake plaintext provider apiKey value and printed the generated provider JSON after the patch:
{ "action": "write", "providerKeys": [ "custom" ], "customHasApiKey": false, "planContainsPlaintext": false, "modelIds": [ "proof-model" ], "writtenModelsJson": { "providers": { "custom": { "baseUrl": "https://example.invalid/v1", "api": "openai-responses", "models": [ { "id": "proof-model", "name": "Proof Model", "input": [ "text" ], "reasoning": false, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 8192, "maxTokens": 2048 } ] } } } }Observed result after fix: The command exited 0. The generated provider JSON contains the custom provider and model, but
customHasApiKeyis false andplanContainsPlaintextis false, confirming the plaintext apiKey was not written into models.json.What was not tested: Full suite, live gateway/model provider calls, and cross-platform Testbox/Crabbox proof.