소스 검색

fix(session): subagents not being clickable (#20263)

Dax 5 달 전
부모
커밋
befbedacdc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/opencode/src/session/prompt.ts

+ 1 - 1
packages/opencode/src/session/prompt.ts

@@ -403,7 +403,7 @@ NOTE: At any point in time through this workflow you should feel free to ask the
             Effect.runPromise(
               Effect.gen(function* () {
                 const match = input.processor.partFromToolCall(options.toolCallId)
-                if (!match || match.state.status !== "running") return
+                if (!match || !["running", "pending"].includes(match.state.status)) return
                 yield* sessions.updatePart({
                   ...match,
                   state: {