You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Group desktop sessions by state (needs input / working / ready for review) #53851
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
With several sessions going in the desktop app, I can't tell at a glance which ones are waiting on a permission prompt or a question, which are still working, and which finished while I was looking elsewhere. Home groups by date and project only.
Proposal: a sessions view grouped by state: Needs input, Working, Ready for review (a turn finished after I last viewed it), then the rest. Filters for active/archived, projects and last activity, and an option to group by project instead.
The client already has everything this needs: pending permissions and forms, session status, and time.idle / time.viewed from the viewed-state migration. Nothing calls session.view yet, so the prototype marks a session viewed when it is routed.
I built a prototype as a GUI extension to check it fits: https://github.com/mv2a/opencode/tree/sessions-by-state. Besides new files under gui-extensions/src/sessions/, it needs two small generic SDK additions: Servers.get(id) and Sessions.open({ server, id }). Right now it is a titlebar pill (showing how many sessions need input) that opens a dialog; a left sidebar slot would probably be nicer if you'd accept one.
Happy to open a PR against v2 if the direction is OK, or change it to fit how you want it.
Related, auto-closed without a decision: #21590, #51336.
Thanks for the detailed proposal and for building a prototype first. Your request: a desktop sessions view that groups sessions by state (Needs input, Working, Ready for review, then the rest), with active/archived, project and last-activity filters and an option to group by project instead. Maintainers will consider it.
I checked the extension SDK. Your two additions (Servers.get(id) and Sessions.open({ server, id })) match real gaps: Sessions only lists sessions open in tabs right now, and nothing in the app calls session.view yet, so time.viewed never gets updated. Please wait for a maintainer to OK the direction before you put time into a PR.
Screenshots of the prototype (dev build of v2.0.24, demo sessions in two projects, filtered to those two).
Grouped by state:
Grouped by project, with each row's state:
It opens from a titlebar pill (shows "N need input" on hover) or mod+shift+j. Opening a session from here, or anywhere in the app, marks its latest turn viewed, so it leaves "Ready for review".
Saw #48526 too. Happy to fit this into whichever placement you prefer, e.g. reuse the grouping logic in a sidebar.
Activity
opencode-agent commentedon Oct 8, 2026
Thanks for the detailed proposal and for building a prototype first. Your request: a desktop sessions view that groups sessions by state (Needs input, Working, Ready for review, then the rest), with active/archived, project and last-activity filters and an option to group by project instead. Maintainers will consider it.
I checked the extension SDK. Your two additions (
Servers.get(id)andSessions.open({ server, id })) match real gaps:Sessionsonly lists sessions open in tabs right now, and nothing in the app callssession.viewyet, sotime.viewednever gets updated. Please wait for a maintainer to OK the direction before you put time into a PR.Related issues and PRs, closest first:
mv2a commentedon Oct 8, 2026
Screenshots of the prototype (dev build of v2.0.24, demo sessions in two projects, filtered to those two).
Grouped by state:
Grouped by project, with each row's state:
It opens from a titlebar pill (shows "N need input" on hover) or
mod+shift+j. Opening a session from here, or anywhere in the app, marks its latest turn viewed, so it leaves "Ready for review".Saw #48526 too. Happy to fit this into whichever placement you prefer, e.g. reuse the grouping logic in a sidebar.