Repository navigation
fix(ci): render empty tuple SDK defaults - #157183
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 24, 2026, 5:35 AM ET / 09:35 UTC. ClawSweeper reviewWhat this changesThe branch lets the Plugin SDK API report render public function signatures with empty tuple generic defaults and tests a re-exported function with that signature. Merge readiness✅ Ready for maintainer review Keep open. Current main still uses the compiler flags that the reported SDK API render cannot handle, and this focused PR addresses that path with a regression test and a measured full-report run. Priority: P2 Review scores
Verification
How this fits togetherThe Plugin SDK API report reads public SDK entrypoints through TypeScript and renders their declarations for API change checks. Its output feeds tooling checks; this change does not alter plugin runtime behavior. flowchart LR
A[Public SDK entrypoints] --> B[TypeScript project]
B --> C[Function signature rendering]
C --> D[SDK API report]
D --> E[API change check]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +1, Tests +17. Total +18 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the compiler-backed SDK API report able to render valid declarations while preserving its API change detection. Do we have a high-confidence way to reproduce the issue? Yes, at the source level: current main reaches the function-signature printer without the empty-tuple flag, and the PR supplies a focused fixture and a reported pre-fix full-render failure. This read-only review did not execute the renderer. Is this the best way to solve the issue? Yes. Adding the compiler flag at the function-signature call is a narrow repair, and the fixture tests the public report path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6e008165e1e8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash auto-merge.
|
What Problem This Solves
Fixes the Plugin SDK API report crashing when a public function has a generic type parameter whose default is an empty tuple, including
buildGroupEntrySchema.User Impact
The SDK report can render these valid public signatures and continue detecting API changes. There is no runtime behavior, dependency, or public API change.
Why This Change Was Made
TypeScript's native signature builder needs
AllowEmptyTupleto represent this default. Add that flag only to the function-signature call, preserving the existing compiler rendering and failure checks.Evidence