Skip to content

[Desktop] Session panel width animation costs ~0.24s of main-thread work per toggle #48701

Closed as not planned

Description

@yanhenrique-dev

Description

Opening/closing the review panel, terminal or file tree animates the width of the chat panel and the side panel over 240ms (packages/app/src/pages/session.tsx and packages/app/src/pages/session/session-side-panel.tsx).

Measured in a real desktop instance (1.18.29, via CDP), per panel toggle:

  • layout: ~64ms
  • script: ~16ms
  • total main-thread task time: ~239ms

I also tried contain: layout paint and contain: layout on the panel: no measurable gain (the cost is inside the panel — content reflow plus the virtualized timeline re-measuring rows each frame).

Shortening the animation to 160ms cuts the work by ~25% (task 239ms → 181ms, layout 64ms → 45ms) while keeping the slide. A no-animation control comes in at ~32ms, but that changes the feel, so it is not proposed.

Plugins

none

OpenCode version

OpenCode Desktop 1.18.29

Steps to reproduce

  1. Open a session with content
  2. Toggle the review panel (or terminal/file tree)
  3. Profile with DevTools Performance: layout runs every frame during the 240ms animation

Screenshot and/or share link

No screenshot — no visual difference at rest.

Operating System

CachyOS (Arch Linux), KDE Plasma 6.7.5, Wayland

Terminal

n/a (desktop app)

Activity

  1. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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