Files
twenty/packages
Sonarly Claude Code 4c6561f964 SSE mutations missing from metadata GraphQL schema
https://sonarly.com/issue/3085?type=bug

The WorkspaceEventEmitterResolver (containing addQueryToEventStream and removeQueryFromEventStream mutations) was decorated with @MetadataResolver() but its module was never imported into MetadataGraphQLApiModule, making these mutations invisible to both the metadata and core GraphQL schemas.

Fix: 1. Add WorkspaceEventEmitterModule to the imports of MetadataGraphQLApiModule. This makes the resolver discoverable by the metadata schema scan, and since it is decorated with @MetadataResolver() (scope 'metadata'), it will be included in the /metadata GraphQL schema where the frontend expects it.
2. In the frontend SSEQuerySubscribeEffect, replace the throw in the default error case with console.error and sync activeQueryListeners to requiredQueryListeners. This prevents an unhandled exception and infinite retry loop if an unexpected GraphQL error occurs on these mutations.
2026-02-20 03:58:43 +00:00
..
2026-02-18 23:34:36 +01:00
2026-02-18 23:34:36 +01:00