You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/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>
8 months ago
..
agent-loop.md add prependSystemContext and appendSystemContext to before_prompt_build (fixes #35131) (#35177) 9 months ago
agent-workspace.md fix(security): harden workspace bootstrap boundary reads 9 months ago
agent.md docs: canonicalize docs paths and align zh navigation (#11428) 9 months ago
architecture.md fix(gateway): pin paired reconnect metadata for node policy 9 months ago
compaction.md feat: allow compaction model override via config (#38753) 8 months ago
context.md docs: context engine 9 months ago
features.md fix(android): remove mic and screen foreground services 9 months ago
markdown-formatting.md Docs: add nav titles across docs (#5689) 10 months ago
memory.md Memory: add multimodal image and audio indexing (#43460) 8 months ago
messages.md docs: canonicalize docs paths and align zh navigation (#11428) 9 months ago
model-failover.md docs(models): clarify moonshot thinking and failover stop-reason errors 9 months ago
model-providers.md fix(models): keep codex spark codex-only 8 months ago
models.md Models: enforce source-managed SecretRef markers in models.json (#43759) 8 months ago
multi-agent.md fix(channels): add optional defaultAccount routing 9 months ago
oauth.md docs: tighten subscription guidance and update MiniMax M2.5 refs 9 months ago
presence.md Docs: add nav titles across docs (#5689) 10 months ago
queue.md Docs: add nav titles across docs (#5689) 10 months ago
retry.md Docs: add nav titles across docs (#5689) 10 months ago
session-pruning.md docs: detail per-agent prompt caching configuration 9 months ago
session-tool.md sessions_spawn: inline attachments with redaction, lifecycle cleanup, and docs (#16761) 9 months ago
session.md docs: fix session key :dm: → :direct (#26506) 8 months ago
streaming.md fix(telegram): use message previews in DMs 8 months ago
system-prompt.md fix(agents): avoid injecting memory file twice on case-insensitive mounts (#26054) 8 months ago
timezone.md Docs: add nav titles across docs (#5689) 10 months ago
typebox.md feat(agents): use structured internal completion events 9 months ago
typing-indicators.md Docs: add nav titles across docs (#5689) 10 months ago
usage-tracking.md Docs: add nav titles across docs (#5689) 10 months ago