opencode
opencode copied to clipboard
The open source coding agent.
Fixes #4697 issues
### Description Processes which are launched on Windows via Git bash.exe get orphaned. ### OpenCode version 1.0.152 ### Steps to reproduce 1. start `opencode` 2. ask it to run `npx...
### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Here’s...
### Description "oldString and newString must be different" ### OpenCode version v1.0.109 ### Steps to reproduce ``` Current problematic line ##: await runCommand('npm', ['run', 'runtime:cli', 'queue', '--', VARIABLE], 'Queue item');...
This PR adds a powerful new plugin hook to opencode making it possible to run plugins through custom /commands registered by the plugin itself allowing for code execution needs sdk...
### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request ##...
### Question To me as a user it seems it sometimes uses WSL2 to execute a bash command and sometimes it uses the power shell instance that I start opencode...
### Description When I try to update to the latest version (1.0.153), I can't start opencode and report the following error: ```bash ➜ ~ npm install -g opencode-ai added 1...
``` AI_TypeValidationError: Type validation failed: Value: {"id":"usage-1753417795","provider_id":"or","model":"qwen3- coder","usage":{"prompt_tokens":5186,"completion_tokens":35,"total_tokens":5221,"multiplier_applied":2,"prompt_tokens_details": {"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_to kens":0,"rejected_prediction_tokens":0},"zj_usage":{"multiplier":2,"prompt_cost":10372,"completion_cost":70,"total_cost":10442, "credits_remaining":282833.449999981}},"request_id":"zj-v1cc-fbf09f7e-8f1d-4d50-b7ae-a1f268cb2d48"}. Error message: [{"code":"invalid_union","errors":[[{"expected":"array","code":"invalid_type","path":["choices"],"message":"Invalid input: expected array, received undefined"}],[{"expected":"object","code":"invalid_type","path":["error"],"message":"Invalid input: expected object, received undefined"}]],"path":[],"message":"Invalid input"}] ``` opencode.json ``` { "$schema":...
### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request **Current...