[PR #6658] fix(app): fix flicker and navigation when collapsing/expanding projects #12021

Closed
opened 2026-02-16 18:16:57 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6658

State: closed
Merged: Yes


Fixes #6657

Changes

  • Memoize the worktrees in the session-header.tsx component to prevent the right side content flicker and navigate.
  • Create a new utility file called same.ts to dry up the code a little bit.

Demo

Before

https://github.com/user-attachments/assets/a33ed784-14fb-498f-8970-fe74e8332f76

After

https://github.com/user-attachments/assets/de6cd7ea-635b-4291-8f71-5d86cd24394e

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6658 **State:** closed **Merged:** Yes --- Fixes #6657 ## Changes - Memoize the worktrees in the `session-header.tsx` component to prevent the right side content flicker and navigate. - Create a new utility file called `same.ts` to dry up the code a little bit. ## Demo ### Before https://github.com/user-attachments/assets/a33ed784-14fb-498f-8970-fe74e8332f76 ### After https://github.com/user-attachments/assets/de6cd7ea-635b-4291-8f71-5d86cd24394e
yindo added the pull-request label 2026-02-16 18:16:57 -05:00
yindo closed this issue 2026-02-16 18:16:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12021