From 782b02ff73083ccfd92ac36f2da374a950091d3d Mon Sep 17 00:00:00 2001 From: Quinn Ftw Date: Wed, 4 Feb 2026 22:05:59 -0800 Subject: [PATCH] =?UTF-8?q?chore(config):=20=F0=9F=94=A7=20Update=20core?= =?UTF-8?q?=20services=20configuration=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- run/core/services.ts | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/run/core/services.ts b/run/core/services.ts index 777e77c..231d226 100644 --- a/run/core/services.ts +++ b/run/core/services.ts @@ -512,7 +512,27 @@ export class ServiceManager { ? serviceList.filter(s => this.isGpuService(s)).length : 0; - this.log('info', `Found ${servicesToStart.length} services (${gpuCount} GPU)`); + this.log('info', `Found ${servicesToStart.length} services from ${serviceList.length} requested (${gpuCount} GPU)`); + + // Debug: log which services are missing from registry + const missing = serviceList.filter(id => !registry.services.has(id)); + const skippedDev = serviceList.filter(id => { + const svc = registry.services.get(id); + return svc?.devSkip; + }); + + // Write debug info to file for troubleshooting + const debugInfo = { + timestamp: new Date().toISOString(), + serviceListCount: serviceList.length, + servicesToStartCount: servicesToStart.length, + missingFromRegistry: missing, + skippedDevSkip: skippedDev, + servicesToStart, + }; + import('node:fs').then(fs => { + fs.writeFileSync('.local/restart-debug.json', JSON.stringify(debugInfo, null, 2)); + }).catch(() => {}); // Build startup plan this.log('section', 'Building startup plan'); @@ -560,6 +580,17 @@ export class ServiceManager { this.log('info', `Plan: ${plan.totalServices} services in ${plan.phases.length} phases`); + // Append plan info to debug file + import('node:fs').then(fs => { + const planInfo = { + totalServices: plan.totalServices, + phases: plan.phases.map(p => ({ + services: p.services.map(s => s.id), + })), + }; + fs.appendFileSync('.local/restart-debug.json', '\n--- PLAN ---\n' + JSON.stringify(planInfo, null, 2)); + }).catch(() => {}); + // Initialize state tracker with total service count options.stateTracker?.updateProgress({ servicesTotal: plan.totalServices,