Skip to content

fix(clients): forward per-call headers in doWorkflowHandleCall - #814

Merged
slinkydeveloper merged 2 commits into
restatedev:mainfrom
shafiktanbir:fix/clients-workflow-handle-call-headers
Nov 23, 2026
Merged

slinkydeveloper merged 2 commits into
restatedev:mainfrom
shafiktanbir:fix/clients-workflow-handle-call-headers

Conversation

@shafiktanbir

Copy link
Copy Markdown
Contributor

Fixes #813

doWorkflowHandleCall (workflowAttach and workflowOutput) only copied connection-level opts.headers and ignored per-call callOpts?.opts?.headers passed via Opts.from({ headers }), unlike doComponentInvocation (workflowSubmit).

Merges ...(callOpts?.opts?.headers ?? {}) into headers in doWorkflowHandleCall and adds a test in retry.test.ts.

expect(signals[0]?.aborted).toBe(false);
});

it("forwards per-call Opts.from({ headers }) on workflowAttach and workflowOutput", async () => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

please remove this test, not really needed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed, thanks @slinkydeveloper!

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@shafiktanbir

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@slinkydeveloper
slinkydeveloper merged commit e63cd38 into restatedev:main Nov 23, 2026
14 of 15 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ingress workflowClient.workflowAttach and workflowOutput ignore per-call headers passed via Opts.from()

2 participants