Video yükleniyor...
Video Yüklenemedi
we added the `/cd` command to OpenCode with auto-completion to make it super easy to move sessions around
17,155 görüntüleme • 2 ay önce •via X (Twitter)
19 Yorum

hey you stole the demo i was gonna steal from you

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

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

nice touch

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.

opencode is so boss, such a great product!

@thdxr Yo this is great! Love those little things

fk yeah, thanks a bunch for this

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?

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)

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?

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

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

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

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”.

I NEEDED THAT TODAY! 👏🏼

wow...

good feature

@thdxr Hell yeah
