Skip to content

Conversation

@bergundy
Copy link
Member

What changed?

  • Move the CHASM / Nexus code back into the chasm package.
  • Remove wrong and unused callback Archetype constant.
  • Read the callback header using the case insensitive header util from the Nexus SDK.

How did you test it?

  • covered by existing tests

@bergundy bergundy requested review from a team as code owners November 24, 2025 20:53
// callbacks. Particularly useful for components that want to track a workflow start with StartWorkflowExecution.
func GenerateNexusCallback(ctx Context, component Component) (*commonpb.Callback, error) {
if _, ok := component.(NexusCompletionHandler); !ok {
return nil, errors.New("component must implement HandleNexusCompletion")
Copy link
Contributor

Choose a reason for hiding this comment

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

Didn't catch this on my PRs, but this error message looks wrong

Suggested change
return nil, errors.New("component must implement HandleNexusCompletion")
return nil, errors.New("component must implement NexusCompletionHandler")

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, that's fine because it's the name of the single method but I just changed this to a compile time check instead.

"google.golang.org/protobuf/types/known/timestamppb"
)

const (
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did this get removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Mentioned in the description, it was unused and had the wrong value.

@bergundy bergundy force-pushed the nexus-chasm-cleanup branch from f4acfd1 to d8e3d03 Compare November 24, 2025 22:40
@bergundy bergundy force-pushed the nexus-chasm-cleanup branch from d8e3d03 to 8a58574 Compare November 24, 2025 22:44
@bergundy bergundy merged commit a80b487 into temporalio:main Nov 25, 2025
127 of 135 checks passed
@bergundy bergundy deleted the nexus-chasm-cleanup branch November 25, 2025 17:40
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