mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
cd321938f6
* fix(agents): strip external-content nonce before loop-detection resultHash External-content wrappers carry a fresh anti-forgery nonce per result (createExternalContentMarkerId). The loop detector hashed the wrapper text including the nonce, so identical failing wrapped tool calls never reached the no-progress block threshold — the detector warned but never blocked, leaving the agent to loop until it gave up (#130210). Strip the wrapper nonce before hashing in extractTextContent, mirroring the existing stripVolatileSendIds treatment of per-call send ids (#89090). Only the hash is normalized; the delivered wrapper keeps its nonce, so anti-forgery is unaffected. Closes #130210 Co-Authored-By: Claude <noreply@anthropic.com> * test(agents): validate protected error marker capture Narrow the generated marker capture before recording it so the real network-error loop regression also passes its owning test-type graph. --------- Co-authored-by: ruel225 <ruel225@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>