Skip to content

fix(codexcli-mcp): remove dead logger parameter in convertToCodexFormat - #1779

Merged
dyoshikawa merged 2 commits into
mainfrom
resolve-scrap-issue-1672-codexcli-mcp-dead-logger
Jun 9, 2026
Merged

fix(codexcli-mcp): remove dead logger parameter in convertToCodexFormat#1779
dyoshikawa merged 2 commits into
mainfrom
resolve-scrap-issue-1672-codexcli-mcp-dead-logger

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

PR #1637 added a logger parameter to convertToCodexFormat in src/features/mcp/codexcli-mcp.ts, but the sole caller in fromRulesyncMcp always passed undefined, making the parameter dead code. The inbound counterpart convertFromCodexFormat already hard-codes undefined in its warnWithFallback call, so the two directional converters were inconsistent.

This applies Option A from the issue: remove the parameter entirely and call warnWithFallback with undefined directly, matching convertFromCodexFormat. This also removes the inline import("../../utils/logger.js").Logger type annotation, aligning with the codebase's top-level static-import convention.

Changes

  • Remove the logger? parameter from convertToCodexFormat.
  • Call warnWithFallback(undefined, ...) inside the converter, consistent with convertFromCodexFormat.
  • Update the sole call site in fromRulesyncMcp to drop the undefined argument.

Verification

  • pnpm cicheck passes (format, lint, typecheck, 6049 tests, content checks).

Closes #1672

🤖 Generated with Claude Code

The `logger` parameter of `convertToCodexFormat` was always called with `undefined` by its sole caller in `fromRulesyncMcp`, making it dead code. Remove it and call `warnWithFallback` with `undefined` directly, matching the inbound `convertFromCodexFormat` counterpart. This also drops the inline `import(...)` type annotation in favor of the codebase's static-import convention.

Closes #1672

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dyoshikawa
dyoshikawa merged commit 8e19ad6 into main Jun 9, 2026
8 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-scrap-issue-1672-codexcli-mcp-dead-logger branch June 9, 2026 08:08
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.

fix(codexcli-mcp): remove dead logger parameter in convertToCodexFormat

2 participants