@@ -210,7 +210,11 @@ export class SessionService {
210210
211211 if ( ! getIsOnline ( ) ) {
212212 log . info ( "Skipping connection attempt - offline" , { taskId } ) ;
213- const session = this . createBaseSession ( latestRun . id , taskId , taskTitle ) ;
213+ const session = this . createBaseSession (
214+ latestRun . id ,
215+ taskId ,
216+ taskTitle ,
217+ ) ;
214218 session . status = "disconnected" ;
215219 session . errorMessage =
216220 "No internet connection. Connect when you're back online." ;
@@ -281,10 +285,14 @@ export class SessionService {
281285 logUrl : string ,
282286 repoPath : string ,
283287 auth : AuthCredentials ,
284- prefetchedLogs ?: { rawEntries : StoredLogEntry [ ] ; sessionId ?: string ; adapter ?: Adapter } ,
288+ prefetchedLogs ?: {
289+ rawEntries : StoredLogEntry [ ] ;
290+ sessionId ?: string ;
291+ adapter ?: Adapter ;
292+ } ,
285293 ) : Promise < void > {
286294 const { rawEntries, sessionId, adapter } =
287- prefetchedLogs ?? await this . fetchSessionLogs ( logUrl ) ;
295+ prefetchedLogs ?? ( await this . fetchSessionLogs ( logUrl ) ) ;
288296 const events = convertStoredEntriesToEvents ( rawEntries ) ;
289297
290298 // Resolve adapter from logs or persisted store
@@ -531,14 +539,22 @@ export class SessionService {
531539 const configPromises : Promise < void > [ ] = [ ] ;
532540 if ( preferredModel ) {
533541 configPromises . push (
534- this . setSessionConfigOptionByCategory ( taskId , "model" , preferredModel )
535- . catch ( ( err ) => log . warn ( "Failed to set model" , { taskId, err } ) ) ,
542+ this . setSessionConfigOptionByCategory (
543+ taskId ,
544+ "model" ,
545+ preferredModel ,
546+ ) . catch ( ( err ) => log . warn ( "Failed to set model" , { taskId, err } ) ) ,
536547 ) ;
537548 }
538549 if ( reasoningLevel ) {
539550 configPromises . push (
540- this . setSessionConfigOptionByCategory ( taskId , "thought_level" , reasoningLevel )
541- . catch ( ( err ) => log . warn ( "Failed to set reasoning level" , { taskId, err } ) ) ,
551+ this . setSessionConfigOptionByCategory (
552+ taskId ,
553+ "thought_level" ,
554+ reasoningLevel ,
555+ ) . catch ( ( err ) =>
556+ log . warn ( "Failed to set reasoning level" , { taskId, err } ) ,
557+ ) ,
542558 ) ;
543559 }
544560 if ( configPromises . length > 0 ) {
0 commit comments