Pārlūkot izejas kodu

docs: name the public agent injection seam

Tianyi Cui 3 mēneši atpakaļ
vecāks
revīzija
ba8a5c89ed
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      packages/bash/tool-bash/src/index.ts

+ 1 - 1
packages/bash/tool-bash/src/index.ts

@@ -457,7 +457,7 @@ export function apply(ctx: Context): void {
       )
     } catch (error: unknown) {
       // The ONE expected failure: the agent was disposed between task
-      // completion and this injection (ReactLoopAgent.inject throws
+      // completion and this injection (Agent.inject throws
       // `agent "<id>" is disposed`). That race is benign — drop the notice.
       // Anything else is a real bug and must surface, not be swallowed.
       if (error instanceof Error && error.message.includes('is disposed')) return