Repository navigation
fix(skills): explain worker resource delivery limits - #164012
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 October 2, 2026, 11:50 PM ET / October 3, 2026, 03:50 UTC. ClawSweeper reviewWhat this changesThe PR gives oversized worker skill deliveries a dedicated error type and shows users fixed guidance to select fewer skills, with boundary and privacy regression coverage. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main still hides the resource-limit recovery guidance. No actionable patch defect was found, and the related upload-reuse PR addresses a distinct problem. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway prepares selected skill instructions and supporting files before launching a worker conversation. Its shared failure renderer turns preparation errors into replies shown to users. flowchart TD
A[Selected skills] --> B[Gateway prepares resources]
B --> C{Within 8 MiB limit?}
C -->|Yes| D[Launch worker conversation]
C -->|No| E[Typed delivery error]
E --> F[Shared failure renderer]
F --> G[Select fewer skills guidance]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +18, Tests +59. Total +77 across 5 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the existing delivery cap and expose its established selection-based recovery through the shared failure renderer. Do we have a high-confidence way to reproduce the issue? Yes, from source: selected bundles totaling more than 8 MiB throw an untyped error on current main, which falls through to generic failure copy without verbose diagnostics. No runtime reproduction was executed in this read-only review. Is this the best way to solve the issue? Yes. Identifying the existing producer failure and rendering constant recovery text is a narrow repair that preserves limits and unrelated diagnostic privacy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7bc45fa2b9e6. 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.
|
What Problem This Solves
Fixes: a worker-backed conversation shows a generic failure when its selected skill resources exceed the 8 MiB delivery limit, hiding the recovery step.
User Impact
User impact: the failure now explains the limit and asks users to select fewer skills before retrying. The delivery cap and supporting resources stay unchanged.
Why This Change Was Made
The Gateway now identifies this prelaunch failure with a dedicated error type. Shared reply rendering shows fixed guidance for that error, including when wrapped as a cause, while unrelated errors retain their existing privacy protections.
Related: #152926 addresses redundant skill uploads; this change only makes the existing size-limit failure actionable.
Evidence
--maxWorkers=1across the resource-delivery and failure-reply suites (20.10 seconds total, including 12.75 seconds of compiler preparation). The resource suite took 2.12 seconds, with about 0.3 seconds in tests.