GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: Live session status panel in sidebar + background session completion notifications · Issue #28175 · anomalyco/opencode

[FEATURE]: Live session status panel in sidebar + background session completion notifications #28175

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: Live session status panel in sidebar + background session completion notifications#28175
Copy link
Assignees
nexxeln

Description

@ptandler
ptandler
opened on May 18, 2026
Issue body actions

Problem

OpenCode supports running multiple sessions simultaneously, but there is no way to
monitor them at a glance. The only option is the /sessions command (ctrl+x l),
which opens a modal list — it does not show live status and requires leaving the
current session to check.

When a background session finishes or errors, there is no notification. The user
only finds out by manually switching to that session.

Proposed Solution

1. Persistent session status panel in the TUI sidebar

Show a compact, always-visible list of sessions in the sidebar — filtered to those
that are currently relevant:

  • Active sessions (busy or retry status per the existing SessionStatus model)
  • Recently finished sessions (transitioned from busy/retry back to idle
    within the current TUI session)

Sessions that were never active in this TUI session should not clutter the panel.

For each entry, show:

  • Session name / title
  • Current status: busy / retry (with attempt count) / finished
  • Model and agent in use, if space permits
  • Last activity timestamp

Unvisited finished sessions must be visually highlighted — e.g. a distinct
color, badge, or marker — until the user switches to that session at least once.
This is the primary signal that work is ready for review. The highlight clears
as soon as the session is opened.

The panel should update live via the existing session.status SSE bus events —
no polling needed, the infrastructure is already there.

2. Completion / error notifications

When a background session transitions to idle (finished) or enters a retry
state (error with backoff), show an in-TUI notification — e.g. a toast or status
bar flash — so the user gets an immediate signal without having to watch the
sidebar.

The existing /tui/show-toast API already supports this; it would just need to
be wired to session.status events for non-foreground sessions.

Optional: a config flag to enable/disable notifications globally or per-session.

Why This Matters

Power users running parallel sessions (e.g. one session per feature, or a
background research session + a foreground build session) currently have no
visibility into what other sessions are doing. The most critical gap is not
knowing when a background session has finished — and whether it succeeded or
hit an error — without manually switching to it.

The server-side data (GET /session/status, session.status SSE events) already
exists. This is primarily a TUI rendering feature request.

Related

  • Stale background subagents persist in UI after session restart/compaction #27373 — Stale background subagents persist in UI after session restart
  • [Bug]: Renderer crashes with TypeError: Failed to fetch in fetchMessages when background subagent completes #27292 — Renderer crashes when background subagent completes
  • Title: Desktop sidebar hides sessions where session.version = 'local' #27539 — Desktop sidebar hides sessions where session.version = 'local'
  • GET /session/status API — already returns { [sessionID]: { type: "idle" | "busy" | "retry" } }
  • session.status SSE bus event — already fired on every status transition
Reacted by Cycle, Isaac Solo and Nathnael Desta

