File tree Expand file tree Collapse file tree
integrations/aws-strands/typescript/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments