File tree Expand file tree Collapse file tree
workspace-server/src/services/skills Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1388,7 +1388,10 @@ export class AgentServer {
13881388 } ) ;
13891389
13901390 this . sessionReadyBootMs = Math . round ( process . uptime ( ) * 1000 ) ;
1391- this . sessionInitMs = Math . max ( 0 , Date . now ( ) - this . barrierReleasedAtMs ! ) ;
1391+ this . sessionInitMs = Math . max (
1392+ 0 ,
1393+ Date . now ( ) - ( this . barrierReleasedAtMs ?? Date . now ( ) ) ,
1394+ ) ;
13921395 this . logger . debug ( "Session initialized successfully" , {
13931396 bootMs : this . sessionReadyBootMs ,
13941397 sessionInitMs : this . sessionInitMs ,
Original file line number Diff line number Diff line change @@ -538,7 +538,8 @@ export class SkillsService {
538538 const MAX_RESOLVED_SKILLS = 50 ;
539539
540540 while ( queue . length > 0 ) {
541- const ref = queue . shift ( ) ! ;
541+ const ref = queue . shift ( ) ;
542+ if ( ! ref ) break ;
542543 const key = `${ ref . source } :${ ref . path } ` ;
543544 if ( seen . has ( key ) ) continue ;
544545 if ( resolved . length >= MAX_RESOLVED_SKILLS ) {
You can’t perform that action at this time.
0 commit comments