[CL-AUDIT] fix(codex-local): merge managed MCP в config.toml вместо overwrite #122
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/claude-codex-mcp-merge"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Что сделано
Codex-агенты не получали MCP:
ensureManagedMcpConfigписалrenderCodexMcpConfig(только[mcp_servers]) как ВЕСЬconfig.toml→ пропускал запись при любом существующем конфиге (чтобы не затереть прочие настройки) → managed-marker отсутствовал во всех codex-home.Фикс — append/merge: managed-блок делимитирован START..END маркерами;
mergeManagedMcpConfigвырезает прежний managed-блок (идемпотентный refresh), сохраняет не-MCP настройки, аппендит наш блок;null/skip если есть операторский[mcp_servers](не клоберим). Удалён мёртвыйhasWindowsOnlyCodexConfig.План тестирования
TDD RED→GREEN, 4 кейса (null→rendered; preserve+append; идемпотентный refresh; operator-MCP→skip). codex-home.test 9/9; codex-local
tscEXIT=0.Где могу ошибиться
Win-only stale-config replacement (старый
hasWindowsOnlyCodexConfig) убран; на linux-проде адаптер на win32 и так выходит рано — для прод-кейса (MCP не писался при нормальном конфиге) фикс корректен.Hey @andrei! Before this PR can be reviewed, a few things need attention:
Missing or incomplete:
Fixes #NNN/Closes #NNN/Refs #NNN, or describe the underlying issue inline in the PR body following one of our issue templates (https://git.adami.kr/europa-tech-srl/europa-tech-agents/src/branch/master/.github/ISSUE_TEMPLATE). See CONTRIBUTING.md → "Link Issues or Describe Them In-PR".Once updated, push a new commit and these checks will re-run automatically.
— paperclip-gates
andrei referenced this pull request2026-06-29 11:08:51 +00:00