Skip to content

Conversation

@jugarpeupv
Copy link
Contributor

@jugarpeupv jugarpeupv commented Dec 29, 2025

It seems to me that global_keymaps config value is not respected, you can see in the video once i open opencode and move the focus to other pane outside of it and press a, then there is a warning from opencode

"no permission request to accept"

Screen.Recording.2025-12-29.at.09.45.25.mov

@sudo-tee
Copy link
Owner

Thanks for the fix.

@sudo-tee sudo-tee merged commit dab6ef9 into sudo-tee:main Dec 30, 2025
@l00sed
Copy link

l00sed commented Jan 1, 2026

Hey @sudo-tee, for some reason this change broke my keymaps (configured under M.defaults.keymap.editor). I reverted this change locally and they started working again.

I think there might be an issue with the provided fix...

-- Default configuration
---@type OpencodeConfig
M.defaults = {
  preferred_picker = nil,
  preferred_completion = nil,
  default_global_keymaps = true,
  default_mode = 'build',
  legacy_commands = true,
  keymap_prefix = '<leader>o',
  keymap = {
    editor = {
      ['<leader>og'] = { 'toggle', desc = 'Toggle Opencode window' },
      ['<leader>oi'] = { 'open_input', desc = 'Open input window' },
      ['<leader>oI'] = { 'open_input_new_session', desc = 'Open input (new session)' },

@sudo-tee
Copy link
Owner

sudo-tee commented Jan 1, 2026

Thanks. I will have a look after the holidays.

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.

3 participants