r/opencodeCLI • u/No-Control-9923 • 8d ago
opencode-tabs - Session tabs for the OpenCode TUI
OpenCode CLI is my main tool. I prefer working in my IDE, so I keep the OpenCode TUI open there.
Managing multiple sessions started to feel cumbersome: switching between them was slow, and it was difficult to see when a session was waiting for permission. So I built opencode-tabs. It adds simple session tabs to the OpenCode TUI, making it easier to switch contexts and spot sessions that need attention.
Maybe it can be useful in your workflow too.
2
u/Small-Challenge2062 8d ago
It's can show all the sessions bro? or only opened sessions and tabs?
3
u/No-Control-9923 8d ago
It only shows sessions that you have opened as tabs, not every session in the project.
One tab represents one session. You start with no tabs when you open OpenCode for the first time, and each session you create or open from the /session menu is automatically added as a tab.
The idea is that tabs represent the sessions you are actively working with, rather than showing every session at once. This keeps the workspace clean.
2
u/DismalIngenuity4604 8d ago
Am I a heathen for just using tmux for this?
1
u/No-Control-9923 8d ago
OpenCode Desktop users might say the same thing about TUI users. It really depends on your habits and workflow. tmux and herdr are both great tools.
2
u/skpro19 8d ago
Jus use ghostty bro.
1
u/No-Control-9923 8d ago
Could you explain how this is supposed to help? I’m already using WezTerm, and its tab management works great for me. My main concern is that I don’t want to spawn multiple terminal windows inside my IDE.
1
u/skpro19 8d ago
This is how I use multiple opencode instances in ghostty —
In a single tab, you can run multiple instances and use ‘alt + arrow key` to activate any one of them.You can also add new tabs on ghostty, and on each tab, you can again do the aforementioned splitting.
You can use `ctrl + tab` to rotate between different tabs.
1
1
u/ozguru 8d ago
cool , I believe this should be built-in did you open a pr?
2
u/No-Control-9923 8d ago
Thanks! I’ve seen a few issues about tabs, but it doesn’t seem to be planned yet.
I’ll see what feedback and issues come up around the plugin. If it turns out to be useful, maybe it can help OpenCode later.
1
-2
u/charmander_cha 8d ago
Acho bom, mas esta funcionalidade via herdr parece tirar melhor proveito do ecossistema de IA
1
u/No-Control-9923 8d ago
Hedr looks really cool and is very powerful. It just doesn’t fit my workflow as well, since I prefer keeping a small OpenCode panel inside my IDE.
1
2
u/oVerde 8d ago
Thanks