@@ -80,7 +80,6 @@ const isCompactCommandMessage = (message: ThreadTitleMessage): boolean =>
8080 message . role === "user" &&
8181 ( message . attachments ?. length ?? 0 ) === 0 &&
8282 message . text . trim ( ) . toLowerCase ( ) === "/compact" ;
83-
8483function mapProviderSessionStatusToOrchestrationStatus (
8584 status : "connecting" | "ready" | "running" | "error" | "closed" ,
8685) : OrchestrationSession [ "status" ] {
@@ -1240,7 +1239,6 @@ const make = Effect.gen(function* () {
12401239 const detail = formatFailureDetail ( cause ) ;
12411240 return appendTurnStartFailure ( "Context compaction failed" , detail ) . pipe ( Effect . asVoid ) ;
12421241 } ;
1243-
12441242 const recoverCompactionFailure = ( cause : Cause . Cause < unknown > ) =>
12451243 handleCompactionFailure ( cause ) . pipe (
12461244 Effect . catchCause ( ( recoveryCause ) =>
@@ -1252,7 +1250,6 @@ const make = Effect.gen(function* () {
12521250 } ) ,
12531251 ) ,
12541252 ) ;
1255-
12561253 if ( isCompactCommand ) {
12571254 if ( nonCompactUserMessageCount === 0 ) {
12581255 return yield * appendTurnStartFailure (
@@ -1292,14 +1289,12 @@ const make = Effect.gen(function* () {
12921289 ) ;
12931290 return ;
12941291 }
1295-
12961292 if ( compactingThreadIds . has ( event . payload . threadId ) ) {
12971293 return yield * appendTurnStartFailure (
12981294 "Provider turn start failed" ,
12991295 "Wait for context compaction to finish before sending another message." ,
13001296 ) ;
13011297 }
1302-
13031298 const sendTurnRequest = yield * buildSendTurnRequestForThread ( {
13041299 threadId : event . payload . threadId ,
13051300 messageText : message . text ,
0 commit comments