@@ -356,7 +356,7 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
356356 const args = useArgs ( )
357357
358358 async function bootstrap ( ) {
359- console . log ( "bootstrapping" )
359+ Log . Default . info ( "bootstrapping" )
360360 const start = Date . now ( ) - 30 * 24 * 60 * 60 * 1000
361361 const sessionListPromise = sdk . client . session
362362 . list ( { start : start } )
@@ -408,24 +408,25 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
408408 } )
409409 . then ( ( ) => {
410410 if ( store . status !== "complete" ) setStore ( "status" , "partial" )
411- // non-blocking
411+ // non-blocking — each call is individually guarded so one failure
412+ // doesn't prevent the rest from completing
412413 Promise . all ( [
413- ...( args . continue ? [ ] : [ sessionListPromise . then ( ( sessions ) => setStore ( "session" , reconcile ( sessions ) ) ) ] ) ,
414- sdk . client . command . list ( ) . then ( ( x ) => setStore ( "command" , reconcile ( x . data ?? [ ] ) ) ) ,
415- sdk . client . lsp . status ( ) . then ( ( x ) => setStore ( "lsp" , reconcile ( x . data ! ) ) ) ,
416- sdk . client . mcp . status ( ) . then ( ( x ) => setStore ( "mcp" , reconcile ( x . data ! ) ) ) ,
417- sdk . client . experimental . resource . list ( ) . then ( ( x ) => setStore ( "mcp_resource" , reconcile ( x . data ?? { } ) ) ) ,
418- sdk . client . formatter . status ( ) . then ( ( x ) => setStore ( "formatter" , reconcile ( x . data ! ) ) ) ,
414+ ...( args . continue ? [ ] : [ sessionListPromise . then ( ( sessions ) => setStore ( "session" , reconcile ( sessions ) ) ) . catch ( ( ) => { } ) ] ) ,
415+ sdk . client . command . list ( ) . then ( ( x ) => setStore ( "command" , reconcile ( x . data ?? [ ] ) ) ) . catch ( ( ) => { } ) ,
416+ sdk . client . lsp . status ( ) . then ( ( x ) => setStore ( "lsp" , reconcile ( x . data ?? { } ) ) ) . catch ( ( ) => { } ) ,
417+ sdk . client . mcp . status ( ) . then ( ( x ) => setStore ( "mcp" , reconcile ( x . data ?? { } ) ) ) . catch ( ( ) => { } ) ,
418+ sdk . client . experimental . resource . list ( ) . then ( ( x ) => setStore ( "mcp_resource" , reconcile ( x . data ?? { } ) ) ) . catch ( ( ) => { } ) ,
419+ sdk . client . formatter . status ( ) . then ( ( x ) => setStore ( "formatter" , reconcile ( x . data ?? { } ) ) ) . catch ( ( ) => { } ) ,
419420 sdk . client . session . status ( ) . then ( ( x ) => {
420- setStore ( "session_status" , reconcile ( x . data ! ) )
421- } ) ,
422- sdk . client . provider . auth ( ) . then ( ( x ) => setStore ( "provider_auth" , reconcile ( x . data ?? { } ) ) ) ,
423- sdk . client . vcs . get ( ) . then ( ( x ) => setStore ( "vcs" , reconcile ( x . data ) ) ) ,
424- sdk . client . path . get ( ) . then ( ( x ) => setStore ( "path" , reconcile ( x . data ! ) ) ) ,
425- syncWorkspaces ( ) ,
421+ if ( x . data ) setStore ( "session_status" , reconcile ( x . data ) )
422+ } ) . catch ( ( ) => { } ) ,
423+ sdk . client . provider . auth ( ) . then ( ( x ) => setStore ( "provider_auth" , reconcile ( x . data ?? { } ) ) ) . catch ( ( ) => { } ) ,
424+ sdk . client . vcs . get ( ) . then ( ( x ) => setStore ( "vcs" , reconcile ( x . data ) ) ) . catch ( ( ) => { } ) ,
425+ sdk . client . path . get ( ) . then ( ( x ) => { if ( x . data ) setStore ( "path" , reconcile ( x . data ) ) } ) . catch ( ( ) => { } ) ,
426+ syncWorkspaces ( ) . catch ( ( ) => { } ) ,
426427 ] ) . then ( ( ) => {
427428 setStore ( "status" , "complete" )
428- } )
429+ } ) . catch ( ( ) => { } )
429430 } )
430431 . catch ( async ( e ) => {
431432 Log . Default . error ( "tui bootstrap failed" , {
0 commit comments