Skip to content

Commit af08551

Browse files
authored
Merge pull request #2613 from ag-ui-protocol/claude/unruffled-benz-211252
docs(aws-strands): correct the concurrent-run comment on _activeRunsByThread
2 parents ada29f2 + f845954 commit af08551

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

  • integrations/aws-strands/typescript/src

integrations/aws-strands/typescript/src/agent.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2136,9 +2136,12 @@ export class StrandsAgent {
21362136
* Threads with an in-flight run. Strands `Agent.stream()` throws if a
21372137
* second invocation is started on a busy agent; we detect the collision
21382138
* up front and emit a protocol-shaped RUN_ERROR/THREAD_BUSY instead.
2139-
* Python guards the same collision with the same code and the same text,
2140-
* but only around an orchestrator, and keyed by thread only when a factory
2141-
* builds one per run; its single-agent path has no guard of its own.
2139+
* Python refuses the same per-thread collision before entering its own run
2140+
* body, with the same code and the same message text. It additionally
2141+
* guards a shared orchestrator instance across every thread, since such an
2142+
* instance cannot be multiplexed at all; that arm narrows back to per-thread
2143+
* when a callable builds a fresh orchestrator per run. It also refuses a run
2144+
* against an orchestrator parked at an interrupt.
21422145
*/
21432146
private readonly _activeRunsByThread = new Set<string>();
21442147
/** Outstanding AG-UI interrupt objects per thread, used to validate

0 commit comments

Comments
 (0)