[Bug] ExecuteCopilotAsyncV2 does not work with the New Github Copilot harness agents in Copilot Studio #434
renewables-blake-burns34
started this conversation in
Ideas
Replies: 2 comments 1 reply
|
Thanks for the detailed report. You've correctly identified the root cause. Agents created via the new GitHub Copilot harness experience run on a different runtime than what the This is a known limitation. Classic Standard harness agents remain the supported path for now. We don't have a timeline to share on when the connector will support the new runtime, but we'll update this thread if that changes. |
1 reply
|
Moving this thread to the Ideas section |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
After adding the Copilot Studio connector using 'pac code add-data-source -a "shared_microsoftcopilotstudio" -c ', the "Execute Agent and wait" action returns "Enhanced task completion preview has ended" for new Github Copilot harness Copilot Studio agents. Standard harness agents work fine.
Steps to Reproduce
pac code add-data-source -a "shared_microsoftcopilotstudio" -c <connectionId>Swap only the agent schema name between the two runs.
Expected behavior
Agent returns a response message in the "responses" array for the json payload.
{ "responses": [ "This is a typical normal response from the AI agent" ], "conversationId": "<guid>", "completed": false, "isExpectingInput": false }Actual behavior
{ "responses": [ "**Enhanced task completion preview has ended. Go to copilotstudio.microsoft.com and republish the agent.**" ], "conversationId": "<guid>", "completed": false, "isExpectingInput": false }Screenshots or Error Messages
Environment information
-| Connector |
shared_microsoftcopilotstudio(Microsoft Copilot Studio) || Action |
ExecuteCopilotAsyncV2— "Execute Agent and wait" || Caller | Power Apps code app,
@microsoft/power-appsgenerated SDK, running in the deployed player |Additional context
| Agent A | created in the new Github Copilot harness agent experience →
bot.template = cliagent-1.0.0|| Agent B | created in the classic Standard experience →
bot.template = default-2.1.0|Both agents live in the same environment, are published, and are called through the same
connection with the same code. Only the agent name changes between the two runs.
Probable mechanism
The connector action posts to the classic Power Virtual Agents dataverse-backed runtime:
New-experience agents appear to run on a different service — the agentic runtime. The connector
exposes that path only through operations marked
x-ms-visibility: internal, and only a continueoperation:
described in the swagger as "Continues a conversation on the Agentic Runtime service (mcs-dracarys)
to resume a parked turn (e.g. autonomous token refresh)."
There is no public connector operation that starts a turn on the agentic runtime. That would
explain why the classic runtime answers on the new agent's behalf with a stub.
All reactions