We have scattered reports of memory issues so we are going to tackle them all in a central place. PLEASE DO NOT RUN YOUR LLM AND SUGGEST SOLUTIONS IT IS ALWAYS WRONG What we need help with is collecting heap snapshots. There are two ways to do that. Manual snapshot flow - run opencode (terminal not desktop) - use it until memory has grown (we don't need craz
### Issue for this PR Closes #9165, #26680 ### Type of change - [ ] Bug fix - [X] New feature - [ ] Refactor / code improvement - [ ] Documentation ### What does this PR do? Adds Kiro (AWS) as a provider to opencode through bundled plugin ([opencode-kiro](https://www.npmjs.com/package/opencode-kiro)). It uses the AI SDK compatible package [kiro-acp-ai-provid
## Problem OpenCode supports: - Provider fallback **only** when the model ID is the same - Static agent-level model overrides There is **no way to define fallback between different models**, e.g.: > “If model A errors or rate-limits → automatically retry with model B” This causes long-running agent workflows to fail on transient provider/model issues and for
### Description Mid-session suddenly OpenCode stopped working and claims that `The latest version of this model is only available hosted in China and requires explicit opt in: https://opencode.ai/workspace/wrk_01KT2AY9J4V90A83HFP3M9CEYW/go` ### Plugins none ### OpenCode version 1.15.13 ### Steps to reproduce 1. Be signed into OpenCode Go 2. Have "Enable mode
### 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 Right now If I queue message there is no way to "unqueue" it. Sometimes I overcorrect the agent and It invents the fix simualteniously with me so I end up wasting its attention by par
### 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 Please add crypto support for payment of opencode go.
### 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 A `/reload` that reloads config files like `opencode.jsonc` of global and project level and also `.opencode/` this way without having to close and open the tui just able to reload eas
### 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 Migration to Drizzle for session storage/state has opened the door to enabling support for other DBMS' (e.g. postgres). We run opencode on temporary infrastructure, this would enable
### 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 Is there any interest in getting mermaid diagrams to render in the Chat UI?? I've found it to be really useful to ask opencode to diagram code flows or documented processes for me to
# [BUG]: Gemini 3 Pro function calling fails - missing `thoughtSignature` support ## Description When using Gemini 3 Pro models (`gemini-3-pro-preview`) with function calling/tool use, requests fail with error: ``` Unable to submit request because function call `default_api:webfetch` in the 4. content block is missing a `thought_signature`. ``` ## Root Cause
## Feature Description Add a command to the command palette that reloads/restarts OpenCode to reflect configuration changes without having to manually exit and start again. ## Use Case When making changes to OpenCode configuration files (e.g., `opencode.json`, `AGENTS.md`, etc.), users currently need to: 1. Exit OpenCode completely 2. Restart OpenCode manual
### 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 Support inline skill invocation using $skill-name syntax anywhere in a prompt (not just at the start). Currently, OpenCode requires skills to be invoked via slash commands at the begi
### 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 ## Description Currently, OpenCode does not support specifying multiple skills simultaneously in a single prompt. When I input multiple skill commands such as `/vue3 /vue-router-v4`,
### Description On Windows 11 ARM64, the native ARM64 OpenCode binary works for non-interactive commands, but the TUI fails to initialize. The native binary successfully runs commands like: - `opencode.exe --version` - `opencode.exe --help` - `opencode.exe debug --help` - `opencode.exe debug paths` However, starting the interactive TUI does not start correct
Hi guys, Hope you are well. I would like to make a feature request, I think this would be a wise and efficient design choice, even somewhat popular: Modify the behavior of the opencode run --session flag. Current behavior: Input: opencode run --session ses-abc (or abc) hello Output: "Resource not found" (if ses-abc) or "Invalid string - must start with ses"
### Description When I clicked "Allow once", I couldn't click it. When I clicked "Allow always", it kept repeatedly jumping to "Always allow", and when I clicked "Reject", I couldn't submit the content in "Tell Opencode what to do differently", causing the session to get stuck here. Moreover, even after I directly closed the VSCode Opencode plugin, it still
### Description Hello. I've a Go+React TypeScript project. The front-end code in TypeScript is located in a `/web` subdir of a repo. If I run opencode in a root dir of the repo, it doesn't use TypeScript language as `package.json` and `node_modules` are located in the `web` sub directory. At the moment, the only way to workaround this is to start `opencode`
### Description For about 3 weeks the web UI stopped recording my sessions in it only my old sessions and projects. all new projects and sessions are not showing. ### Plugins opencode-anthropic-auth ### OpenCode version 1.1.35 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System macOs taho ### Terminal _No
### 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 ## 🚀 Feature Request: Support Agent-Authored PRs in Permission Checks ### Summary I’m building a **fully agentic development workflow** using OpenCode, where agents autonomously triag
## Core ### Bugfixes - Made session compaction keep complete recent turns and produce clearer summaries for smaller models. - Added MERGE Gateway reasoning variants so those model options work correctly. (@MatthewFeroz) - Capped automatic session retries and added jitter to reduce repeated retry storms. - Enabled PDF attachments for GitHub Copilot models tha
## Core ### Bugfixes - Made session compaction keep complete recent turns and produce clearer summaries for smaller models. - Added MERGE Gateway reasoning variants so those model options work correctly. (@MatthewFeroz) - Capped automatic session retries and added jitter to reduce repeated retry storms. - Enabled PDF attachments for GitHub Copilot models tha
### 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 The Zen usage history at `opencode.ai/workspace/...` currently shows individual API requests with their model, token counts, and cost. This is useful but missing some basics: - **Usag
### 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 **Problem** OpenCode has no built-in way to configure the `openrouter/fusion` model. It always runs with OpenRouter’s default Quality preset (Claude Opus + GPT + Gemini), which is exp
### Description When using Kimi K2.5 or MiniMax2.5 (free opencode versions) i encountered this error: "Free usage exceeded. Add credits https://opencode.ai/zen" Also i have $3 balance in Opencode Zen. So its not a balance issue, i guess. ### Plugins _No response_ ### OpenCode version 1.2.6 ### Steps to reproduce 1. Start opencode 2. Choose Kimi K2.5 or Minim
### Issue for this PR Closes #40171 ### Type of change - [x] Bug fix - [ ] New feature - [ ] Refactor / code improvement - [ ] Documentation ### What does this PR do? Two gateway fixes for the Zen/Go `/v1/responses` endpoint when the upstream speaks chat completions (`oa-compat`): 1. **Complete Responses-API SSE lifecycle.** The stream converter only emitted
### Description All OpenCode Zen models return `AuthError: Request blocked by upstream provider.` — **every single model**, both paid and free. This is NOT a client-side issue. Direct provider API keys (DeepSeek, Anthropic) work perfectly. Steps to reproduce 1. Connect OpenCode Zen via `/connect` with a valid API key 2. Run any Zen model: opencode run "hola"
### Issue for this PR Closes #6231 Closes #27553 ### Type of change - [x] Bug fix - [x] New feature - [ ] Refactor / code improvement - [ ] Documentation ### What does this PR do? - Adds `Local (LAN)` discovery in `/connect` for local OpenAI-compatible servers. - Combines mDNS, localhost probing, and bounded LAN probing to find reachable local instances. - L
## Summary The local SQLite store (`~/.local/share/opencode/opencode.db`) grows **unbounded** on long-lived instances because the event-sourcing `event` table is never pruned, capped, or compacted. On two of our long-running instances it reached **~13 GB each**, filling a 22 GB volume to 97–99% and eventually producing `sqlite3.OperationalError: database or
### Description Opencode has a scroll-able output area that scrolls within, but this style is a bit annoying if you are using this inside Neovim where scrolling up in normal mode does nothing whereas claude-code would show the entire history. ### Plugins _No response_ ### OpenCode version 1.1.6 ### Steps to reproduce _No response_ ### Screenshot and/or share
### Issue for this PR Closes #17940 #19348 #29869 #29871 #29962 #29936 #29977 #30302 #31593 #31686 #31890 #32785 #32801 #33313 #33615 #42040 ### Type of change - [X] Bug fix - [ ] New feature - [X] Refactor / code improvement - [ ] Documentation ### What does this PR do? This PR changes `.git/opencode` from the hash of the repo name to json; with a version a
### 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 For context https://x.com/andrewmccalip/status/2065049432652189933?s=20 Currently with kickback brands face a disadvantage that even after 10k impressions they get 0 conversions since
### 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 Would be great to have a tool that can search conversation history. This would effectively create an instant memory ability. Also once you switch to a new chat its hard to get old con
### What happened? A plugin configured as `oh-my-openagent@latest` stayed pinned to an older npm package version in OpenCode's plugin package cache, even though npm latest had advanced. This caused OpenCode to keep loading old plugin behavior until I manually removed the cached package directory and pinned the plugin to the current version. ### Evidence My O
### Description <img width="2112" height="1247" alt="Image" src="https://github.com/user-attachments/assets/7687cefd-2438-488c-b846-5a0fa49a01cc" /> "Auto-accept permissions" button is disabled when "New layout and design" is enabled. The button works perfectly fine in the default (classic) layout. <img width="2085" height="1242" alt="Image" src="https://git
### 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 When using OpenCode for Windows (Desktop or EXE) in an offline environment you get the error ```Transport error get (GET https://github.com/BurntSushi/ripgrep/releases/download/15.1.0
### 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 ## Problem Permission rules for `grep` and `glob` match the search pattern, not the matched file path. So this config: ```json "grep": { "*.env": "ask" }, "glob": { "*.env": "ask" },
## Problem When opencode generates files (reports, documents, images, etc.), the file paths displayed in the terminal are not clickable. Users have to manually copy the path and run `open <path>` to view the files. ## Current Behavior File paths appear as plain text in the terminal, requiring manual copy-paste to open. ## Expected Behavior File paths should
### Description Description A critical error occurs when attempting to use the Open Code interface (Gemini 3 Pro Preview) inside a tmux session. The server crashes immediately or shortly after initialization, displaying the following status message: [server exited unexpectedly] Environment Information OS: MacOS M1 Taho26.2 Terminal Emulator: iTerm2 / Alacrit
### Description [https://github.com/zed-industries/zed/issues/56379](https://github.com/zed-industries/zed/issues/56379) - The above is the problem I'm encountering when using the OpenCode Go API with the `edit_predictions` feature of the Zed Editor. - Could you please help me review the last comment and resolve it? ### Plugins _No response_ ### OpenCode ver
### Description # Issue: Free Usage Limit Exceeded on First Request (DeepSeek V4 Flash Free / OpenCode Zen) ## Summary The model `DeepSeek V4 Flash Free` (provider: OpenCode Zen) returns a "Free usage exceeded" error immediately, despite no prior requests having been made under this account/session. ## Environment - **Client:** OpenCode (terminal-based AI co
### Description The day before yesterday, I started using the OpenCode DeepSeek V4 Flash Free model via OpenCode Zen. At first, everything worked. At about 3 a.m., I went to bed. Today I decided to try it and it doesn't work for me now. The error is given by Free usage exceeded, subscribe to Go. I thought I had a problem with my account, so I changed my acco
## Description After exiting the opencode TUI (via quit, Ctrl+C, or process stop), mouse escape sequences appear as garbled text in the terminal: ``` 35;89;19M35;84;20M35;76;22M35;71;23M35;67;23M35;67;24M35;67;25M35... ``` This is a separate issue from in-session mouse garbling (#3199 / PR #19520). The in-session bug is about fragmented SGR sequences leaking
### Description In GitHub, when opencode is triggered (by `/oc` or `/opencode`) from an inline review comment (`pull_request_review_comment`), the "👀" reaction is correctly placed on that **inline comment**, but the reply is posted to the **PR Conversation** as a separate top-level comment. The review thread itself (the inline comment) gets no reply. related
## Summary Add first-class Mermaid diagram and LaTeX math rendering to the OpenCode V2 TUI. Mermaid should be the initial priority. LaTeX support should cover both display math and inline math embedded within surrounding prose. ## Scope - Render fenced Mermaid blocks as diagrams in session content. - Render display LaTeX expressions. - Render inline LaTeX wi