正在加载视频...

视频加载失败

we added the `/cd` command to OpenCode with auto-completion to make it super easy to move sessions around

17,158 次观看 • 2 个月前 •via X (Twitter)

19 条评论

dax 的头像
dax2 个月前

hey you stole the demo i was gonna steal from you

ByShovel 的头像
ByShovel2 个月前

the filesystem metaphor quietly keeps winning: cd into a session like it's a directory and suddenly the mental model needs no documentation.

Titus Magnus 的头像
Titus Magnus2 个月前

Thanks man. This is one of those things that you don't truly know how much you need before you get it.

yamz8 的头像
yamz82 个月前

nice touch

Ike Victor 的头像
Ike Victor2 个月前

Finally this is actually a big deal. Multiple sessions in a single tui instance, all with different base dirs, was a big pain point for me.

Location Artistry 的头像
Location Artistry2 个月前

opencode is so boss, such a great product!

milos 的头像
milos2 个月前

@thdxr Yo this is great! Love those little things

Akram Ahmed 的头像
Akram Ahmed2 个月前

fk yeah, thanks a bunch for this

Alex Kolovsky 的头像
Alex Kolovsky2 个月前

the thing that bites me with cd inside a long session is stale relative paths in earlier tool calls. does /cd rewrite them or just move cwd forward?

James Long 的头像
James Long2 个月前

we add a synthetic message so the model knows it's moved, and yes we try to update paths. for example a bash tool will prefix the call with the path it was called from (it should at least)

Alex Kolovsky 的头像
Alex Kolovsky2 个月前

the case i'd worry about is compaction eating the synthetic message while the old ls output stays. does it get pinned, or re-emitted on the next tool call?

Tim Bendt 的头像
Tim Bendt2 个月前

I knew I wanted this... but didn't know exactly

David Hapunkt 的头像
David Hapunkt2 个月前

Why do you move sessions instead of adding folders to them?

Jonathan Dunlap 的头像
Jonathan Dunlap2 个月前

Can we please have a dir explorer to create a new session?

Bitr0t ⌨️ 的头像
Bitr0t ⌨️2 个月前

Nice!! The opencode TUI is impressively good. I think the go plan onboarding needs some love! I got Go today and downloaded opencode, added my key and I can’t use my go sub? All the models are “Zen”.

moshik 的头像
moshik2 个月前

I NEEDED THAT TODAY! 👏🏼

Lalit Jangid 🇮🇳 的头像
Lalit Jangid 🇮🇳2 个月前

wow...

TheGOAT 的头像
TheGOAT2 个月前

good feature

Filip Ganyicz 的头像
Filip Ganyicz2 个月前

@thdxr Hell yeah

相关视频