Skip to content

fix(memory): stop regenerating duplicate agents/docker-compose.yml#226

Open
DammianMiller wants to merge 2 commits into
masterfrom
feature/226-docker-compose-regen
Open

fix(memory): stop regenerating duplicate agents/docker-compose.yml#226
DammianMiller wants to merge 2 commits into
masterfrom
feature/226-docker-compose-regen

Conversation

@DammianMiller

Copy link
Copy Markdown
Owner

Problem

startServices() in src/cli/memory.ts searched only agents/docker-compose.yml and docker/docker-compose.yml — never the canonical tools/agents/docker-compose.qdrant.yml. Not finding it, it wrote a fresh agents/docker-compose.yml on every uap memory start, recreating the duplicate that was deliberately deleted in 46b1741 and is guarded by test D10.

The duplicate never fails CI (it's generated at runtime, not in a clean checkout), so the latent bug persisted on master through 1.41.0.

Fix

  • Add the canonical tools/agents/docker-compose.qdrant.yml to both the start and stop search lists, so the real file is found instead of recreated.
  • Point the create-default fallback at tools/agents/docker-compose.qdrant.yml, so a fresh project never writes the forbidden path either.
  • claude-md generator: prefer the canonical path for DOCKER_COMPOSE_PATH.
  • Add D10b regression tests asserting the regenerator targets the canonical path and the search list includes it.

Verification

  • npm run build + tsc clean
  • Full suite: 117 test files passed (incl. D10 + 2 new D10b cases)
  • agents/docker-compose.yml no longer regenerates

🤖 Generated with Claude Code

t and others added 2 commits June 14, 2026 17:27
startServices() searched only agents/docker-compose.yml and
docker/docker-compose.yml — never the canonical
tools/agents/docker-compose.qdrant.yml — so it recreated the duplicate
(deleted in 46b1741, guarded by test D10) on every `uap memory start`.

- Add the canonical qdrant compose to both start/stop search lists so the
  real file is found instead of recreated.
- Point the create-default fallback at tools/agents/docker-compose.qdrant.yml
  so a fresh project never writes the forbidden path either.
- claude-md generator: prefer the canonical path for DOCKER_COMPOSE_PATH.
- Add D10b regression tests asserting the regenerator targets the canonical
  path and the search list includes it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant