Skip to content

bug(webui): archived session "flashes back" due to SSE race condition #7882

Closed as not planned

Description

@hotic

Problem

When archiving a session in WebUI sidebar, the session briefly disappears then reappears (~100ms later).

Possible Cause

The session.archive API may trigger a session.updated SSE event before archive completes. The optimistic update removes the session, but then the stale event re-adds it.

Suggestion

Use the same logic as TUI - call session.delete API instead, which sends a session.deleted event and avoids confusion with update events.

Video

2026-01-12_06.31.23.mp4

Activity

  1. github-actions commented on Jan 11, 2026

    @github-actions
    Contributor

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

    All three share the core pattern of WebUI/sidebar state being out of sync with backend state. Feel free to ignore if none of these address your specific case.

  2. thdxr commented on Mar 25, 2026

    @thdxr
    Member

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

  3. removed
    webRelates to opencode on web / desktop
    on May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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