openclaw/docs/concepts
Jealous a3eed2b70f
fix(agents): avoid injecting memory file twice on case-insensitive mounts (#26054)
* fix(agents): avoid injecting memory file twice on case-insensitive mounts

On case-insensitive file systems mounted into Docker from macOS, both
MEMORY.md and memory.md pass fs.access() even when they are the same
underlying file. The previous dedup via fs.realpath() failed in this
scenario because realpath does not normalise case through the Docker
mount layer, so both paths were treated as distinct entries and the
same content was injected into the bootstrap context twice, wasting
tokens.

Fix by replacing the collect-then-dedup approach with an early-exit:
try MEMORY.md first; fall back to memory.md only when MEMORY.md is
absent. This makes the function return at most one entry regardless
of filesystem case-sensitivity.

* docs: clarify singular memory bootstrap fallback

* fix: note memory bootstrap fallback docs and changelog (#26054) (thanks @Lanfei)

---------

Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-03-13 14:39:51 +05:30
..
agent-loop.md add prependSystemContext and appendSystemContext to before_prompt_build (fixes #35131) (#35177) 2026-03-05 13:06:59 -05:00
agent-workspace.md fix(security): harden workspace bootstrap boundary reads 2026-03-02 17:07:36 +00:00
agent.md
architecture.md fix(gateway): pin paired reconnect metadata for node policy 2026-02-26 14:11:04 +01:00
compaction.md feat: allow compaction model override via config (#38753) 2026-03-08 10:47:34 -07:00
context.md docs: context engine 2026-03-06 08:55:58 -05:00
features.md fix(android): remove mic and screen foreground services 2026-03-08 16:25:49 +05:30
markdown-formatting.md
memory.md Memory: add multimodal image and audio indexing (#43460) 2026-03-11 22:28:34 +00:00
messages.md
model-failover.md docs(models): clarify moonshot thinking and failover stop-reason errors 2026-03-03 01:11:29 +00:00
model-providers.md fix(models): keep codex spark codex-only 2026-03-13 00:53:21 +00:00
models.md Models: enforce source-managed SecretRef markers in models.json (#43759) 2026-03-12 02:22:52 -05:00
multi-agent.md fix(channels): add optional defaultAccount routing 2026-03-02 04:03:46 +00:00
oauth.md docs: tighten subscription guidance and update MiniMax M2.5 refs 2026-03-03 00:02:37 +00:00
presence.md
queue.md
retry.md
session-pruning.md docs: detail per-agent prompt caching configuration 2026-02-23 18:46:40 +00:00
session-tool.md sessions_spawn: inline attachments with redaction, lifecycle cleanup, and docs (#16761) 2026-03-01 21:33:51 -08:00
session.md docs: fix session key :dm: → :direct (#26506) 2026-03-13 14:28:33 +05:30
streaming.md fix(telegram): use message previews in DMs 2026-03-08 21:59:43 +05:30
system-prompt.md fix(agents): avoid injecting memory file twice on case-insensitive mounts (#26054) 2026-03-13 14:39:51 +05:30
timezone.md
typebox.md feat(agents): use structured internal completion events 2026-03-01 23:11:48 +00:00
typing-indicators.md
usage-tracking.md