You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(openapi): restore empty-resources guard to prevent job-worker early reply
Without the guard a job-type worker (resources.size === 0) responds to
RESOURCE_OPENAPI_REQUEST before an app worker, silently returning an empty
spec — identical to the original bug (#299).
Restores the early-return guard so only a worker that actually owns resources
replies. When no worker has resources the caller receives a 503 after the
timeout, which is more honest than an empty spec.
Also fixes the unit tests to properly exercise the guard and the happy-path:
- 'does not respond when this thread has no registered resources' verifies the guard
- Send/drop tests populate the resources map with a minimal skippable entry
(isError: true) so Resources.set() wraps it correctly for generateJsonApi
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments