Загрузка видео...

Не удалось загрузить видео

На главную

new feature in opencode: warping never worry about whether or not you should work in a worktree again! now you can move sessions between worktrees and your local projects by warping them. it also brings any local changes with it!

123,775 просмотров • 6 месяцев назад •via X (Twitter)

Комментарии: 52

Фото профиля James Long
James Long6 месяцев назад

workspaces are still behind a flag: export OPENCODE_EXPERIMENTAL_WORKSPACES=true we plan on ungating it soon!

Фото профиля Zach Lloyd
Zach Lloyd6 месяцев назад

cool feature name

Фото профиля James Long
James Long6 месяцев назад

😬 I see you! haha, didn't even think about that

Фото профиля Roscoe Rubin-Rottenberg
Roscoe Rubin-Rottenberg6 месяцев назад

@zachlloydtweets you are using the warp terminal for this demo...

Фото профиля James Long
James Long6 месяцев назад

@zachlloydtweets nope. iTerm2

Фото профиля Stefan
Stefan6 месяцев назад

Commenting for more reach!

Фото профиля James Long
James Long6 месяцев назад

hahah replying for reach

Фото профиля Stefan
Stefan6 месяцев назад

This is how we beat dax

Фото профиля viktorg
viktorg6 месяцев назад

You guys keep making great new features, but the documentation never gets updated, and you also have 78 pages of issues on Github. Can you please work on some of your tech debt?

Фото профиля James Long
James Long6 месяцев назад

we're a very big OSS project so issues are going to be large, but we have some things planned to help and yes we have docs updates planned too, aligning with some larger work that's getting done

Фото профиля nsxdavid
nsxdavid6 месяцев назад

Very cool. Codex-like. Can we control the creation of the worktree? Like: 1. Where it puts it 2. What it names it 3. What it branches from

Фото профиля James Long
James Long6 месяцев назад

not yet, but I'm about to land another PR that recognizes worktrees created externally. So you can use any tool you want to create worktrees outside of it, with any config you want!

Фото профиля nsxdavid
nsxdavid6 месяцев назад

Very cool. That's one of the major hang ups with Codex and Claude Code... lack of control over worktree specifics.

Фото профиля Tommy D. Rossi
Tommy D. Rossi6 месяцев назад

what happens if you have commits in a worktree and warp back to main? is only current diff moved? if so maybe a worflow like /new-workspace and /merge-workspace would be better, so they move the commits and the diff. I have this worflow already for kimaki and I use it often (only supports worktrees now)

Фото профиля James Long
James Long6 месяцев назад

@iamdavidhill yeah right now we are focusing on the simple use case of making worktree and having AI do a bunch of changes once you start committing you need something more advanced. we will probably have better way which actually try to merge from the common ancestor commit too

Фото профиля Vitor Lostada
Vitor Lostada6 месяцев назад

Oh, the UX is amazing! It’s one of the easiest ways to use worktree that I’ve seen

Фото профиля cheesecake
cheesecake6 месяцев назад

rename it to larping

Фото профиля Zoe Roux
Zoe Roux6 месяцев назад

are worktree hardcodes to use git or can it be configured to work with jj workspaces ?

Фото профиля James Long
James Long6 месяцев назад

git right now. would need to see a lot more demand for jj

Фото профиля Uzi
Uzi6 месяцев назад

Sickk. Can we get /side next?

Фото профиля OpeOginni
OpeOginni6 месяцев назад

gonna enjoy making remote worktrees work with this!

Фото профиля Callum
Callum6 месяцев назад

@thdxr That’s cool

Фото профиля Hunter Bown
Hunter Bown6 месяцев назад

@savram8 whoa

Фото профиля Aardvark Erickson
Aardvark Erickson6 месяцев назад

@kitlangton Saw the command and got super confused on account of @warpdotdev existing. 😫

Фото профиля Firat Özcan
Firat Özcan6 месяцев назад

Thanks for the feature, already using the /sync/history API and it's way better than my own custom solution I had before for syncing 🙏🏼 It just works™

Фото профиля James Long
James Long6 месяцев назад

oh cool, how are you using it?

Фото профиля Firat Özcan
Firat Özcan6 месяцев назад

I have smth like GitHub runners that automatically fix errors or do issues and those can run anywhere so if the network drops at some point or idk, they just randomly crash, I needed some way to sync it back for retrying. I tried out combining the event stream and the manual messages endpoint and it worked, but just waaaay easier with the built-in sync

Фото профиля gordian
gordian6 месяцев назад

this is such a life saver. love it!

Фото профиля Nico Jér
Nico Jér6 месяцев назад

How does it handle conflicts or merging when warping back, eg when the main branch also has moved on?

Фото профиля James Long
James Long6 месяцев назад

if it can’t cleanly apply, it doesn’t move the session and aborts and tells you. It’s up to you then to figure out if you want to commit and resolve with another flow

Фото профиля Logan
Logan6 месяцев назад

Can anyone from OpenCode help me with this question?

Фото профиля gosuto
gosuto6 месяцев назад

tf is a worktree

Фото профиля // Lofty
// Lofty6 месяцев назад

@thdxr Do subagents get worktrees too or do you just rely on the orchestrator to properly manage the division of code?

Фото профиля James Long
James Long6 месяцев назад

@thdxr right now subagents can't dispatch to separate worktrees, but no real reason we couldn't do that. mostly a UX issue. we'll see

Фото профиля kmiterror
kmiterror6 месяцев назад

Been waiting to adopt worktrees so long. Conceptually they make so much sense especially with forking agent convo.

Фото профиля nisambiotu
nisambiotu6 месяцев назад

If the changes were done through shell usage by the agent, for example: npm run build > build.log" That build.log `change` won't be recognized as `changes` and won't be transferred back when warping back to initial worktree? Correct? This is true in windsurf for example.

Фото профиля James Long
James Long6 месяцев назад

it uses `git status` to enumerate changes to move so I think it would be. is that desirable?

Фото профиля nisambiotu
nisambiotu6 месяцев назад

Yes, that is expected behavior 👍

Фото профиля Florian Bauernfeind | entribe.bsky.social
Florian Bauernfeind | entribe.bsky.social6 месяцев назад

@thdxr That solves a real problem for me

Фото профиля Mikhail Shevtsov
Mikhail Shevtsov6 месяцев назад

Damn! So cool stuff - I urgently need GB10 machine to do parallel coding stuff 🚀

Фото профиля firefoxmmx
firefoxmmx6 месяцев назад

Cool! I was looking into how to use a working tree in OpenCode. And now it's here. That's awesome!

Фото профиля Sebastiano Mandalà
Sebastiano Mandalà6 месяцев назад

some times I need a session to work with multiple projects. I just instruct the model to do so, but I wonder if it makes sense to have a support for it

Фото профиля James Long
James Long6 месяцев назад

that's a bigger architectural problem, not sure we'll support that as it was make everything much more complex for a few use cases. in that case you can still tell the agent to work across folders, just might need to go through some annoying permissions

Фото профиля xantifi
xantifi6 месяцев назад

awesome thx for the video

Фото профиля Tanishq (tk)
Tanishq (tk)6 месяцев назад

@iamdavidhill is this basically stash + create worktree + unstash?

Фото профиля James Long
James Long6 месяцев назад

@iamdavidhill a little different, it generates a patch file from changes (including new files) and tries to apply it, but yeah conceptually similar

Фото профиля Volodymyr Pavlenko
Volodymyr Pavlenko6 месяцев назад

@thdxr so you folks star track fans not star wars fans, got it

Фото профиля Denis Loginoff ⚡️
Denis Loginoff ⚡️6 месяцев назад

Can we sync sessions between machines pls 🥹

Фото профиля Benjamin Preiss
Benjamin Preiss6 месяцев назад

Is there a video or tutorial that displays how to use git worktrees? Its super simple with Claude code just to use the --worktree flag. Can't find anything in the opencode docs

Фото профиля pablo
pablo6 месяцев назад

@thdxr Loving it

Фото профиля Tomasz Dłuski
Tomasz Dłuski6 месяцев назад

omg perfect

Фото профиля neo
neo6 месяцев назад

@iamdavidhill 🔥

Похожие видео