Skip to content

fix(plugin): preserve Activity and Nexus client interceptors - #2681

Merged
chris-olszewski merged 5 commits into
temporalio:mainfrom
ShubhSingh:fix/preserve-client-interceptors
Nov 13, 2026
Merged

chris-olszewski merged 5 commits into
temporalio:mainfrom
ShubhSingh:fix/preserve-client-interceptors

Conversation

@ShubhSingh

Copy link
Copy Markdown
Contributor

What changed

When SimplePlugin merges object-based client interceptor options, Activity and Nexus interceptor arrays are dropped. Preserve and append both arrays in existing-before-plugin order, matching Workflow and Schedule. Covers client, worker-client, and replay configuration; adds regression tests and a changelog fragment.

Related to #2031: this fixes interceptor composition only; standalone Activity tracing remains separate.

Verification

Check Result
14 focused AVA cases against checkout source Before: 4 fail; after: 14 pass
Ordering, non-mutation, optional arrays, custom callback Verified
Real server + Activity worker Configured interceptor executes; result preserved
Targeted strict TypeScript check, formatting, diff check Passed

Local tests used an isolated runner with the plugin import pointed at checkout source and released 1.25.0 runtime dependencies. Full workspace build/lint were not completed: Windows symlink restrictions blocked workspace installation, and the type-aware lint executable was unavailable. CI validation is still needed.

@chris-olszewski chris-olszewski self-assigned this Nov 13, 2026

@chris-olszewski chris-olszewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding this & fixing it!

@chris-olszewski
chris-olszewski merged commit fe8c7c5 into temporalio:main Nov 13, 2026
28 checks passed
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