Repository navigation
test(diffs): remove private icon source mirrors - #124196
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Looks good—removes brittle implementation-detail tests while preserving the meaningful security, functional, and architecture coverage. No user-facing behavior change. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 11:33 AM ET / 15:33 UTC. ClawSweeper reviewWhat this changesThe PR deletes two Diffs viewer tests that enumerate private toolbar icon names and removed helper-function names. Merge readinessNo blocking findings. This focused test cleanup removes implementation-name inventories while retaining the viewer’s typed icon path and behavioral toolbar coverage; it remains open for normal maintainer handling because it is maintainer-authored and carries the protected Priority: P3 Review scores
Verification
How this fits togetherThe Diffs plugin renders diff input into HTML cards and a browser-loaded viewer hydrates those cards into interactive diffs. The viewer’s toolbar changes display settings, while the surrounding tests cover hydration, toolbar actions, and image-mode behavior. flowchart LR
A[Diff input] --> B[Diff renderer]
B --> C[HTML cards and payload]
C --> D[Viewer runtime]
D --> E[Interactive toolbar]
E --> F[Rendered diff]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -32. Total -32 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the behavior- and safety-oriented viewer coverage while omitting tests whose only contract is the current private icon inventory or retired helper names. Do we have a high-confidence way to reproduce the issue? Not applicable: this is test-maintenance cleanup, not a report of broken runtime behavior. Is this the best way to solve the issue? Yes. Removing the two name-based assertions is the narrowest maintainable path because typed production code and behavioral toolbar tests still cover the relevant contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7ce902c8b600. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for
Production delta: 0. Tests: -32. No behavior, docs, config, schema, protocol, dependency, or changelog change. |
|
Merged via squash.
|
|
Land-ready proof for
Production delta: 0. Tests: -32. No behavior, docs, config, schema, protocol, dependency, or changelog change. |
What Problem This Solves
Removes two Diffs viewer tests that copy private implementation details from
viewer-client.ts:Both tests fail under harmless internal refactors without detecting a user-visible or security regression.
Why This Change Was Made
The meaningful security and behavior coverage remains:
iconMarkup: stringis still forbidden;innerHTMLmust still read from the sealedtoolbarIconSvglookup;The deleted cases preserve only the current names and refactor shape.
User Impact
No behavior change. The Diffs viewer retains its security guards and functional toolbar coverage with less source coupling.
Evidence
extensionTestschanged gate passed through the documented trusted-source local fallback because no Crabbox/Testbox provider was ready. Typecheck, formatting, lint, dead-export scans, plugin boundaries, and architecture guards passed.git diff --checkpassed.Production delta: 0. Tests: -32. No docs, config, schema, protocol, dependency, or changelog change.
AI-assisted: yes.