r/opencode • u/sedatoztunali • Sep 02 '26
Goodbye Opencode
FINAL UPDATE AND MY THOUGHTS
I believe I understand what's going on, and I've explained it it at length here.
This is just my finding in this particular problem. It has happened and will happen in other similar cases. OpenCode will continue to evolve.
----------
Goodbye Opencode, all good things come to an end.
First of all, I'm a software developer with 30+ years of experience, not a Vibe coder, and I'm not new to this. Also, I use Opencode in its purely vanilla form. Besides Opencode's defaults, I don't have any plugins, MCPs, etc. installed. Just my own skills, own plugins, own MCPs, etc.
I've been using Opencode almost since its first day. It had a nice, positive development and, according to Claude, was a very good alternative. This continued for quite a while. Although we experienced problems from time to time, these were to be expected. However, since May/June, it has started to become increasingly erratic.
First, one day while working on a project, the Docker service suddenly shut down and wouldn't start again. That's how I discovered I had no space left on my disk. I knew this was impossible, and I found the cause was Opencode. Somehow, the "opencode-wal-*.db" file had been created repeatedly under "/System/Volumes/Data/private/var/folders/4q/*". Every time I cleaned it up, Opencode would put it back. We struggled for a long time, but I couldn't figure out the reason. Then, suddenly, it fixed itself!
Yesterday, around 11:30 AM, I felt something was wrong with the network. By 1:00 PM, it was noticeable. Screen sharing within the network was freezing for 5-10 seconds, streaming was interrupting, web search was unresponsive time-by-time. Then, one by one, Unhealthy errors started coming from the services in Home Lab. The cycle of 3-5 minutes healthy, then unhealthy continued constantly. Service responses, which are normally under 100ms, were approaching 10 seconds, and sometimes even timeouts were occurring. I tried for hours to understand the reason, but I couldn't find a logical solution. I accidentally noticed while updating my Mac that everything was fine while my device was off. Later, I realized that the same thing kept happening whenever I opened Opencode and started working. Now I'm analyzing the Router, Firewall, Mac, and other logs to try and figure out what's going on, but this is the last straw.
This is an open-source project and respect to creator and contributors, and therefore, of course, it has its advantages and disadvantages. That's perfectly understandable. I have enough experience in this field to know when to stop, and today is the day.
UPDATE: Possible cause.
32
u/danielslyman Sep 02 '26
Any developer with 3+ years of experience will be able to tell, this is nonsense
2
u/sedatoztunali Sep 03 '26
Have you been able to read and understand my latest findings, or are you waiting to gain more than 3+ years of experience?
7
u/danielslyman Sep 04 '26 edited Sep 04 '26
I don’t have time for that. Quite frankly I’ve been running opencode for quite a while now on separate coder.com workspaces with several plugins and MCPs in a multitude of configurations. Never once did it nuke anything. If anything my disk filled up because I was lazy and sloppy. So no idea what else you’re doing in the background but blaming this on opencode just seems odd to me. Not trying to start a fight. Maybe you’re right but then that must be such an edge case based on / caused by your underlying infrastructure.
Besides, as a 30+ years of experience dev, how have you not realized: this is the internet, no one cares 😂. Report the bug and / or move on to another piece of software for which you paid: nothing.
2
u/toadi Sep 05 '26
He is using reddit like a github issue thread... Would be more productive to actually create an issue on the project or even connect to their project discord channel.
But he prefers to whine on reddit and surprised people don't like whiners.
3
u/scanx147 Sep 03 '26
Tout développeur avec à peine plus de 3 ans d'expérience est encore un bébé... 🙃
0
-9
104
u/Mobile-Confusion-542
Sep 02 '26
•
Fucking hell mate this isn't an airport no need to announce departures
2
u/jeffwadsworth Sep 05 '26
Why do so many do this? Just leave.
0
u/KronenR Sep 06 '26
They just want to rage about the thing they don't like, hoping some developer will see it, apologise, and beg them to come back 😂 What’s concerning is the people who upvote these stories.
0
u/sedatoztunali Sep 06 '26
Congratulations, you've figured out the whole game.
2
u/KronenR Sep 06 '26
Seems like you’re the one who figured out the whole game, just a little too late. You’d already written the rage post by the time you realised it wasn’t OpenCode’s fault at all.
25
u/Lost_County_3790 Sep 03 '26
PEOPLE ON REDDIT LIKE TO MAKE IT LOUD AND CLEAR WHEN THEY ARE LEAVING A PROJECT
6
u/JaNkO2018 Sep 03 '26
WHAT???
6
u/Available-Craft-5795 Sep 07 '26
HE SAID: PEOPLE ON REDDIT LIKE TO MAKE IT LOUD AND CLEAR WHEN THEY ARE LEAVING A PROJECT
2
-4
u/twinkbulk Sep 03 '26
What do you think he should’ve done instead?
3
u/sedatoztunali Sep 03 '26
I understand their motivation for saying this. They're basically saying, "What does this have to do with us? Get lost!" :)
Actually, I started this topic in anger, muttering "To hell with OpenCode." Sometimes, instead of silently walking away, you just want to say it out loud in the same community.
On the other hand, of course, I was continuing my research into why this happened. I believe I've found the answer. Someone else reading this might now benefit from it in a different way.
29
u/Trovebloxian Sep 02 '26
How did opencode mess up something network wide?? In theory it should all be local on a single machine unless your running it off of your homelab. I dont know much about home labbing but this seems interesting. Do share details if you find the main cause, im curious now and want to check if the same is happening on my machine
3
u/geearf Sep 02 '26
I don't know about OP but in the past I had PulseAudio completely mess up my whole network to the point my tablet was sort of unusable. Of course I thought it was the tablet or the router, never thought it was the one wired computer that worked fine... Turned out PA was spamming the network with I forgot what and it brought everything else to a crawl.
4
u/sedatoztunali Sep 02 '26
u/geearf It seems my story is similar. I had already sent the following reply before seeing your message.
0
u/sedatoztunali Sep 02 '26
u/Trovebloxian I don't fully understand the reason yet. However, according to my initial findings, DNS Resolver timeouts start occurring on the router around 11 AM (around the time I noticed something strange on the network.), increasing from 2-4 per hour to 25-30 per hour. From 1 PM onwards (the times when services started reporting "unhealthy"), DNS queries from my machine (the one running Opencode) reach up to 600 per minute. Naturally, DNS Resolver timeouts become over 150 per hour. Because DNS cannot be resolved, all devices on the network start experiencing various problems and reports unhealthy, dns errors, etc.
I'm almost 100% sure my device isn't infected. I always pay attention to what I download and install. Also, this device is for work purposes; I don't use it for my daily/personal things. Since I closed Opencode yesterday, there have been no problems whatsoever. I'm working on the same project with Copilot and/or Kilo Code from the terminal, or with VS Code from the IDE, without any issues.
I moved my device to an isolated network/VLAN. I started working with Opencode again, and the scenario I described above started repeating.
3
u/BreakfastSecure6504 Sep 03 '26
u/askgrok resuma kkkkkk
2
u/AskGrok Sep 03 '26
Resumo: O dev veterano usava o Opencode desde o início (sem plugins), mas desde maio/junho virou bagunça. Primeiro encheu o disco com arquivos DB repetidos, agora tá bombardeando DNS (600 queries/min) do Mac, derrubando a rede inteira da home lab (timeouts, serviços unhealthy). Isolou o PC e repetiu o caos. Desistiu e migrou pro Copilot/VS Code. Kkkk foda.
3
u/_www_ Sep 03 '26
opencode-wal-*.db bloat in /System/Volumes/Data/private/var/folders/ stems from SQLite running in Write-Ahead Logging mode paired with Bun's runtime. In recent releases, Bun's underlying SQLite implementation defaults to mapping the entire database into memory via mmap, failing to handle auto-vacuuming or WAL checkpointing properly during long-running sessions. When a local process repeatedly fails to checkpoint or release file locks, SQLite generates unbounded -wal files until disk space hits zero. Local Sidecar Service Loops: OpenCode runs a background daemon (opencode-cli sidecar) that handles state, terminal PTY sessions, file watching, and local WebSockets. Network Saturation: When the underlying SQLite state database gets locked or corrupted by the WAL issues, the daemon often enters a high-frequency retry loop across local IPC/WebSocket channels. Host Resource Exhaustion: rapid polling/reconnection loop floods the Mac's network stack (mDNS/Bonjour local discovery, local socket buffer overflows, or multicast traffic), causing latency spikes across the host's physical network adapter and bringing down local DNS/mDNS response times.
4
u/sedatoztunali Sep 03 '26
I tried the scenario I suspected, and this seems to be the reason. From my perspective, OpenCode is the main actor, and the model (gpt-5.4 high) helped it.
I skipped some details. I explained it in the shortest way possible.
Here's what happened: I used OpenCode to migrate the Glance Dashboard to the Gatus Dashboard. I asked it to generate the Gatus config file by looking at the Glance config file. During this process, the main agent manages this with sub-agents. It assigns the task of writing the new config file to a sub-agent. The sub-agent produces the new file. In addition, it wants to test the current service statuses. It does this with a script. Then it writes another script to verify that it's running every minute. Then it puts this file in the ".opencode/plugin/" folder in the project folder and verifies that the plugin is installed. Then it reports to the agent, but this report doesn't mention this script/plugin. It only says that it verified the current service statuses. The main agent doesn't mention this to me at all. On the other hand, it didn't ask for my permission to write to this folder. The agent went straight and wrote.
After discovering this, I tried it myself. I started OpenCode in the relevant folder. Then I added a plugin to the plugins folder in that folder. OpenCode didn't show a toast on the screen regarding this. This was removed in commit "09cd7445f1" "to reduce UI noise". But when I looked at the plugin list, I saw that it was loaded and started working.
The information I found is as follows:
Commits: afe3ebbc35, 09cd7445f1, a618946b7e, 55b2bb8a3a, 93042ddaf1, 0a02102ab3, 4e546127f1.
PRs: 39174, 39224, 39356, 39776, 41309, 41618, 43447, 46918, 46922.
In summary: In July, supervisor + silent load was added. In August, reliability was worked on. In September, UX and performance were worked on.
I even noticed this while testing it. The plugin is loaded by a background service. TUI is just like a proxy. I wrote the following topic to send messages to Slack every minute. Even after closing OpenCode and even the terminal, the messages continued to arrive. As long as this background service didn't close, the messages continued to arrive; in other words, the service continued to function. This explains why everything seemed normal during the Mac update in my original message, but the same thing happened again when I switched to the problematic session.
For those who want to try it:
1- Go to the project folder.
2- Start OpenCode and list the existing plugins using "/plugins" but don't exit OpenCode.
3. Go to the project folder again from another terminal and run the following command. It will create a plugin that does nothing.
mkdir -p .opencode/plugin
cat > .opencode/plugin/test-noop.ts <<'EOF'
export default {
id: "test-noop",
setup: async () => {},
}
EOF4. Return to the terminal with OpenCode open and check the list again with "/plugins", the newly created plugin is there. OpenCode didn't tell you anything during this process. It silently installed the loaded the plugin.
After reading this, some of you might say things like, "OpenCode didn't do anything wrong," "the model is the real culprit," "you should have protected your folder," "check your plugins frequently," and many more. You're all right; this topic received more interaction than I expected, and I responded to each message individually. You may all have different perspectives and be right, and there's no point in delving into this further.
From my point of view, a capable tool like a plugin shouldn't be able to be silently installed and run. It doesn't matter what it does. From what I understand of the code, "the plugin code doesn't go through the permission system. The permission prompts cover the agent's tool calls." Plugin code is considered trustworthy and executed within the service process. It's executed under the account of the user running it. It's similar to extensions running in VSCode.
For example, I wrote a plugin in the background that sends all the file names in this folder to Slack, and it sent them all to me nicely.
PS: I tested with version 0.0.0-beta-108999. This version supports hot-reload. It may not be available in previous versions. In this case, the plugin will load when OpenCode starts in this directory again.
3
u/bytejuggler Sep 04 '26
Well done for finding this out. I think (If you feel that generous) you should report this to the OpenCode project. I don't think in totality this behaviour is acceptable or desireable as-is. 👍
2
u/sedatoztunali Sep 04 '26
Yes, I started a PR locally. I'm working on it. I don't think that was the intention, but it seems to have this side effect.
1
u/KronenR Sep 06 '26
From my point of view, a capable tool like a plugin shouldn't be able to be silently installed and run. It doesn't matter what it does.
From my point of view, if you put a new plugin in the plugin folder, and the app treats that folder as its plugin directory, it should be loaded automatically, just as it did. If you don't want a plugin to be loaded, don't put it in that folder.
0
u/sedatoztunali Sep 06 '26
Let me clarify something. I didn't put anything in this directory here. The agent made that decision while running and placed it there. On the other hand, if any MCP/Plugin or anything else you use adds a file here, you won't know about it unless you suspect something. The files in this directory are "silently" loaded by the background service and executed with the user privileges running Opencode. If it's a malicious tool, it could temporarily write something here and then delete it after taking what it wants. The data here is loaded "silently" or run without ensuring it hasn't been tampered with.
2
u/KronenR Sep 06 '26
Then be stricter with your agent instructions. Don’t blame the agent. The same thing could happen with any instruction or skill. It doesn’t need to be a plugin to be used maliciously.
1
u/vplatt Sep 05 '26
I mean... all you've done here is convince me that I should be running my AI sessions, whether in OpenCode or another product, in a VM. Then committing my setup and code to external repos, and then nuke the whole damn thing between projects.
Over the long haul, I think we're all going to find that it's impossible to completely sandbox what these agents do. The whole design is just begging for unintended consequences. The smartest thing we can do is limit the blast radius.
4
u/taytay735 Sep 04 '26
30 years and unable to debug or troubleshoot this?
Time to retire, son.
2
u/sedatoztunali Sep 04 '26
Calm down, champ. While you were changing your diaper, I was debugging. I've already found and fixed the problem.
4
3
4
u/CaesarTraianusCXVII Sep 02 '26
Install Opencode2 if you already dont use plugins and heavy customizations. It's much better IMO
5
u/sedatoztunali Sep 02 '26
u/CaesarTraianusCXVII great advice. I'd completely forgotten about it, I'll try it, thanks.
161
6
u/bytejuggler Sep 02 '26
tcpdump, wireshark, wireless diagnostics; tools you might use to detect what's going over the network.
2
u/Healthy-Zebra-9856 Sep 02 '26
I have detailed analysis of all this is wrong in OpenCode that you can fix if you like the way it is. The code is out there.
-1
u/sedatoztunali Sep 02 '26
u/Healthy-Zebra-9856 I didn't quite understand what you meant, but if you're talking about fixing things by contributing to the source code, I'll do it when I figure out why. I've contributed before, sometimes with simple PRs, sometimes with more complex ones, to the best of my ability. After all, that's one of the advantages of being open-source.
4
u/Healthy-Zebra-9856 Sep 02 '26
You dont have to contribute it. You can run it locally. Thats what I did with my harness as I diverged quite a bit.
9
2
u/ucharx Sep 02 '26 edited Sep 02 '26
This is AI slop my friend , did you see their github ? Thousands of unanswered issues , in their v2 branch just bunch of AI agents doing updates (10-20 very big pr per day) no human involved ,software quality is decreasing each year , looking at opencode user experience I never seen in my life such an awkward ux! suddenly a model get 10x price hike with no headsup , if you open their terminal in linux session you cant even copy paste stuffs into it , if you redeploy it with docker it will completely mess up its session when you have a mounted volume for it , super high ram usage when it practically doing nothing and is just open !!
3
u/sedatoztunali Sep 02 '26
u/ucharx I agree with what you said. Perhaps that's why I feel like it's getting progressively worse.
1
u/charmander_cha Sep 02 '26
Sera que este problema estaria na versão opencode2? Ficarei de olho, pois tenho gostado do resultado
1
1
u/Longjumping_Ad_4249 Sep 02 '26
How will opencode cause network issue. If it's not hogging cpu or ram, why will machine hang. You can check outgoing requests from your machine
0
u/sedatoztunali Sep 02 '26
u/Longjumping_Ad_4249 The machine isn't freezing; I can continue with my work on it. However, because it's making so many DNS queries, the router's DNS resolver is starting to become unresponsive. Actually, the problem lies in the router's CPU/RAM values peaking during that specific period. This makes it feel like the browser, etc., is frozen, but it's not.
Yes, I've started monitoring egress traffic; I'll see how it goes when I test it in an isolated environment.
1
u/immersive-matthew Sep 03 '26
I would have agreed if my own experienced echoed or at least many others were noting the same thing but this seems to be an isolated situation and one that seems odd to walk away from when they could have just shared their issues and allowed the open source team to fix, or even better give. The 30 years of development experience, give back to the community by fixing the issues as nothing stopping them. Seems like they just want to take and not contribute. Very emotional decision but each to their own.
0
u/sedatoztunali Sep 03 '26
u/immersive-matthew not exactly. I have tens of PRs, on the repository. Of course, I've contributed and continue to contribute, but how far can that go? Sometimes you just want to do your job, but you can't for some ridiculous reason.
Ultimately, this is an open-source project, everyone contributes here. These contributions sometimes produce good results, sometimes bad.
1
u/xtekno-id Sep 03 '26
And what harness u use rn? Pi?
2
1
u/ComprehensiveTaro168 Sep 03 '26
I would strongly recommend a packet capture on your laptop to see what it’s doing? Wireshark ftw!
1
u/sedatoztunali Sep 03 '26
u/ComprehensiveTaro168 yes, I've been following this. My device is sending a lot of requests to the DNS server (self-hosted). The logs point to the terminal with Opencode open. There doesn't appear to be anything active within Opencode. This doesn't happen even when starting a new session or continuing with an old one. It only seems to occur when I open a single specific session and type the first prompt. This doesn't happen when the same session is opened with Opencode2. That's an interesting situation.
1
u/mobileka Sep 03 '26
I have only 22 years of experience but I've never experienced anything like that with OpenCode. It literally feels like magic, I still can't believe that an open source project can be so superior to even the most well-funded commercial tools like Claude Code
1
u/sedatoztunali Sep 03 '26
I agree. We develop and use these kinds of tools with that in mind. I have no doubt that everyone contributing to this project is doing so in good faith and to do better.
The problems I encountered might be due to a lack of skill, different usage patterns, unexpected reasons, and many other factors. My intention here is not to disparage the project or to say that this tool is terrible.
Lately, I've been encountering more "pointless" problems than usual.
1
u/C4ntona Sep 03 '26
are you using llms on your servers without any protective harness? Thats not a very 30y of experience thing to do
1
u/sedatoztunali Sep 03 '26
No, this is a dedicated PC for development. Not a server. I have nothing running on a VPS/server in production with an LLM.
This PC has a no-trust configuration. It's in a separate VLAN and doesn't have access to other VLANs. It doesn't have root permissions. The firewall is active. Of course, it has access to some resources like repositories, the internet, etc., such as UDP/53. Things like that.
What kind of "protective harness" are you using, for example?
1
u/Horror_Description87 Sep 03 '26
Without reading all comments here a few thoughts:
30 year of experience should have given you more system knowledge. Analyzing network traffic with an ai assist is pretty easy even if you do not know all commands in your mind. TCP dump+ Wireshark are battle tested tools.
Blaming Opencode for not monitoring your system free disk (should a Mac not show a popup warning?). Cleaning up after work is something really common in other working areas. Do you really want to keep all these sessions forever? There is an /export command aswell.
Using these tools without MCP, skills or plugins is like using an iphone without installing apps.
As end user expecting a product Claude will be a better choice.
1
u/sedatoztunali Sep 03 '26
It's obvious you haven't read it, so let me answer briefly:
I already did it. Network traffic saturation and unresponsiveness were just a consequence. The cause was that while working on the project with Opencode, a very high number of "meaningless" and "unnecessary" DNS requests were sent from the terminal where Opencode was open.
Of course, I keep my house clean. Sessions don't live with me until they die. The disk issue I mentioned isn't something that unfolds over days or weeks. It's about creating files of around 500MB within hours and completely filling up the disk. These are temporary data, and as a user, you are of course responsible for maintaining the device, but a software/tool developer should also clean up their own mess. If you're writing temporary things outside of defined temporary directories, you should clean them up.
I certainly use MCP, skills, or plugins. But I don't install and use them just because they're there or popular. I already use certain tools in my development environment that are suitable for their purpose. I'm not going to use OMP, BMT, Weave, or whatever you want, just because it has a high rating.
1
u/Latter-Parsnip-5007 Sep 03 '26
If you have 30yr of software dev, which you dont, you would be able to trace this issue and write a report. You cry like a junior when dropped into vi
1
u/sedatoztunali Sep 03 '26
I don't even feel the need to answer you.
1
u/Latter-Parsnip-5007 Sep 03 '26
yet you did. Got 15yr, but real turning my hair grey years in software dev and sec. You are full of shit
1
u/sedatoztunali Sep 03 '26
Then use those 15 years to make a technical argument instead of a personal one. I've narrowed this problem down to where the problem might be in the source code. What do you have?
1
u/Latter-Parsnip-5007 Sep 03 '26
I have wireshark. If my network misbehaves, I use wireshark to see whats being spammy. Also opencode has no way to find other devices on your network. They didnt write an ARP fetcher or anything that scans a network. The problem class you describe sounds like two or more DHCPs or DNS in one network
1
u/sedatoztunali Sep 03 '26
OK, we are coming somewhere. I'm not network/system or sec guy, here's the situation, as briefly as possible:
DHCP, Firewall, NAT, etc. everything is on the Router. As for DNS, AdGuard is installed in Promox LXC. There is no other DHCP/DNS, I'm almost 100% sure there isn't. Router DNS looks at AdGuard. From what I can see, the Mac running OpenCode looks at the Router as DNS, not AdGuard directly. This might be important in a moment.
It's true that Opencode does not find other network devices. What I've found so far: I was replacing Uptime Kuma with Gatus when the problem started. I migrated the same configuration to Gatus using Opencode. I checked, tested, sent the necessary files to LXC myself and got the service up and running.
According to the Opencode session record; during this migration, a sub-agent first checks the current status of these services. Then, it decides to simulate Gatus with a script that checks the status every minute and says "Unhealthy" if it takes longer than 1 second to respond. But the script itself is written to check every second and is placed in the "/plugin" folder within the project directory. Due to the PRs I linked above, it seems to have been hot-reloaded in this silent way. I have no idea why this file is there, on what basis the model decided to do this. This is my fault, not the tool's. At least it shouldn't be able to write to this folder. The problem with the Opencode part is that it loads it as "silent" even when in session. I don't see it unless I look in the folder or the plugins list.
Its effect on the network was as follows: I would like to remind you that I am not a network guy. The plugin is loaded when the relevant session is opened in OpenCode. It tries to do a health check on all services in homelab every second. This goes to the Router, the Router redirects to AdGuard and I think the response path is the same way. After a while, the router cannot keep up with this and starts responding late/not at all. Unheathly notifications also try to push and these are added to it so I can't even go to google when we can't get a DNS response, etc.
Of course, I can't be sure without reading all the relevant PRs and putting OpenCode in the version I'm having this problem with in a clean installed test environment.
1
u/Latter-Parsnip-5007 Sep 04 '26
So you spam your own network with health checks every second for every instance of opencode you have. Plugins do not load once, but for every opencode window opened
1
u/Just_Another_Scott Sep 03 '26
Does anyone know if this affects windows? Disgusting I know.
I've been using opencode religiously for about 6 months now and haven't noticed anything of the sort. I winder if it's a specific configuration that's causing it.
1
1
1
u/aniel300 Sep 03 '26
can someone give me in a nutshell what is happening here?
1
u/sedatoztunali Sep 03 '26
In short, I said goodbye and wrote about the last two examples of my experience. Then I received an unexpectedly large number of messages. I replied to all of them. You can probably see what happened if you look at the comment I linked in the Final Update section.
1
u/aniel300 Sep 03 '26
u having major issues using opencode in ur workflow? what harness are u planning on using now?
1
u/sedatoztunali Sep 03 '26
Overall, I was happy. In the last 3-4 months, I've started seeing more major problems. Major, in my opinion. I'm leaning towards Kilo Code right now. As far as I know, it's based on Opencode, Cline, and Roo. Or rather, a fork. The VSCode extension seems promising. It has native support for the providers I use. Anaconda recently acquired it. I'm not sure if that's good or bad yet. At least for now, it seems like the most suitable option for my current reality.
1
u/aniel300 Sep 03 '26
i have used claude code, crush, pi, harmesss and few other. currently using claude code with minimax but pi is also good. not using any mcp, pluggings etc at the moment but i need to do some research on this at some point. what makes kilo cli good?
1
u/sedatoztunali Sep 03 '26
The interface is very familiar, I'd even say it's the same. The configuration and file structure appear to be the same architecture. The sidebar is richer. Built-in memory and code indexing were the first features that stood out to me. Since we use Copilot in the office, I got a similar vibe. It can be set to global or local. I constantly use Visual Studio Code in my projects, and I liked what it offers in the VSCode extension and settings. Actually, it seems to have a little bit of everything. I've only been using it for a day, so it's too early to give an opinion.
1
u/aniel300 Sep 03 '26
i would need to check it out, thank u. i hqve never like opencode because it always corrupted my main.py code file and i lost progress, etc. but that could have been a end user error
1
u/Total-Cheesecake-825 Sep 03 '26 edited 29d ago
The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.
March wise recognise many grandiose vast cobblestone caption
1
u/sedatoztunali Sep 03 '26
u/Total-Cheesecake-825, I used the following command on my Mac to discover what was taking up too much disk space. I had no idea it could be related to OpenCode.
sudo find / -type f -mtime -1 -size +250M 2>/dev/nullFor example, it currently looks like this: opencode wal and opencode wal times. This command "finds all files that have been modified in the last 24 hours and are over 250 MB". I haven't used OpenCode on this device since I posted this (about 2 days ago). I only opened it around 4 PM to test my theory. I worked for 15 minutes and closed it. But these files had already been created. In fact, they were created in a way that would repeat. 14 files, each 9 GB :) Currently, files that fit this description take up ~129 GB of space. Crazy!
rm -f <opencode-wal-file-location>/opencode-wal-*There are some (43141, 14326, 15031, 29554, 36728) PRs related to WAL. All but one were closed, but I haven't bothered to look into them for the problem/solution.
This topic is very long and detailed as well, like this hot-reload discussion, so I won't go into too much detail.
Good luck, I hope it helps.
1
1
1
u/PanPanForReal 29d ago
Bro think we read all of those. I use opencode to summarize yours lol
2
u/sedatoztunali 29d ago
Of course I didn’t think so; it took you 45 days just to come up with a summary. I suspect that even if you were to read it, you wouldn’t understand it.
3
u/PhoenixxBR Sep 03 '26
pra mim ainda está funcionando normal, então vou continuar, até porque é o mais barato do mercado, e ja testei outros e não consegui me adaptar com nenhum.
7
u/BreakfastSecure6504 Sep 03 '26
u/askgrok resuma essa porra de livro kmkkkk
5
u/AskGrok Sep 03 '26
Resumo: cara usou o Opencode desde o começo, curtiu bastante, mas desde maio/junho virou bagunça. Gerou arquivo de DB gigante que encheu o disco, depois começou a foder rede, screen share, streaming e serviços do homelab (ficava healthy/unhealthy toda hora). Descobriu que só acontecia com o app aberto. Chegou no limite e deu tchau.
1
u/Top_Imagination_3022 Sep 03 '26
u/askgrok how did this happened?
3
u/AskGrok Sep 03 '26
The DB spam was likely a SQLite WAL bug—Opencode probably wasn't checkpointing or cleaning up those opencode-wal-*.db files properly, so they kept piling up in the temp folders until the disk filled.
The network meltdown sounds like a separate leak or runaway process: maybe excessive polling, unclosed connections, or some background service hammering the router/firewall when the app ran. Classic "app open = chaos" symptom of a resource or thread issue. Both point to unpolished code that got worse over time.
1
u/SensitiveKangaroo183 Sep 03 '26
u/AskGrok is it really the opencode in the fault here? If so is there anyway to prevent it from happenning?
2
u/AskGrok Sep 03 '26
Likely yes on the correlation. The disk-filling WAL files and network meltdown only happened with the app running, which points straight at Opencode (SQLite checkpoint bug + some runaway background process/polling/leak). Classic symptoms of unhandled resource management that got worse over months.
Prevention without the source is limited:
Update to the latest version immediately (bugs like this often get fixed).
Monitor with tools like
lsof,netstat, or Activity Monitor while it's open; kill/restart on spikes.Run it in a VM or container to isolate the mess.
Report the exact symptoms + logs on the repo (WAL spam and network impact are reproducible-sounding).
If it keeps happening, the "last straw" move was probably the right call.
2
u/TelevisionJolly8923 Sep 05 '26
I’m really concerned about people’s attention span, this is a medium length post at best.
1
u/EfficientEstimate Sep 03 '26
Wondering why clarifying at the beginning your years of experience. And at the end that you have enough experience to know when to stop.
Did not you learn how to collect logs and open an issue to the maintainer?
You just reported that you have some issues and included some rants but absolutely zero helpful facts. If that’s the result of your 30 years of experience, maybe you skipped some steps mate.
2
u/sedatoztunali Sep 03 '26
I wrote this to avoid getting simple/standard suggestions like collecting logs or opening issues, just like you asked, but it didn't work. Of course, I've done all of that and more. Collecting logs and opening issues is nothing more than self-serving moral compass. It needs to be accompanied by more consistent information.
As for the contribution part, I'm already doing that. The repository already closes around 65 PRs daily. I think this is also a contributing factor to what I wrote above; everyone is contributing. I prefer to do this less frequently and in a more controlled manner because general software engineering knowledge and knowing the context of a specific project are different things.
2
u/Farm_Boss826 Sep 02 '26
Could there be an old MCP server installed that you forgot about? I had a similar issue with due to an old MCP getting hung up.
2
u/PollutionDue7541 Sep 03 '26
Con el tiempo ha ido empeorando y es alto que pasa con la IA, para una primera versión good, pero luego empiezan los errores y cosas raras. Nada para mí, Opencode estuvo bueno al inicio, ahora tiene muchos problemas
2
u/Gabriel83730 Sep 03 '26
I stopped using OpenCode because one day I tried using it and it returned a segfault. Ever since that day it segfaults when I open it. Even after a full reinstall and switching terminals
2
u/0xMicheal Sep 03 '26
u/AskGrok why is this person with 30 years of experience in complaining, who also never leveraged the community creation with super ego, declaring his leaving statement in public?
1
u/AskGrok Sep 03 '26
Experienced devs often hit a wall with tools that keep breaking their workflow after months of reliability. Public exit posts are a common way to document patterns, warn others, and close the chapter without endless private debugging. Not everyone has bandwidth to grind community fixes on top of their day job.
2
u/observer678 Sep 04 '26
You are 100% correct, I've had a similar problem with everything freezing up and it's a critical bug which has been postponed for later in their repo (in fact if you are working with docker related stuff it's a nightmare). Coincidentally I'm also not a vibe coder. There are just too many red flags with this product. Unfocused team making memes full time on Twitter, many critical issues in the product, cult like vibe coder fanbase.. I'll end up making my own harness, it'll probably take a weekend.
2
u/D4vRAM Sep 04 '26
Use Omniroute with it. Configure it is a bit complicated if you are not known some stuff, but it worth it.
1
1
u/torrso Sep 02 '26
Try the opencode2 beta maybe first.
I have a similar background and setup, but my current pet project has grown maybe a bit too big to manage the way I'm trying to now. Also the crap produced by ds4f may be to blame.
The preallocated 10gb sqlite db without any kind of vacuuming is a bit sus to me too.
Or try the original golang based opencode that is nowadays called crush, it's quite similar but runs pretty fast. Obviously the current opencode was a TS clone of the original when they split due to some disagreements.
1
1
1
u/its_Ozriel Sep 03 '26
It felt like reading a couple's fight... Did you guys try Couple's Therapy? 💀👀
1
1
u/Mammoth_Ad_9619 Sep 03 '26
I ain't reading all that. What the hell is Reddit recommend me to read at 3 AM when I trying to sleep.
1
1
1
u/_www_ Sep 03 '26
Edit (or create) your global OpenCode configuration at ~/.config/opencode/opencode.json:
{
"server": {
"hostname": "127.0.0.1",
"mdns": false
}
}The bug is coming from bun, not opencode.
1
1
1
1
u/walter-smulders Sep 04 '26
As a professional developer of over 20 years I do sense that you either do lack quite some knowledge and/or insight in your actual job
1
1
u/HugeEntertainment820 Sep 05 '26 edited Sep 05 '26
Nice sorry not sorry…you sound like a douche. You don’t need to announce it. It’s like the ones who make an announcement that I quit this free service you’re offering! Lol.
Also, since you get to make announcements nobody cares about, I’ll take a stab. I manage a 20 devs, some 30 years plus to 2 year juniors. If you’ve been in this game, you should already know this. You don’t get better the more years you put into it…newsflash. It’s also your aptitude. For some strange reason I’m going to guess you’re not Martin Fowler…lol
1
1
1
u/capmanfolio Sep 07 '26
Good bye and until some wizard somehow resurrect the Hackintosh on Arm devices somehow
1
u/Brucesquared2 Sep 07 '26
Im a avid user myself, like you. Cant you rewrite the TypeScript? I found it to do the exact same thing in docker, not my screenshot thankfully. I habe cloned and rewrite portions myself since its open-source
1
u/dev_hmmmmm Sep 08 '26
OpenCode go send your request for certain models/plan to China and there's no way to turn it off or very clear info on it at all. I'd love for them to prove me wrong.
1
u/Naster17 Sep 02 '26
Try my fork of opencode, but for now it's better to compile it from source, npm versions is too old while I'm too lazy to fix it. https://github.com/Naster17/opencode-pro
1
0
u/wurkingbloc Sep 02 '26
red flag when i see opencode would install node modues in the skills folder. opencode + kimi3 is still the best combo experience for me so far.
4
u/sedatoztunali Sep 02 '26 edited Sep 02 '26
u/wurkingbloc to clarify: I'm just using a vanilla opencode installation. There are no 3rd party or open/closed plugins, extensions, skills, etc. whatsoever. The skills, plugins and MCPs I added to OpenCode are tools I developed myself. I have my own business and product. These are tools I developed for LLMs and coding tools, such as read-only data collection.
In this respect, there are no "unknown" additions to Opencode other than its original form.
1
u/enterme2 Sep 03 '26
I'm confused. "There are no 3rd party or open/closed plugins, etc" but at the same breath you say you use your own developed skills,extension, mcp , etc.. buddy you are the third party , and your setup is no vanilla.. it's highly customized now.. somewhere along the line maybe your plugins , mcp , etc cause the issue..
2
u/sedatoztunali Sep 03 '26
Let's put it this way: there isn't a single tool from the marketplace, git repository, or anywhere else whose contents I don't know. Anything within OpenCode either comes from the OpenCode installation or I add tools that I know what they are and have developed for my own purposes.
This is more accurate.
Yes, it seems like a plugin I wasn't aware of caused this. Even worse, when I'm working on an issue, it looks like the sub-agent has placed it in the plugins folder within the project. I definitely needed to configure it to prevent that.
1
6
Sep 03 '26
[removed] — view removed comment
-1
u/sedatoztunali Sep 03 '26
u/Winter-Ad9978 calm down, son. I started by writing code in the terminal all by myself. We didn't do everything by asking the chat like you do.
1
1
Sep 04 '26
[removed] — view removed comment
1
u/sedatoztunali Sep 04 '26
Yes, I found the reason. It wasn't actually bringing down the network, but it was compressing the DNS server. Here's what happened: During the Uptime Kuma -> Gatus migration, I checked the Uptime and requested that Gatus transfer the same configurations. The sub-agent wrote a script to verify that these services were healthy and placed it in the "./opencode/plugin" folder within the project directory. Unfortunately, the contents of this folder were silently loaded and run by the Opencode background service without verification. I also found the PRs for this. In short, because this faulty script, created "in good faith" by the agent/model, started performing health checks every second, the DNS crashed. Not a good feature. Neither the sub-agent nor the agent told me about this; it didn't show up as a file change, nor did it appear as a write request to the folder. Anyway, it's a long story :)
Yes, I checked the logs to understand why these files were constantly being generated, but I couldn't find any record of it. I thought it might be related to checkpoint blocking or a process not being properly closed, but I couldn't find any record of that either. When I looked at the source code, there wasn't actually any code snippet related to this, or maybe I couldn't find it. Maybe I didn't investigate properly or I couldn't see what was right in front of me. Even after completely wiping everything related to OpenCode from the device and reinstalling it, the files still appeared. Honestly, I just can't figure out or understand exactly why this is happening.
7
u/sedatoztunali Sep 03 '26
UPDATE:
I'm not 100% sure what exactly it is yet, but it seems like it might be related to the "plugin hot-reload".
I've seen write operations to the `/plugin` directory within the project in the session logs. I haven't examined it fully yet, but if I understand correctly, there's a hot-reload situation with the following (and perhaps others) PRs. During this hot-reload, we don't actually see a message or anything on the screen. We can only see it if the plugin list opens.
- https://github.com/anomalyco/opencode/pull/39174
- https://github.com/anomalyco/opencode/pull/39224
- https://github.com/anomalyco/opencode/pull/41618
- https://github.com/anomalyco/opencode/pull/46922
I'm trying to respond to each comment under the topic individually, but it seems like the number is increasing. Some are certainly right; they've said, "If you're leaving, goodbye, what does this have to do with us?"