Skip to content

/ won't trigger commands after a command has already been executed #205

Closed

Description

@PowerUser64

Quite often I like to execute commands like switch model (/model) and then switch agent (/agent). For some reason when I try to switch model and then switch agent, the second slash command never works on the first try and I have to open and close the I to get it to work. This seems like it's related to #130.

Steps to reproduce: (described above a bit)

  1. Run /model, switch models
  2. Run /agent -- the completion menu for agents won't pop up and you'll instead get the file path completion menu

Activity

  1. sudo-tee commented on Jan 26, 2026

    @sudo-tee
    Owner

    @PowerUser64

    I am not able to reproduce the issue, what completion system are you using blink or cmp ?

    Can you provide a screenshot or screen recording of the issue ?

    Are you sure there is no character before the / in the input window such as a space ?

  2. bowentan commented on Jan 28, 2026

    @bowentan

    Came across the same issue: after selecting a command popped by blink, delete it and again type / will not pop up the completion.

    Screen.Recording.2026-01-28.at.17.00.54.mov

    Related env:

    • macOS 13.7.8
    • wezterm
    • nvim 0.11
  3. sudo-tee commented on Jan 28, 2026

    @sudo-tee
    Owner

    @bowentan what shortcut are you using to insert /agent_init ? this command execute immediately and not insert itself in the input window.

  4. bowentan commented on Jan 29, 2026

    @bowentan

    @sudo-tee Used the default confirm key <C-y>.

  5. PowerUser64 commented on Jan 29, 2026

    @PowerUser64
    ContributorAuthor

    Yeah, this is basically what I have going on. I am using blink.cmp just like @bowentan, although I have <C-l> (lowercase L) set as my confirm key. I could record the same video as is posted above, only when I type slash the second time, the path completion source will appear.

  6. sudo-tee commented on Jan 29, 2026

    @sudo-tee
    Owner

    @bowentan @PowerUser64

    I created a MR to try to address the issue. I am not able to reproduce it reliably.

    #213

    If you have a couple of minutes to try my fix it would be greatly appreciated.

    Thanks

  7. inferst commented on Jan 29, 2026

    @inferst

    @sudo-tee I had the same issue

    checked your commit and it looks like it is fixed

  8. PowerUser64 commented on Jan 30, 2026

    @PowerUser64
    ContributorAuthor

    Works for me too! Thanks @sudo-tee :)

  9. added a commit that references this issue on Feb 2, 2026
    e0cd7ab
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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions