Skip to content

Commit 733226d

Browse files
committed
chore: generate
1 parent e8b0a65 commit 733226d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/opencode/src/acp/agent.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -689,11 +689,7 @@ export namespace ACP {
689689
}
690690
} else if (part.type === "text") {
691691
if (part.text) {
692-
const audience: Role[] | undefined = part.synthetic
693-
? ["assistant"]
694-
: part.ignored
695-
? ["user"]
696-
: undefined
692+
const audience: Role[] | undefined = part.synthetic ? ["assistant"] : part.ignored ? ["user"] : undefined
697693
await this.connection
698694
.sessionUpdate({
699695
sessionId,
@@ -975,7 +971,8 @@ export namespace ACP {
975971
const agent = session.modeId ?? (await AgentModule.defaultAgent())
976972

977973
const parts: Array<
978-
{ type: "text"; text: string; synthetic?: boolean; ignored?: boolean } | { type: "file"; url: string; filename: string; mime: string }
974+
| { type: "text"; text: string; synthetic?: boolean; ignored?: boolean }
975+
| { type: "file"; url: string; filename: string; mime: string }
979976
> = []
980977
for (const part of params.prompt) {
981978
switch (part.type) {

0 commit comments

Comments
 (0)