mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-14 14:43:16 -06:00
90dbede056
Both snapshot renderers walked accessibility trees recursively with no default depth bound: the chrome-mcp builder only honored maxDepth when callers passed one, and the CDP renderRoleTree had no limit at all. A pathologically nested page could overflow the call stack and grow indent output quadratically before any output truncation ran. Add a generous hard depth bound (100) to both traversal paths.