File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/opencode/src/acp Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments