Files
openclaw/src/routing
RayRuan 542e9a4e67 Fix getSubagentDepth for legacy subagent session keys (AI-assisted) (#54593)
The previous implementation split on ':subagent:' which requires
colons on both sides. Legacy session keys like 'subagent:worker'
(starting without a colon) were missed and returned depth 0.

Fix: normalize key, match (^|:)subagent: pattern to correctly count
nested subagent levels for both legacy and current key formats.

- Add test cases for legacy key formats

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-06-28 15:17:30 -07:00
..
2026-06-04 20:25:55 -04:00
2026-06-04 20:25:55 -04:00