Activity

  1. github-actions
    assigned
    kommander
    on May 18, 2026
  2. github-actions commented on May 18, 2026

    @github-actions
    github-actionsBot
    on May 18, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • [FEATURE]: Agent Activity Panel -- sidebar view for monitoring running background agents #27995: Requests an "Agent Activity Panel" in the sidebar for monitoring background agents with live status — very similar concept to the session status panel proposed here.

    If these are addressing the same need, consider consolidating or referencing each other.

  3. kommander commented on May 18, 2026

    @kommander
    kommander
    on May 18, 2026 – with Linear
    Contributor
    More actions

    We are working on better session navigation and overview already, should land shortly.

    Reacted by Peter and Nathnael Desta
  4. ptandler commented on May 18, 2026

    @ptandler
    ptandler
    on May 18, 2026
    Author
    More actions

    #27995 is really related: it's about the agents, while this is about sessions

  5. ptandler commented on May 18, 2026

    @ptandler
    ptandler
    on May 18, 2026
    Author
    More actions

    We are working on better session navigation and overview already, should land shortly.

    that's great to hear! One thing that is really important to me that I get clear notifications when a background session has stopped to get user input

  6. nexxeln
    assigned
    nexxeln
    and unassigned
    kommander
    on May 18, 2026
  7. nexxeln commented on May 18, 2026

    @nexxeln
    nexxeln
    on May 18, 2026
    Contributor
    More actions

    im working on this. what are some things you'd like to see apart from notifications? would love to hear from other people as well

    Reacted by Peter and Ali Eren Karadağ
  8. ptandler commented on May 19, 2026

    @ptandler
    ptandler
    on May 19, 2026
    Author
    More actions

    im working on this. what are some things you'd like to see apart from notifications? would love to hear from other people as well

    great!! 🫶

    The most important part for me is that the session panel in the sidebar shows the recently active sessions and their status (working, finished, waiting for answers, ...), so I can monitor what's going on in the background.

    Reacted by Nathnael Desta
  9. TheLoroXD commented on May 27, 2026

    @TheLoroXD
    TheLoroXD
    on May 27, 2026
    More actions

    I opened a couple of smaller draft PRs that should help support this kind of live session/status UI without bundling a large UI change up front:

    • feat(opencode): add session status endpoint #29540 adds GET /session/:sessionID/status, so clients can query one session status directly.
    • fix(opencode): emit SSE event ids #29541 emits standard SSE id: fields for /event and /global/event, which is a prerequisite for reliable reconnect/backfill.
    • fix(opencode): keep SSE streams alive after serialization errors #29542 keeps SSE streams alive if an unserializable event payload would otherwise break the stream.

    For the sidebar/status-panel UI itself, I am leaving that design here rather than opening a competing UI PR, since the contribution guide asks product/UI features to go through design review first and maintainers noted work is already in progress.

  10. R44VC0RP commented on Jul 9, 2026

    @R44VC0RP
    R44VC0RP
    on Jul 9, 2026
    Contributor
    More actions

    A related V2 API consideration for the sidebar implementation: showing active subagents beneath their parent session currently cannot be done precisely from session.list({ roots: true }) or session.status() alone.

    The available client-side derivation is:

    • session.status() identifies active/retrying session IDs.
    • Child Session records identify parentID and agent/title.
    • Parent task-tool metadata identifies whether execution was explicitly backgrounded (sessionId, background, jobId).

    Calling session.children() and session.messages() for every visible root would introduce an N+1 request pattern. The app can approximate active child sessions from its existing status/info caches with usually zero extra requests, but it cannot reliably classify foreground vs background execution without parent task metadata.

    It may be useful for V2 to expose an aggregated active-subagent projection, for example:

    const result = await client.session.subagents({
      directory,
      active: true,
    })
    
    type ActiveSubagent = {
      session: Session
      parentID: string
      rootID: string
      status: SessionStatus
      execution: "foreground" | "background"
      jobID: string
    }

    The server can produce this efficiently by joining its authoritative runtime sources once:

    • SessionStatus.list() for busy/retrying sessions
    • BackgroundJob.list() for task execution mode
    • a batched session/ancestry lookup for metadata

    A matching lifecycle event would also be valuable. Promotion from foreground to background may not change the child session's busy status, so session.status alone cannot communicate that classification change.

    This would keep background-job semantics on the server and avoid hiding N+1 children()/messages() calls inside an SDK convenience helper. Until such a contract exists, the sidebar can display active child sessions from cached status/session info and treat explicit background classification as unavailable or opportunistic.

  11. aidan-gallagher commented on Jul 16, 2026

    @aidan-gallagher
    aidan-gallagher
    on Jul 16, 2026
    More actions

    I solved this for myself using zellij and an opencode plugin.

    https://github.com/aidan-gallagher/opencode-zellij-indicator

    Reacted by Peter and Ali Eren Karadağ
  12. github-actions commented on Sep 15, 2026

    @github-actions
    github-actionsBot
    on Sep 15, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  13. github-actions
    closed this as not plannedon Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @nexxeln
    nexxeln

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.