Files
openclaw/docs
echoVic ac17729161 fix: align AGENTS.md template section names with post-compaction extraction (#25029)
The official AGENTS.md template uses '## Every Session' and '## Safety',
but post-compaction context extraction expects '## Session Startup' and
'## Red Lines'. This causes workspaces using the official template to
lose startup context and safety rules after compaction.

Changes:
- Rename template sections to match code expectations (both EN and zh-CN)
- Add legacy fallback: code now tries 'Every Session'/'Safety' when
  'Session Startup'/'Red Lines' are not found (backward compatible)
- Add tests for legacy fallback and precedence when both exist
2026-03-04 12:02:35 -08:00
..
2026-01-30 03:16:21 +01:00