SuggestedActionSubmitActivity for suggestedAction/submit invoke#591
Merged
singhk97 merged 3 commits intoMay 26, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds support for the suggestedActions/submit invoke produced by Action.Submit suggested-action chips, including routing aliases, API typings, and an end-to-end example.
Changes:
- Add
suggestedActions/submit→suggested-action.submitinvoke alias and router selection test. - Introduce API model/types for suggested-action submit invoke activities and responses.
- Add a runnable
examples/suggested-actionsample demonstrating authoringAction.Submitchips and handling the invoke.
Reviewed changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/apps/src/routes/invoke/index.ts | Adds invoke alias for suggestedActions/submit routing. |
| packages/apps/src/router/router.spec.ts | Adds a unit test verifying route selection for suggested-action submit invokes. |
| packages/api/src/models/invoke-response.ts | Extends invoke response body map with suggestedActions/submit. |
| packages/api/src/models/card/card-action.ts | Adds Action.Submit to the card action type union. |
| packages/api/src/activities/invoke/suggested-action-submit.ts | Introduces a new invoke activity interface for suggested-action submits. |
| packages/api/src/activities/invoke/suggested-action-submit.spec.ts | Adds tests validating the new activity wire shape. |
| packages/api/src/activities/invoke/index.ts | Wires the new activity into the exported invoke activity union and exports. |
| examples/suggested-action/tsconfig.json | Adds TS config for the new example. |
| examples/suggested-action/src/index.ts | Demonstrates sending suggested-action chips and handling the resulting invoke. |
| examples/suggested-action/package.json | Defines dependencies/scripts for the new example package. |
| examples/suggested-action/eslint.config.js | Adds ESLint config for the new example. |
| examples/suggested-action/README.md | Documents example behavior and how to run it. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
corinagum
reviewed
May 22, 2026
corinagum
reviewed
May 22, 2026
corinagum
left a comment
Collaborator
There was a problem hiding this comment.
Looks like this branch may need a rebase/fresh install :)
corinagum
reviewed
May 22, 2026
corinagum
approved these changes
May 26, 2026
singhk97
approved these changes
May 26, 2026
7 tasks
corinagum
added a commit
that referenced
this pull request
May 27, 2026
## Summary
Brings `origin/main` into `release` for the **2.0.12** release. **No
carve-outs this time** — Quoted Replies is included.
`version.json`: `2.0.12-preview.{height}` → `2.0.12`.
Aligns with teams.py 2.0.12 (PR #442 already on PyPI / pending publish).
## What's in this release (delta from 2.0.11)
**Features**
- Quoted Replies + new quotes features — previously held back via the
2.0.11 carve-out (#576)
- SuggestedActionSubmitActivity for `suggestedAction/submit` invoke
(#591)
- Default targeted replies for targeted inbound messages (#592)
- Filter colliding keys before `Object.assign` in `ActivityContext`
(#596)
- Prompt Preview support (#536)
- A2A sample (#584)
- AI/MCPClient (#572)
- Allow passing custom HTTP client via `AppOptions`-equivalent
- Reactions API marked GA (#575), Rename `ReactionClient.remove()` →
`delete()` (#567)
**Security & fixes**
- Security hardening: tighten cross-origin policies (#595)
- Lock JsonWebToken trust-boundary contract (#586)
- `fix(deps)`: npm audit fix — clears all high-severity advisories
(#599)
- `fix(apps)`: log inbound activities at info, warn on missing
Authorization (#568)
- `fix`: App user-agent merging (#573)
- `fix`: Add null checks in `local-memory.ts` to prevent role crash
(#438)
- `fix`: `@microsoft/teams.client` import error in webpack 5 (#566)
- Switch to named imports without subpaths (#561)
**Deprecations / package changes**
- Deprecate `DevtoolsPlugin` in favor of Microsoft 365 Agents Playground
(#593)
- Remove in-repo Teams CLI package (#580) — moved to
`teams-sdk/packages/cli`
- Deprecate AI Libraries (#588)
- Correct imports + return types in misc. packages (#589)
**Dependency bumps**
- turbo 2.8.11 → 2.9.14 (#587)
- qs 6.15.0 → 6.15.2 (#594)
- hono 4.12.14 → 4.12.16 (#562)
- npm audit fix bundle (#599): axios 1.13.5 → 1.16.1, fast-uri 3.1.0 →
3.1.2, ws 8.19.0 → 8.21.0, @azure/msal-node hoisted 5.2.2, uuid 11.1.0 →
11.1.1, @azure/identity 4.13.0 → 4.13.1, express-rate-limit, ip-address,
brace-expansion, etc.
## Quoted Replies inclusion notes
- Teams client rendering is in-sync with the wire format as of
2026-05-06.
- APX QR rollout completed: Public 2026-04-10, GCCH/DoD/Gallatin
2026-04-14.
- No SDK-side carve-outs needed; this matches the teams.py 2.0.12 (PR
#442) decision.
## Branch structure note
`prep-release/2.0.12` is reset to `origin/main` + a one-line
`version.json` bump. Diff against `release` (this PR) shows the full
delta from 2.0.11. We deliberately did not use a 2-parent merge commit —
the auto-merge tried to interleave non-overlapping hunks from main's QR
additions with release's QR carve-outs in `activity.ts`, producing a
semantically broken file. Reset-to-main + version bump is the clean way
to express "release should equal main."
## Test plan
- [x] `npm install` clean (post-audit-fix lockfile)
- [x] `npm run build` — 33/33 targets clean
- [x] `npm test` — 14/14 task targets, 279+ tests pass
- [x] E2E echo bot smoke test against `cg-test-bot-py` via canary ABS —
done on `cg/audit-deps-ts` (now merged); covers axios + msal-node code
paths
- [ ] Pipeline Build + Test stages green on `release` after merge
- [ ] Publish pipeline run with **Public** → ESRP → npm
`@microsoft/teams.*@2.0.12`
- [ ] Smoke install: `npm view @microsoft/teams[email protected]` after
publish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for suggestedActions/submit invoke activity - dispatched by the platform when a user clicks an Action.Submit suggested-action click.
ISuggestedActionSubmitInvokeActivityinterface andsuggested-action.submitroute alias.Action.Submitvalue in CardActionType for constructing outbound suggested-action chips.@experimentaluntil the platform feature stabilizes.