fix: browser wrapper permanent pour SingletonLock après redémarrage

- chrome-wrapper.sh : nettoie les lock files avant de lancer Chrome
- openclaw.json : executablePath pointe vers le wrapper
- start-chrome-cdp.sh : script de secours manuel
- oc-up.sh : mis à jour (plus de démarrage manuel Chrome nécessaire)
- MEMORY.md : documentation du fix
This commit is contained in:
Nox
2026-02-27 10:42:54 +00:00
parent 29c59b6bf1
commit e4128f9788
39 changed files with 2668 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
import { chromium } from './node_modules/playwright/index.mjs';
import { readFileSync } from 'fs';
import path from 'path';
const browser = await chromium.launch({
executablePath: '/home/node/.cache/ms-playwright/chromium-1208/chrome-linux64/chrome',
args: ['--no-sandbox', '--disable-dev-shm-usage', '--disable-gpu']
});
const page = await browser.newPage();
await page.setViewportSize({ width: 836, height: 600 });
const html = readFileSync(path.resolve('proxmox_lxc145.html'), 'utf8');
await page.setContent(html, { waitUntil: 'networkidle' });
await page.screenshot({ path: 'proxmox_lxc145.png', fullPage: true });
console.log('✅ Screenshot pris');
await browser.close();