@@ -200,7 +200,11 @@ function mergeQueuedMessages(items: Array<InternalQueuedMessage>): {
200200 * interrupt payloads do not.
201201 */
202202function readApprovalApproved ( payload : unknown ) : boolean | undefined {
203- if ( payload === null || typeof payload !== 'object' || Array . isArray ( payload ) ) {
203+ if (
204+ payload === null ||
205+ typeof payload !== 'object' ||
206+ Array . isArray ( payload )
207+ ) {
204208 return undefined
205209 }
206210 if ( ! ( 'approved' in payload ) || typeof payload . approved !== 'boolean' ) {
@@ -793,8 +797,8 @@ export class ChatClient<
793797 // `activeResumeRunId`, so match that too.
794798 const isActiveStreamRunTerminal = Boolean (
795799 this . isLoading &&
796- runId &&
797- ( runId === this . activeResumeRunId || runId === this . currentRunId ) ,
800+ runId &&
801+ ( runId === this . activeResumeRunId || runId === this . currentRunId ) ,
798802 )
799803 const isCurrentStreamTerminal =
800804 this . isLoading && chunk . type === 'RUN_FINISHED' && ! runId
@@ -804,9 +808,9 @@ export class ChatClient<
804808 // keeps showing a stale prompt and blocks follow-up turns.
805809 const isActiveInterruptSubmissionTerminal = Boolean (
806810 this . activeInterruptSubmission &&
807- this . isLoading &&
808- chunk . type === 'RUN_FINISHED' &&
809- chunk . outcome ?. type !== 'interrupt' ,
811+ this . isLoading &&
812+ chunk . type === 'RUN_FINISHED' &&
813+ chunk . outcome ?. type !== 'interrupt' ,
810814 )
811815 if (
812816 isRunlessSessionError ||
0 commit comments