openclaw-patch-must-use-content-grep-not-glob

OpenClaw’s Vite bundler rotates output filenames on every build (e.g. stream-wrappers-PlFj0B1V.js), so glob-based patch scripts break silently after each upstream upgrade. The durable fix is to locate the target file via content-grep (search for a known string inside the file) rather than a fixed filename or glob pattern. This approach survived the v2026.4.2→v2026.4.14 upgrade with both critical patches (context-1m and WA 6h timeout) intact.