diff options
| author | GitHub Action <[email protected]> | 2026-01-20 16:11:56 +0000 |
|---|---|---|
| committer | GitHub Action <[email protected]> | 2026-01-20 16:11:56 +0000 |
| commit | 733226de9d04b15d887799bc1ad9d06e2bef2724 (patch) | |
| tree | a488a7d98bbc1a852c07f101348a3ef70eaa92f3 | |
| parent | e8b0a65c6301903956476e590d9976a33253e138 (diff) | |
| download | opencode-733226de9d04b15d887799bc1ad9d06e2bef2724.tar.gz opencode-733226de9d04b15d887799bc1ad9d06e2bef2724.zip | |
chore: generate
| -rw-r--r-- | packages/opencode/src/acp/agent.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/opencode/src/acp/agent.ts b/packages/opencode/src/acp/agent.ts index 9d05a6793..130d61d86 100644 --- a/packages/opencode/src/acp/agent.ts +++ b/packages/opencode/src/acp/agent.ts @@ -689,11 +689,7 @@ export namespace ACP { } } else if (part.type === "text") { if (part.text) { - const audience: Role[] | undefined = part.synthetic - ? ["assistant"] - : part.ignored - ? ["user"] - : undefined + const audience: Role[] | undefined = part.synthetic ? ["assistant"] : part.ignored ? ["user"] : undefined await this.connection .sessionUpdate({ sessionId, @@ -975,7 +971,8 @@ export namespace ACP { const agent = session.modeId ?? (await AgentModule.defaultAgent()) const parts: Array< - { type: "text"; text: string; synthetic?: boolean; ignored?: boolean } | { type: "file"; url: string; filename: string; mime: string } + | { type: "text"; text: string; synthetic?: boolean; ignored?: boolean } + | { type: "file"; url: string; filename: string; mime: string } > = [] for (const part of params.prompt) { switch (part.type) { |
