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
+13
View File
@@ -0,0 +1,13 @@
import { chromium } from './node_modules/playwright/index.mjs';
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: 1280, height: 800 });
await page.goto('http://localhost:18789', { waitUntil: 'networkidle', timeout: 10000 });
await page.screenshot({ path: 'openclaw_ui.png', fullPage: false });
console.log('✅ Screenshot pris');
await browser.close();