Skip to content

opencode serve/web long waiting time #4767

Closed

Description

@bitgineer

Description

  • Fix performance issue with /session/session/:id/status endpoint taking 2.5 minutes to return 1.2MB of data
  • Add pagination to status endpoint to prevent loading entire session history
  • Implement caching for frequently accessed session status data

Issue

The /session/:id/status endpoint is extremely slow, taking 2.5 minutes to return 1.198kB of data during initial desktop client loading

Changes

  • Added pagination parameters to status endpoint
  • Implemented response caching
  • Added data limits to prevent large payloads

Testing

  • Verified status endpoint now returns in <200ms
  • Tested with large session histories
  • Confirmed desktop client loads properly

OpenCode version

1.0.107

Steps to reproduce

  1. Start 'opencode web.'
  2. open web server
  3. Wait for the Status response to load

Screenshot and/or share link

Image

Operating System

WSL

Terminal

Wezterm

Activity

  1. github-actions commented on Nov 26, 2025

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case or if this is a distinct performance regression with the status endpoint specifically.

  2. adamdotdevin commented on Dec 16, 2025

    @adamdotdevin
    Member

    Closing as we've made a ton of changes since this was opened and launched our beta yesterday, let me know if you hit any issues on latest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions