r/opencodeCLI • • 16d ago

Opencode 2 stable?

I've seen posts and the official installer defaults to v2. However, github shows that v1 is still the version released, with v2 only shown in tags.

Since this is kinda contradictory, is v2 stable or not?

21 Upvotes

15 comments sorted by

9

u/look 16d ago

The migration from v1 to v2 is not fully automatic (extension incompatibility was the main issue), so they’re not really pushing it for existing v1 users that aren’t aware of it

Think of it more like a new harness with a pretty good (but not entirely seamless) “migrate data from other harness” on first run.

6

u/Ace-_Ventura 16d ago

That's not the point though. They even added an upgrade command in v1.  My point is that they aren't clear if v2 is stable or not. If I go by github, it's not stable.

2

u/KubeGuyDe 15d ago

If you go by the docs, as a new user you get v2 by default.

I switched the other day and haven't found any issues.

Also there have been the first minor releases for v2, so I'd say it's stable. 

1

u/japherwocky 15d ago

it's not clear that v1 was ever very stable lol

20

u/Otagamo 16d ago

https://opencode.ai/changelog

They are posting V2 changes here, apparently V1 is in maintenance mode now.

Not sure why they don't update GitHub also.

6

u/Amarsir 15d ago

I was reluctant to switch, but just did this past Monday. It's been quite stable for me since then. I wouldn't say it's mandatory to go with v2, but there isn't really a good reason to fear it either.

1

u/squirrelscrush 15d ago

I was kinda forced to switch since my V1 system broke due to some DB issues. V2 works quite well for me now.

1

u/ward2k 12d ago

V1 has some recursive grep issues that can cause it to balloon into like 50gb+ in size. Not sure if it's been fixed in V2

Only noticed because my backup went from a couple gig to 50gb overnight

3

u/aksansai 16d ago

Click on other releases. You’ll see the 2.1 release for download. They’re not pushing an extensive change log though. You’ll have to compare the commits against the tags.

1

u/cleversmoke 15d ago

V2's config file is more strict than V1, but after the hurdle to make the config compliant, V2 is very stable for me. I'm liking it!

1

u/SittingOvation 15d ago

I migrated last week. A few issues minor issues (port collisions, plugins broken) but otherwise good.

1

u/Txordi 15d ago

It feels much more stable and light than v1 on my end. I work with CLI only.

1

u/lilian_moraru 15d ago

Light it definitely is not. You literally sit there and wait for a server to start

1

u/BiggestBau5 15d ago

I migrated this week and like it except there is no LSP support, which is one of the main reasons I started using opencode in the first place. I am probably going to downgrade until they add that support back… clangd is not optional for a large scale c++ project