Skip to content

[Bug] ModelCmpStop all deletes wrong augroup name — autocmds keep running #34

Open

Description

@PyDevC

File: lua/model_cmp/commands.lua:137-138

Introduction: ModelCmpStop all calls vim.api.nvim_del_augroup_by_name("model_cmp_grp"), but this augroup is never created by the plugin. The actual augroup is "model_cmp_virtualtext" (created at virtualtext.lua:18). The stop command is a silent no-op.

Detailed Description: Autocmds for TextChanged/InsertLeave continue firing. The timer keeps running. The user believes they have stopped the plugin but requests and preview updates continue.

Reproduction:

  1. :ModelCmpStart gemini
  2. :ModelCmpStop all
  3. Type something — ghost text still appears (autocmds never stopped)

System detail: All systems.

Activity

  1. added
    bug
    AI gen
    maintainer triaged
    on May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI genbugmaintainer triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions