Skip to content

[Bug]: withSuggestedActions only works with context.send, but not with context.stream.emit #495

Description

@Mutantpenguin

Bug Description

No suggestions are shown when using emit. I can't see any error in the logs.

Steps to Reproduce

const msg = new MessageActivity("fnord");
msg.withSuggestedActions({
		to: [context.activity.from.id],
		actions: [
			{
				title: "123",
				value: "123",
				type: "imBack",
			},
		],
	});

// context.send(msg);  <- this works
// context.stream.emit(msg); <- this doesn't work

Expected Behavior

The suggestions are always shown.

At least the documentation of the toolkit (during runtime) should tell me, if it's only supported for send by design.

Actual Behavior

No suggestions to be seen.

SDK Version

2.0.5, 2.0.6

Node.js Version

20.20.0

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions