openclaw/docs/reference
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
..
templates fix: align AGENTS.md template section names with post-compaction extraction (#25029) (#25098) 2026-03-04 12:16:00 -08:00
AGENTS.default.md Revert "Agents: improve Windows scaffold helpers for venture studio" 2026-02-17 02:26:36 +01:00
RELEASING.md build: raise Node 22 compatibility floor to 22.16 2026-03-12 20:07:44 +05:30
api-usage-costs.md fix(secrets): resolve web tool SecretRefs atomically at runtime 2026-03-09 22:57:03 -05:00
credits.md docs: add Vincent Koc to contributor credits 2026-02-19 15:13:38 -08:00
device-models.md
prompt-caching.md docs: clarify prompt caching intro 2026-02-24 05:22:00 +00:00
rpc.md
secretref-credential-surface.md docs: sync Feishu secretref credential matrix 2026-03-12 08:18:13 -07:00
secretref-user-supplied-credentials-matrix.json docs: sync Feishu secretref credential matrix 2026-03-12 08:18:13 -07:00
session-management-compaction.md fix(session): prevent silent overflow on parent thread forks (#26912) 2026-02-25 23:54:02 +00:00
test.md build: default to Node 24 and keep Node 22 compat 2026-03-12 20:07:44 +05:30
token-use.md fix(agents): avoid injecting memory file twice on case-insensitive mounts (#26054) 2026-03-13 14:39:51 +05:30
transcript-hygiene.md docs(tokens): document image dimension token tradeoffs 2026-02-18 00:56:57 +01:00
wizard.md fix: align Ollama onboarding docs before landing (#43473) (thanks @BruceMacD) 2026-03-13 02:03:54 +00:00