feat(electron): integrate ClawX context into openclaw workspace initi… (#161)

Co-authored-by: Haze <hazeone@users.noreply.github.com>
This commit is contained in:
Haze
2026-02-25 14:22:16 +08:00
committed by GitHub
Unverified
parent 5d1d704031
commit 6453702bf9
4 changed files with 151 additions and 0 deletions

View File

@@ -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...');