Skip to content

Add properties for messages in chat client sdk. - #1246

Merged
Zhenghui Yan (vwxyzh) merged 4 commits into
Azure:mainfrom
vwxyzh:z/chat
Oct 30, 2026
Merged

Zhenghui Yan (vwxyzh) merged 4 commits into
Azure:mainfrom
vwxyzh:z/chat

Conversation

@vwxyzh

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block approval of the optional message-properties changes.

No open issues 🎉

What changed in this PR

Adds optional message properties to the chat client SDK, carrying mentions, reply targets, and metadata through sendToRoom requests and sender-local message events.

Changes:

  • Adds nullable mentions, replyTo, and metadata send options.
  • Aligns message models, schemas, and the public API with the updated properties, including renaming refMessageId to replyTo.
  • Documents usage and adds tests for omitted, null, and empty properties alongside cancellation forwarding.
File Description
sdk/​webpubsub-chat-client/​tests/​lifecycle.test.ts Tests property forwarding and local message events.
sdk/​webpubsub-chat-client/​swagger/​openapi.yaml Updates message schemas and replaces legacy fields.
sdk/​webpubsub-chat-client/​src/​options.ts Defines optional message properties for sending.
sdk/​webpubsub-chat-client/​src/​models.ts Adds mentions and renames the reply reference.
sdk/​webpubsub-chat-client/​src/​generatedTypes.ts Synchronizes generated types with schema changes.
sdk/​webpubsub-chat-client/​src/​chatClient.ts Includes properties in outgoing messages and local events.
sdk/​webpubsub-chat-client/​review/​web-pubsub-chat-client.api.md Updates the public API snapshot.
sdk/​webpubsub-chat-client/​README.md Documents options, examples, and nullable values.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 30, 2026 02:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the chat SDK’s mention and reply support changes.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 30, 2026 03:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the SDK’s mention and reply support changes.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 30, 2026 03:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block approval of the mention and reply support changes.

No open issues 🎉

Review effort: Balanced

@vwxyzh
Zhenghui Yan (vwxyzh) merged commit b518422 into Azure:main Oct 30, 2026
9 checks passed
@vwxyzh
Zhenghui Yan (vwxyzh) deleted the z/chat branch October 30, 2026 04:32
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.

4 participants