web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Agent node never recei...
Copilot Studio
Answered

Agent node never receives completed agent response - flow hangs indefinitely, no error

(0) ShareShare
ReportReport
Posted on by 2
I have a Copilot Studio agent flow that calls a Copilot Studio agent twice, via two agent nodes. It ran reliably from August until 7 September. Since then roughly 80% of runs hang.
Symptom: the agent node sits at "Running" indefinitely. No output, no error, no timeout. One run sat for 16h 32m and another for 15 hours before I cancelled them.
The odd part: in Copilot Studio > the agent > History, the corresponding session shows Completed, and contains the full, valid JSON response. So the agent does the work and produces the correct answer — the flow just never receives it.
Details:
- Both agent nodes are affected. They call the same agent with different prompts and different output structures.
- Output mode on the nodes is "Text response".
- The agent reasons out loud at some length before emitting its JSON.
- Reports that need little reasoning succeed. Ones needing more hang.
- The identical task works every time when I run it interactively in the Test panel (Preview channel). Only the Autonomous channel fails.
Already ruled out:
- No change to the flow. Version history shows no edit between 18 August and 7 September, and the same version ran 9 of 12 successfully on 2-3 Sept.
- Rebuilt and split the flow, so the agent node now runs as the second action of a clean run with no preceding loop. No difference.
- Input payload size — 5,700 characters succeeded, 6,509 failed.
- Reducing the requested output size via the prompt didn't help.
- Knowledge source access and SharePoint permissions verified.
- No sessions in "Auth required". Capacity within limits.
- Express mode isn't available in this environment.
Questions:
1. Has anyone seen a completed agent response fail to reach the calling agent node?
2. Does "Text response" expect a single reply? If the agent produces several messages before its final answer, could the node fail to resolve which one is the response? I'm currently testing "Custom structured output".
3. Is there any way to set a timeout on an agent node? The only setting exposed is Moderation level.
4. Did anything change server-side around 5-7 September 2026?
  • Suggested answer
    Mohsin Ali Profile Picture
    1,075 on at
    Hello @mart056 - This seems to be a recurring issue and already reported in the community, you can refer to the thread: https://community.powerplatform.com/forums/thread/details/?threadid=53353411-5aac-f111-aaac-6045bdff20d7
     
    However, since you have already rolled out all possible troubleshooting steps. So what I can recommend now is to create a support ticket with Microsoft to seek assistance. 
     

  • Sam_Fawzi Profile Picture
    1,150 Super User 2026 Season 1 on at
    Hey @mart056,
     
    Excellent bug report. Two things to add.
     
    On question 4, there is a candidate date. The agent node reached general availability on 1 September 2026. Your failures start around 5 to 7 September, which is right after a GA transition. GA rollouts land progressively across regions, so an environment can pick up the new build days after the announced date. That fits your timeline better than a coincidence, and it also explains why nothing in your flow changed. Worth including in the support ticket, since "started failing days after the node went GA" is a stronger opening than "started failing on 7 September."

    On question 2, your instinct is right and it is also the thing I would fix regardless. The correlation you found is the useful part: reports needing more reasoning hang, ones needing little reasoning succeed. That is not a payload problem, which is consistent with your 5,700 versus 6,509 result not being a clean threshold and with reducing output size not helping.
     
    An agent reasoning out loud emits multiple messages before its final answer. Text response mode has to decide which one is the response. I have hit the same class of problem in a different context, agents narrating before emitting JSON, and it breaks downstream consumption in ways that look like a transport failure rather than a formatting one.
     
    Two changes, and I would make both:

    Instruct the agent to emit only the JSON, with no preamble, no explanation, and no commentary before or after. Put that in the agent instructions rather than in the node prompt. This is worth doing even after the underlying bug is fixed, because a single terminal message is a more reliable contract than a stream the node has to interpret.

    Then switch to Custom structured output as you are already planning. That changes the contract so the node waits for a defined schema rather than inferring which message is the answer. If the hangs stop, you have both a workaround and strong evidence for the ticket about where the failure sits.
    On question 3, there is no timeout setting on the agent node, you are right that Moderation level is all that is exposed. Practical mitigation in the meantime: a separate scheduled flow using the Power Automate Management connector to list running flow runs and cancel any past a threshold. Not elegant, but 16-hour hangs are holding concurrency slots and may be consuming capacity, so worth doing before the ticket resolves.
     
    One diagnostic worth running. If you can select the model on that agent, try a non-reasoning model for one of the failing reports. If it completes, that pins the failure to reasoning output volume rather than anything about your prompts or payload, which is exactly the isolation the support engineer will want.
     
    Also worth checking the Copilot Agent Kit's Agent Debugger. The August release added channel filtering and improved duration formatting, which may give you a clearer view of where the Autonomous channel run stalls than the session history does.
  • Verified answer
    M Bilal Khan Profile Picture
    384 on at

    The details you've provided make this look less like an agent execution failure and more like a response handoff problem between the called agent and the agent node.

    The strongest evidence is:

    • Copilot Studio History shows the called agent as Completed.
    • The expected JSON is present in that session.
    • The calling agent node remains Running instead of receiving the response.
    • The same task works in the Preview/Test channel.
    • Shorter/easier reasoning succeeds more often.
    • Both agent nodes show the same behavior.
    • There was no flow change before the issue started.

    1. Text response is not expecting you to manually select one of several messages

    The current agent-node documentation describes Text response as a single string returned by the agent. Structured and Custom structured output are intended for cases where the workflow needs predictable machine-readable fields.

    So I wouldn't expect the node to hang simply because the agent internally produces several reasoning/messages before its final answer.

    That said, given your symptoms, I would absolutely test Custom structured output because your downstream contract is JSON anyway.

    For example, instead of asking the agent to generate free-form text containing JSON:

    "Return the result as JSON..."
    

    define an explicit schema such as:

    {
      "status": "string",
      "summary": "string",
      "items": []
    }
    

    Then let the agent node return the structured object directly.

    If Custom structured output succeeds consistently where Text response hangs, that would be very useful evidence that the problem is in the response serialization/transport path rather than the agent's reasoning.

    2. The input-size threshold is interesting, but I wouldn't call 6,509 characters a documented limit

    Your 5,700-character success / 6,509-character failure is a useful diagnostic observation, but I wouldn't conclude that 6,509 is the actual Copilot Studio limit.

    The more interesting correlation is:

    larger input → more reasoning → higher probability that the response never resolves in the Autonomous agent node.

    I'd therefore test a matrix such as:

    5,000 chars + simple reasoning
    5,000 chars + complex reasoning
    
    6,500 chars + simple reasoning
    6,500 chars + complex reasoning
    

    If complexity is the determining factor rather than raw characters, that points even more strongly toward a runtime/response-handling issue.

    3. I don't see a documented per-agent-node timeout setting

    The current Agent Node documentation says the workflow waits for the agent to complete, and then exposes the agent response to subsequent workflow steps. It doesn't document a configurable timeout property for the node.

    So I wouldn't expect the Moderation setting to control this.

    The fact that you can get 15–16 hour runs is particularly abnormal. Even if the underlying agent runtime is slow, an orchestration call remaining Running for that long without either a response or a failure is not something I'd treat as normal expected behavior.

    4. Be careful not to confuse this with the 100-second flow limit

    There is a separate documented 100-second limit for an agent flow that is called as a tool by an agent and uses a synchronous Respond to the agent action.

    That's not necessarily the same scenario as your Run an agent / Agent node.

    For the Agent Node itself, Microsoft's documentation describes the workflow as waiting for the agent to complete and then consuming its response.

    So I would not use the 100-second limit alone to explain a node that remains Running for 16 hours.

    5. Your Autonomous vs Preview comparison is probably the most valuable clue

    I'd make this the core of a Microsoft support ticket:

    Same agent
          │
          ├── Preview/Test → succeeds
          │
          └── Autonomous → frequently remains Running
                                  │
                                  └── Called agent History = Completed
                                      Response = valid JSON
    

    That indicates the called agent is capable of completing the work, but the autonomous workflow isn't consistently receiving/settling the resulting response.

    I'd capture the following from both a successful and failed run:

    • parent workflow run ID
    • called-agent session/conversation ID
    • timestamps for both
    • agent node input size
    • output mode
    • whether the called agent shows Completed
    • exact response visible in agent History
    • time at which the parent node entered Running
    • environment ID
    • agent IDs
    • whether the failing runs are always Autonomous

    One experiment I'd definitely run

    Create a minimal copy of the called agent with:

    No knowledge sources
    No tools
    Very short instructions
    One simple prompt
    Custom structured output
    

    Then call it from the same Autonomous agent node.

    If that succeeds 100% of the time, add the complexity back in this order:

    Simple agent
       ↓
    + structured output
       ↓
    + knowledge
       ↓
    + larger input
       ↓
    + complex reasoning
    

    The step where the failure starts should give you a much better signal than rebuilding the entire flow again.

    Also, Microsoft explicitly documents that the agent node's output can be consumed as either a single text response or structured fields, so moving to Custom structured output is a sensible diagnostic test, not just a workaround.

    Given that this changed around 7 September 2026 without a flow change, and the backend agent itself is completing successfully, I'd be hesitant to make more architectural changes until that minimal reproduction is tested. If the minimal Autonomous agent still produces Completed in History but leaves the calling node Running, I'd escalate that as a platform/runtime regression in Autonomous agent-node response handoff rather than an agent prompt or SharePoint problem.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Copilot Studio

#1
Mohsin Ali Profile Picture

Mohsin Ali 356

#2
Valantis Profile Picture

Valantis 253 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 179 Super User 2026 Season 2

Last 30 days Overall leaderboard