feat(electron): integrate ClawX context into openclaw workspace initi… (#161)
Co-authored-by: Haze <hazeone@users.noreply.github.com>
This commit is contained in:
@@ -14,6 +14,7 @@ import { logger } from '../utils/logger';
|
||||
import { warmupNetworkOptimization } from '../utils/uv-env';
|
||||
|
||||
import { ClawHubService } from '../gateway/clawhub';
|
||||
import { ensureClawXContext } from '../utils/openclaw-workspace';
|
||||
|
||||
// Disable GPU acceleration for better compatibility
|
||||
app.disableHardwareAcceleration();
|
||||
@@ -177,6 +178,13 @@ async function initialize(): Promise<void> {
|
||||
mainWindow = null;
|
||||
});
|
||||
|
||||
// Merge ClawX context snippets into the openclaw workspace bootstrap files
|
||||
try {
|
||||
ensureClawXContext();
|
||||
} catch (error) {
|
||||
logger.warn('Failed to merge ClawX context into workspace:', error);
|
||||
}
|
||||
|
||||
// Start Gateway automatically
|
||||
try {
|
||||
logger.debug('Auto-starting Gateway...');
|
||||
|
||||
Reference in New Issue
Block a user