Skip to content

Track mcphub.nvim CodeCompanion v19 compatibility workaround #199

@oyoshot

Description

@oyoshot

Context

Neovim startup hit this error after CodeCompanion moved to v19:

vim.schedule callback: ...mcphub.nvim/lua/mcphub/extensions/codecompanion/variables.lua:20: bad argument #1 to pairs (table expected, got nil)

Cause: CodeCompanion v19 renamed chat variables to editor_context, while current mcphub.nvim still reads config.interactions.chat.variables in its CodeCompanion extension.

Upstream tracking:

Local workaround

Committed on branch nvim-0.12-compat:

  • 72f9d47 fix(nvim): disable mcphub vars for codecompanion v19

This sets:

make_vars = false

in dot_config/nvim/lua/plugins/codecompanion.lua.

MCP tools and slash commands remain enabled. Only MCP resources as CodeCompanion # editor context are disabled.

Done when

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions