From f595baec06175aa2724e08a68f8d5b634880a19d Mon Sep 17 00:00:00 2001 From: jens-gilion Date: Mon, 23 Feb 2026 20:46:06 +0100 Subject: [PATCH] fix: encode ActivityOptions.summary as json/plain payload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The LocalActivityOptions path already does this correctly — this just aligns the two. --- crates/sdk/src/workflow_context/options.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/crates/sdk/src/workflow_context/options.rs b/crates/sdk/src/workflow_context/options.rs index 7a18671b5..5f8f42fd3 100644 --- a/crates/sdk/src/workflow_context/options.rs +++ b/crates/sdk/src/workflow_context/options.rs @@ -108,10 +108,13 @@ impl ActivityOptions { } .into(), ), - user_metadata: self.summary.map(|s| UserMetadata { - summary: Some(s.into()), - details: None, - }), + user_metadata: self + .summary + .and_then(|s| s.as_json_payload().ok()) + .map(|summary| UserMetadata { + summary: Some(summary), + details: None, + }), } } }