Skip to content

Commit d0cdcf0

Browse files
bmolodanclaude
andcommitted
fix: forward disable_thinking through the MCP generate_docs path
codewiki/mcp/server.py built its BackendConfig via from_cli() without passing disable_thinking, so the new default always applied to MCP-triggered generation and a persisted --enable-thinking was silently ignored. Forward the persisted setting so the escape hatch works for MCP too. Addresses Codex review feedback on this PR. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent fd0cfe9 commit d0cdcf0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

codewiki/mcp/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ async def _legacy_generate_docs(arguments: dict[str, Any]) -> list[TextContent]:
505505
max_tokens=config.max_tokens,
506506
agent_instructions=agent_instructions or None,
507507
use_gitignore=arguments.get("use_gitignore", True),
508+
disable_thinking=getattr(config, "disable_thinking", True),
508509
)
509510

510511
from codewiki.cli.utils.repo_validator import get_git_commit_hash

0 commit comments

Comments
 (0)