Skip to content

fix: send unknown System Nexus operations to the generic interceptor hook - #2001

Draft
moetemp wants to merge 3 commits into
temporalio:mainfrom
moetemp:moe/upstream/system-nexus-fallthrough
Draft

moetemp wants to merge 3 commits into
temporalio:mainfrom
moetemp:moe/upstream/system-nexus-fallthrough

Conversation

@moetemp

@moetemp moetemp commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What was changed

This PR sets nexgen to 0.2.11 and regenerates the System Nexus bindings. The generated dispatch then passes an operation it didn't generate to start_system_nexus_operation on the Workflow outbound interceptor, instead of raising ValueError. The other changes in the generated files come from the new nexgen version.

Why?

An outbound interceptor can serve its own System Nexus service through WorkflowOutboundInterceptor.start_system_nexus_operation. The generated dispatch raised unsupported System Nexus operation before that hook ran, so such a service couldn't work in Python.

This depends on temporalio/nexgen#260 and the first nexgen release with it, 0.2.11. Until that release exists, check-protos fails because it can't install nexgen 0.2.11.

Checklist

  1. How was this tested: tests/nexus/test_system_nexus_fallthrough.py starts an operation of a service that the SDK didn't generate, and an interceptor completes it. It fails on main with unsupported System Nexus operation and passes with this change. I also ran poe lint and the full suite.

  2. Any docs updates needed? No.

The generated dispatch raised for an operation that it did not generate, so an outbound interceptor could not serve its own System Nexus service. nexgen 0.2.10 passes such an operation to start_system_nexus_operation, so the pin moves to it and the bindings are regenerated.
nexgen 0.2.10 is already released without the fall-through, so check-protos would install it and get other output.
@CLAassistant

CLAassistant commented Oct 21, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@moetemp moetemp changed the title Sent unknown System Nexus operations to the generic interceptor hook. fix: send unknown System Nexus operations to the generic interceptor hook Oct 22, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants