Skip to content

Commit 11acd88

Browse files
taylaandclaude
andcommitted
fix: wire adapter mcp_setup() call in session start
The adapter setup() wrote persona files but mcp_setup() was never called — Gemini .gemini/settings.json and OpenCode opencode.json were not written to the session directory. Found by running the multi-agent integration tests with real tmux. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8823ce2 commit 11acd88

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/studyctl/src/studyctl/cli/_study.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,12 @@ def _handle_start(
372372
if backlog_notes:
373373
previous_notes = f"{previous_notes}\n\n{backlog_notes}" if previous_notes else backlog_notes
374374

375-
# Build persona via adapter pattern
375+
# Build persona + MCP config via adapter pattern
376376
adapter = AGENTS[agent]
377377
canonical = build_canonical_persona(mode, topic, energy, previous_notes=previous_notes)
378378
persona_file = adapter.setup(canonical, session_dir)
379+
if adapter.mcp_setup:
380+
adapter.mcp_setup(session_dir)
379381

380382
# Allow integration tests to inject a mock agent command
381383
import os

0 commit comments

Comments
 (0)