@@ -136,7 +136,7 @@ export async function orchestrateCopilotStream(
136136 let claimedToolCallIds : string [ ] = [ ]
137137 let claimedByWorkerId : string | null = null
138138
139- logger . error ( withLogContext ( 'Starting copilot orchestration' ) , {
139+ logger . info ( withLogContext ( 'Starting copilot orchestration' ) , {
140140 goRoute,
141141 workflowId,
142142 workspaceId,
@@ -155,7 +155,7 @@ export async function orchestrateCopilotStream(
155155 for ( ; ; ) {
156156 context . streamComplete = false
157157
158- logger . error ( withLogContext ( 'Starting orchestration loop iteration' ) , {
158+ logger . info ( withLogContext ( 'Starting orchestration loop iteration' ) , {
159159 route,
160160 hasPendingAsyncContinuation : Boolean ( context . awaitingAsyncContinuation ) ,
161161 claimedToolCallCount : claimedToolCallIds . length ,
@@ -168,7 +168,7 @@ export async function orchestrateCopilotStream(
168168 const d = ( event . data ?? { } ) as Record < string , unknown >
169169 const response = ( d . response ?? { } ) as Record < string , unknown >
170170 if ( response . async_pause ) {
171- logger . error ( withLogContext ( 'Detected async pause from copilot backend' ) , {
171+ logger . info ( withLogContext ( 'Detected async pause from copilot backend' ) , {
172172 route,
173173 checkpointId :
174174 typeof ( response . async_pause as Record < string , unknown > ) ?. checkpointId ===
@@ -201,7 +201,7 @@ export async function orchestrateCopilotStream(
201201 loopOptions
202202 )
203203
204- logger . error ( withLogContext ( 'Completed orchestration loop iteration' ) , {
204+ logger . info ( withLogContext ( 'Completed orchestration loop iteration' ) , {
205205 route,
206206 streamComplete : context . streamComplete ,
207207 wasAborted : context . wasAborted ,
@@ -210,7 +210,7 @@ export async function orchestrateCopilotStream(
210210 } )
211211
212212 if ( claimedToolCallIds . length > 0 ) {
213- logger . error ( withLogContext ( 'Marking async tool calls as delivered' ) , {
213+ logger . info ( withLogContext ( 'Marking async tool calls as delivered' ) , {
214214 toolCallIds : claimedToolCallIds ,
215215 } )
216216 await Promise . all (
@@ -223,7 +223,7 @@ export async function orchestrateCopilotStream(
223223 }
224224
225225 if ( options . abortSignal ?. aborted || context . wasAborted ) {
226- logger . error ( withLogContext ( 'Stopping orchestration because request was aborted' ) , {
226+ logger . info ( withLogContext ( 'Stopping orchestration because request was aborted' ) , {
227227 pendingToolCallCount : Array . from ( context . toolCalls . values ( ) ) . filter (
228228 ( toolCall ) => toolCall . status === 'pending' || toolCall . status === 'executing'
229229 ) . length ,
@@ -241,13 +241,13 @@ export async function orchestrateCopilotStream(
241241
242242 const continuation = context . awaitingAsyncContinuation
243243 if ( ! continuation ) {
244- logger . error ( withLogContext ( 'No async continuation pending; finishing orchestration' ) )
244+ logger . info ( withLogContext ( 'No async continuation pending; finishing orchestration' ) )
245245 break
246246 }
247247
248248 let resumeReady = false
249249 let resumeRetries = 0
250- logger . error ( withLogContext ( 'Processing async continuation' ) , {
250+ logger . info ( withLogContext ( 'Processing async continuation' ) , {
251251 checkpointId : continuation . checkpointId ,
252252 runId : continuation . runId ,
253253 pendingToolCallIds : continuation . pendingToolCallIds ,
@@ -443,7 +443,7 @@ export async function orchestrateCopilotStream(
443443 }
444444 if ( resumeRetries < 3 ) {
445445 resumeRetries ++
446- logger . error ( withLogContext ( 'Retrying async resume after claim contention' ) , {
446+ logger . info ( withLogContext ( 'Retrying async resume after claim contention' ) , {
447447 checkpointId : continuation . checkpointId ,
448448 runId : continuation . runId ,
449449 workerId : resumeWorkerId ,
@@ -474,7 +474,7 @@ export async function orchestrateCopilotStream(
474474 ]
475475 claimedByWorkerId = claimedToolCallIds . length > 0 ? resumeWorkerId : null
476476
477- logger . error ( withLogContext ( 'Resuming async tool continuation' ) , {
477+ logger . info ( withLogContext ( 'Resuming async tool continuation' ) , {
478478 checkpointId : continuation . checkpointId ,
479479 runId : continuation . runId ,
480480 workerId : resumeWorkerId ,
@@ -540,7 +540,7 @@ export async function orchestrateCopilotStream(
540540 checkpointId : continuation . checkpointId ,
541541 results,
542542 }
543- logger . error ( withLogContext ( 'Prepared async continuation payload for resume endpoint' ) , {
543+ logger . info ( withLogContext ( 'Prepared async continuation payload for resume endpoint' ) , {
544544 route,
545545 checkpointId : continuation . checkpointId ,
546546 resultCount : results . length ,
@@ -569,7 +569,7 @@ export async function orchestrateCopilotStream(
569569 usage : context . usage ,
570570 cost : context . cost ,
571571 }
572- logger . error ( withLogContext ( 'Completing copilot orchestration' ) , {
572+ logger . info ( withLogContext ( 'Completing copilot orchestration' ) , {
573573 success : result . success ,
574574 chatId : result . chatId ,
575575 hasRequestId : Boolean ( result . requestId ) ,
0 commit comments