Skip to content

bug: context placeholder isn't replaced in message #149

@heygent

Description

@heygent

Did you check docs and existing issues?

  • I have read the plugin docs
  • I have read the opencode docs
  • I have searched the existing plugin issues
  • I have searched the existing opencode issues

:checkhealth opencode output

============================================================================== opencode: 5 ⚠️ opencode.nvim ~ - OS: Darwin 24.6.0 (arm64) - nvim version: 0.11.5. - ⚠️ WARNING Could not determine opencode.nvim git commit hash. - vim.g.opencode_opts: { port = 5999 } opencode.nvim [binaries] ~ - ✅ OK opencode available with version INFO 2026-01-27T20:29:49 +70ms service=models.dev file={} refreshing. - ⚠️ WARNING opencode version has a major version mismatch with latest tested version 1.1.11: may cause compatibility issues. - ✅ OK curl available. opencode.nvim [snacks] ~ - ✅ OK snacks.input is enabled: ask() will be enhanced. - ✅ OK blink.cmp is available: opts.ask.blink_cmp_sources will be registered in ask(). - ✅ OK snacks.picker is enabled: select() will be enhanced. opencode.nvim [providers] ~ - ✅ OK Configured opencode provider: snacks. - ✅ OK The snacks provider is available. - ⚠️ WARNING The kitty provider is not available — KITTY_LISTEN_ON environment variable is not set. - ADVICE: - Enable remote control in kitty. - ⚠️ WARNING The wezterm provider is not available — wezterm executable not found in $PATH. - ADVICE: - Install wezterm and ensure it's in your $PATH. - ⚠️ WARNING The tmux provider is not available — tmux executable not found in $PATH. - ADVICE: - Install tmux and ensure it's in your $PATH. - ✅ OK The terminal provider is available.

Describe the bug

Typing @buffer or any other context placeholder into the opencode window doesn't send the related context to the model. Placeholder are sent as they are to the model.

asciicast

Configuration:

vim.g.opencode_opts = {
  port = 5999,
}

Steps To Reproduce

  1. Toggle opencode terminal
  2. Type, for example, @buffer
  3. Send the message

Expected Behavior

opencode.nvim should insert the requested context into the message

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions