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/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>
9 months ago
..
templates fix: align AGENTS.md template section names with post-compaction extraction (#25029) (#25098) 9 months ago
AGENTS.default.md Revert "Agents: improve Windows scaffold helpers for venture studio" 9 months ago
RELEASING.md build: raise Node 22 compatibility floor to 22.16 9 months ago
api-usage-costs.md fix(secrets): resolve web tool SecretRefs atomically at runtime 9 months ago
credits.md docs: add Vincent Koc to contributor credits 9 months ago
device-models.md revert(docs): undo markdownlint autofix churn 10 months ago
prompt-caching.md docs: clarify prompt caching intro 9 months ago
rpc.md iMessage: promote BlueBubbles and refresh docs/skills (#8415) 10 months ago
secretref-credential-surface.md docs: sync Feishu secretref credential matrix 9 months ago
secretref-user-supplied-credentials-matrix.json docs: sync Feishu secretref credential matrix 9 months ago
session-management-compaction.md fix(session): prevent silent overflow on parent thread forks (#26912) 9 months ago
test.md build: default to Node 24 and keep Node 22 compat 9 months ago
token-use.md fix(agents): avoid injecting memory file twice on case-insensitive mounts (#26054) 9 months ago
transcript-hygiene.md docs(tokens): document image dimension token tradeoffs 9 months ago
wizard.md fix: align Ollama onboarding docs before landing (#43473) (thanks @BruceMacD) 9 months ago