Files
openclaw/src/agents
zhouhe-xydt 25fa46bd61 fix(bootstrap): guard bootstrap name checks against undefined names (#85523) (#85615)
* fix(bootstrap): guard bootstrap name checks against undefined names

Add optional chaining to isAgentsBootstrapFile and isAgentsBootstrapName
to prevent TypeError: Cannot read properties of undefined (reading 'toLowerCase')
when bootstrap file entries have undefined name properties.

This crash was observed in 2026.5.20 where a workspace bootstrap file entry
with an undefined name caused every incoming message to fail during bootstrap
context building, completely blocking all agent replies.

Fixes #85523

* test(agents): cover unnamed bootstrap truncation entries

* test(agents): keep bootstrap truncation fixture typed

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-05-23 13:37:03 +01:00
..
2026-05-11 21:08:51 +01:00
2026-05-21 23:47:32 +01:00