The ask() function has some funky aspect to it #1513

Closed
opened 2026-02-16 17:31:20 -05:00 by yindo · 3 comments
Owner

Originally created by @resistorsoftware on GitHub (Aug 27, 2025).

Originally assigned to: @thdxr on GitHub.

The known universe: Arch linux, opencode v0.5.24, neovim 0.12 dev, NickvanDyke opencode plugin for neovim.

I run a lua command in my current neovim buffer full of standard Ruby on Rails Ruby to do with a controller, such as this simple ditty:

require('opencode').ask()

And this does indeed send the buffer to opencode, along with my question, which I see in opencode. Interestingly, I do get an answer from the opencode request to the current LLM I have set. All good! But.. there is also this first artifact, and I am curious as to its origin. Can anyone provide an explanation as to what this might stem from?

Read argumement
Error: File not found: /home/beer/Documents/2025/Apps/paleale/argumement

So this file, argumement is indeed not present, so not found, but what is generating a search for it? Why? It seems benign, but I am curious.

Originally created by @resistorsoftware on GitHub (Aug 27, 2025). Originally assigned to: @thdxr on GitHub. `The known universe: Arch linux, opencode v0.5.24, neovim 0.12 dev, NickvanDyke opencode plugin for neovim.` I run a lua command in my current neovim buffer full of standard Ruby on Rails Ruby to do with a controller, such as this simple ditty: `require('opencode').ask()` And this does indeed send the buffer to opencode, along with my question, which I see in opencode. Interestingly, I do get an answer from the opencode request to the current LLM I have set. All good! But.. there is also this first artifact, and I am curious as to its origin. Can anyone provide an explanation as to what this might stem from? ``` Read argumement Error: File not found: /home/beer/Documents/2025/Apps/paleale/argumement ``` So this file, *argumement* is indeed not present, so not found, but what is generating a search for it? Why? It seems benign, but I am curious.
yindo closed this issue 2026-02-16 17:31:20 -05:00
Author
Owner

@rekram1-node commented on GitHub (Aug 27, 2025):

what .ask() are you referring to?

I may just be blanking but is this in regards to sdk? an integration?

@rekram1-node commented on GitHub (Aug 27, 2025): what .ask() are you referring to? I may just be blanking but is this in regards to sdk? an integration?
Author
Owner

@rekram1-node commented on GitHub (Aug 27, 2025):

maybe some code would be helpful

@rekram1-node commented on GitHub (Aug 27, 2025): maybe some code would be helpful
Author
Owner

@resistorsoftware commented on GitHub (Aug 27, 2025):

So sorry! When calling the opencode.input, as in this little ditty from the opencode.nvim project:

function M.ask(default)
  require("opencode.input").input(default, function(value)
    if value and value ~= "" then
      M.prompt(value)
    end
  end)
end

Which leads to a call to input, which leads me to hell, and I apologize. Am sorry for wasting time. I really don't want to try and debug opencode+opencode.nvim chain... far too complex for way too little gain!

@resistorsoftware commented on GitHub (Aug 27, 2025): So sorry! When calling the opencode.input, as in this little ditty from the opencode.nvim project: ``` function M.ask(default) require("opencode.input").input(default, function(value) if value and value ~= "" then M.prompt(value) end end) end ``` Which leads to a call to input, which leads me to hell, and I apologize. Am sorry for wasting time. I really don't want to try and debug opencode+opencode.nvim chain... far too complex for way too little gain!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1513